You are on page 1of 6
Parshavanath Charitable Trust's A. P. SHAH INSTITUTE OF TECHNOLOGY (Approved by AICTE New Delhi & Govt of Maharashtra, Affliated to University of Mumbas) ‘eligious Jain Minority) SUBJECT: THEORY OF COMPUTER SCIENCE (TCS) SEMESTER: V GReIBACH NORMAL form (GNP) hy €-dree. CFL can be genereted by" CFG % “ad we wll ae clue how ake of tte ym: aa A Say where A> Variable a > Terminot Y > String af variables. (cau be epg), Me a ae Oe Conversfow Procedure trom CFG KG GNF. pi Perfo elEmenation 6? Nui, UN + UstLEss Production ep2 : Use Combetraitoow oF Ruled Awol kule 2 to ge Ceq he GNF: Rulet > ket A> Bo we Some A- Poductron — A tee 2s pf, [ple - [Pa be Fe Produ clgvns Fak we Carn writ - Productions 29 — f pax | x Ruled 2: Lea / Ao, |A m2 \.-. LAXy & lee ~~ A ) ) --) ps : nae Utredulee. a New. variable B B-Paoduchbve: 2 {B i Aaleales A> @A\b B27 abla Solution rept: Crq doe have Nutl, vult & Useless ? BR» abla - Alveady te ANE Producti wa As adAlb “Reread “ww Ane Ustvg, Ruled vende production rules F Sr AB 3 > are] ba S > BA S7aBAlak S2 8B S> abblagw CFG tue GNP to = S > GABlOBA)abB(belaA law Asx aad Ib bx @Ble Ist Prof. M.A. Jain Dept. Of Computer Engineering Parshavanath Charitable Trust's A. P. SHAH INSTITUTE OF TECHNOLOGY (Approved by AICTE New Delhi & Govt. of Maharashtra, AfMliated to University of Mumba) ‘eligious Jain Minority) SUBJECT: THEORY OF COMPUTER SCIENCE (TCS) SEMESTER: V cid Ay > Acd2 [a Ara 3 AA [b Goluction: StepLe CFG doco not Howe uutt, | useless & nur produchevs / A2 SAA Lb a Subs Hhetiing A PrOdlucKon nutes “ae Ar eee Dee etal lad |b. A x PP ov Apply Rater iii daes new Variable & moe as : bax \x a? Bo RK lak >. Bi ipa A2> Ay lors ef eee. “5, BR, Pe po Applyiig Ruled Rewstt Ar and B prectacti Ral woe Ay AA Ad | AAIBA2 | bAa | bBA2 | a SB OMA! ladBAr |bA [bBAL [AAALB | ABA) B] bAB] bBAB Vi Ay > AA, |OA.B |b 1bB. 15 Prof. M. A. Jain Dept. Of Computer Engineering Parshavanath Charitable Trust's A. P. SHAH INSTITUTE OF TECHNOLOGY (Approved by AICTE New Delhi & Govt of Maharashtra, Affiliated to University of Mumba!) (Religious Jain Minority) SUBJECT: THEORY OF COMPUTER SCIENCE (TS) SEMESTER: V i oo ee > Ss i 4 Lectiong < Stept = CFG dow not Hove NUL, ONT & ULELEH Poroluchwo A > lt Substiiectig S production rutes tu A ae A = Aaslos fa A AM B Be 2 Appia Rute? tutioduce new variable Baxi xia Bo AS\ASB a KIB A> Bi [pis. A > 0Slosala |48 - p Ip = Br las 8 alee, Appeyig Reuter rewrite @ aud & production rule A> oslosa[4|48 : S-> OSA \osealsalsealo 8 > oss Josac]4s |4g6| 0556 longa (4s8l4asa Is4 Prof. M.A. Jain Dept. Of Computer Engineering Parshavanath Charitable Trust's A. P. SHAH INSTITUTE OF TECHNOLOGY (Approved by AICTE New Delhi & Govt. of Maharashtra, Affiliated to University of Mumba!) (Religious Jain Minority) SUBJECT: THEORY OF COMPUTER SCIENCE (TS) SEMESTER: V iw). $> aSa| bsole Sotutton: S4ep£ + CFG does not Gove Nu, eet _ ONITA ofstletHs Broduch ovo S32 aSG (bSc le Q2ea Selective ca>b Replacement ky S> S$|asb lat Solution: Stept + CFG cloes not Rave Nuit UNIT — wees See Ze useerns boducOne ’ S > Ss|asul ab A Ax pu pe App ing Ruler Tutroduce new variable 6, B oct | o¢fB B= slse S> aSb |asbe lab fabs A> pilpis S ast lasqeBlailaaz C2 b — Selective Replacement Z Applets. Rutet Revow be. Prrducttow ruleo cf 2, Le asalascBlaa |acia Bs ast lasceBlacl|ace| aseelasceo| acelaage Igo Prof. M.A. Jain Dept. Of Computer Engineering Parshavanath Charitable Trust's A. P. SHAH INSTITUTE OF TECHNOLOGY (Approved by AICTE New Delhi & Govt of Maharashtra, AfMiated to University of Mumba) (Religious Jain Minority) ‘SUBJECT: THEORY OF COMPUTER SCIENCE (TCS) SEMESTER: V oD Express the, 5 erg} fa One 2 Gne + = fanbn SolukEen = } Assume n>. CFq: Ss asbl Prrecluchevn Solutton $3 ASb C3a Crdb $2 O8Co $2 ac3 C3 > SCo C33 8 Co Sab S> Ceo $F Otr CFG te eNnPe I Sis Clg] Creo aaa C2 ab C3 > 8 Co Prof. M.A. Jain GNF - A>aYr Gr ase lac, C, > & — SetecKve Reph emene CRG te GNP - ga asa jac, G2b ley Dept. Of Computer Engineering

You might also like