You are on page 1of 23
Unit 3 TALE OES ” ae i Ceavt-1) Contoct fren Grammer (OF! (era) Cowtext Free Grammay also Catted Type-® Gramney Con be Obtdwned by Eetoay Werdwiny eo Vestnesie, on 460 Qeft de ak th vegutay Brammer rex | bering amy keine, on-tts RMS: Ce. Pareduction We x—> B ND Swoyex Any Comdindion Leahavie OF ferwineds ov C Non-fevrinnl) rerternaeds exit od Ss» abB Bm bB BOA ae Sa AB A> aB Boe Back Feyalay Brammey Us Context free Gram wk Ulceversa Ar hot ms: ee S> aB — Boda ‘ Was Ray _ Srey A but a CEG aed bok tr be egy F S—> arB RB B eee a Tihs fn CER ut Wet Yep ly qe, Ser EF Witlll Udlift iso CEG: ZARA ‘ ’ Context fee Lan CceL) @ rn Set of String gqensrated Frm a CEG | fovms & Context fee Lancyrane C CFL | \n ovdey to Jenrrate Shiny fom ten SES CFG, We Wed +o Lud devvatos Lon em Karle S > asa Sharla a Sa &SL CFG SDA Tyo donvetion 6 eee Sr asa 3.4 bSba Csabks) Satire €s 2 => abba Prrottey ALY Wathen Ss asap, $2 noel ——— => ° = a¥o = QQ > Lb Prmottov dtiuation sa bs aa rhe S> Laak Stn, Should alosys be Comidored ows iF E04. ave Fensrated fe Start Wanable- : So LL ¢ Ay aFo bry aebs esatd R ~ Ww E {% Ly | iis ye scanned with vams Denvaric » Types: ® D Left most Debvetion (1m A denvation As Sard +e be Robt ynost danvation if iw each step tea Rekt most Wahable Wy tea Senhewhad forn As Yeblaceds Cxamblt SS aAB —— A > be BA) CB2A BAAD BE seaRY Caeser Si KP VB LIxD? Sah Da ae C h> b84) DabAbB CRA Darbeerre CAPD Dabby¥urg C829 => abbbbR CB2a) co) abbuny D> aArvbbs OvLalMicU Witt Udil is 1) A Agwvetion Ws Sad ty Le Bahk mest denvatio | Right most Demvarion CRMP) \f in each steb, 40 Tghtmest Larare 4 Ye laced + pats cee ca erxanple Ss aAsla (Seer sey A | A> SbA|ss|ba (ADSEA Pree RMD sans >a ,¥ Cs2a @aarkaa C A>SERD uv Pasubaa CAD => ey ag SS Dewvation “Wee: (Parse Tred) A Aervahbou tes eres a . os fen yrapical Yebrerentahion of ea Azhvshon Wh Context her Grannaw” \n-ken dohvation Ayen| parse dee, a tree eae form p> Created dudng, dasvaten OF @ SQ- The Raft ida of production rule forates Parent Woda and wagrt HAR Fors, Kea Chi\dyen Wodun “Hua retest Continue LN We Get AIR Leak vedas CDehvetiontes) — OGETTITTEU WILT Gali oh Let G be 46.2 Grammav © ee S > oBlia A> olos|elAa B= \\Is)oee Sov fs Sing “oo tole!” Sud (ad Lefmost darrvatien Ce) Righthert danvation (ce) Wa dafiveti oy tree ae Ca) Lettmest Avhvatiew Ss oe =ooxke C a> e88) 300; € 82) 3001 Wo CB>219 Dooll de nae Dooitow CRr\s >ooiioidg Cs368) > oenoiok Css Ch) Rigtkmost Denvati saoR > one (R208) Door cred v = 90 i Cog 2 oo \ Al C Se > 00 \Vorl Cn2os) = 00 ilo tal (52 2A 2 oo\\orsl CAD a) ———— Scanned with Cams Dena wee Fle ee eee eeereesae eee § > (USE, Leftmest Desvadiy) Lup S08 v CoRR cots dol bs doll $g Oo No ks uv So Nol 68 Sollol of a RmD —— gs r.oR Vv ocoBR oogt 06 toy 00 ts] oolt de} on No tay orliol 8] STS WILLE CTS Pra quiry (hy Context feo Grranmay? @ Awbiqueus Grammav } A CEG A&A Saidto be Ambiguous UF Core ere nove than ohe Raftmost Arrirechion he OF move than onze wyrtmost dahucdio, bre for a Sven Sting + | exanpleL EPETE a eae c~2 4 | Lmot E> E+E E ——— ¢o axe ce” ai 5 ar Kae cee T + A a Er E | A aa 4 Xap ce9 > arar biped | | 4 Leo Ea Ete E E> ere+e (626+) Ve an e> Yarre (699 eee 5 ED atatk C&D / a ee Ewe y ‘ ee \ _ : | “Too different danudien tree fey Sant shiny Cg ata” WHY ae Seo Gven CEG As ambhyuons- suaroreaOeis ———_—— — OUdaiiireu witht Vall Ie psees Check Loreittey eo foljowing CFE Ay armbiqued fo aver Sime ata Ke? S > s+ 5 3a s*S So + | s5 As LMmdt> “apaxby | —— S Sast+s J/\\ a+s (53a) Soe x s 1 2 A+ SxS (52 S¥S) Sov a va (8799 a | % Gs) { artqxXb “ & Dewey C jen 4) Lda? sivng fh arakb r oo S> S3S S, 5 | srs ¥S (S959 MK q (s2 0 /\\ | Soke 29 ares 6°" (eg SS ee LV cpesvation TO eee 8 ye ane @ a ee Agivation bee oe wre 2 Se granw 4 ambi qws- ==: OLAINICU WILT Udll Ie Simplifeakion Of CFG (Reduction of CFO g x Simpli Keaton brecess of Context Gen grabmay ‘waves etininaion of tas fotoding we ovAsY oO Elivinetion of null (a) productos Sin Oa A> A L ben ae Nowterwitag Ml) Sing | @ Elimination of Ut productids mia Se A->8 Uv Engle NOV termine Smaqie how ferried @ Elimination of Useless Brakes pranch C1) Those practise thet ave het wed W-tes : acme of Srsings- QO ste \praauctiow, fm Gch Shangd Can wee be Agived ( Nok Aerating, SAmng)- Questions may be aawed Witte exaination by Vemeve only Wrelers Frodxctioy , omy Uy lps dacs ov onty, wut Prodvctons> ot Remove teq eters product, fen tts Sranay S—> AB Aaa Bob E26c Bs WO ghee Esc Pridachin 45 not ured Wh AH Varo af Sher, Sd eliwinare lt S$ AB A> 4 é ROL AZ OLAINICU WILT Udll is eae st Eliminate nun producto» utes CEG ® S> «Slag (ssaS, Sar) A>aA | Boa | Dab s> AB [ 28 (pet AA) > S3AB san Chet BA) Now (& We but bein ADA, BOA We £3 AB Jeon Si) oY % SPA CRut Wensed te Clivhste = iw) So put SPA eu witit Garite Elimination of Uwt Pre duckie ™®e ex Eliminate Uwit production omits syven CFG: — SAB | A24 B2>C\|b CRC, B>b) | cj d-e | —EA4 5, “Wave ave 3 wit ducims 4Bak 929 ts Re Le ehwanated io g>c c2D DE Bs we we teat E24, Se DZEA Dra gmce CID, So burvalee o£D cC3a a Now ee but War of C B24 ————— So New Frod brodaction ave S > AB Baa ROa\b cla Daa Boe 3. OLAINICU WILT Udllic Simplify (Reduce) 4e2 freddy ceg (BD S2 aAlage (ssa, S24B8) R> aaAlA CAraahs ADA) | BD bBlLLC CRB, R>LLC) C>B8 Prs Shee We have to weduceC Sip! Frammar), $6 We WM Perfor STH PKedvon Thine felleathg, order- Cid Elikinction of Wud) brodacte) Ct) EMviwatttn of Unik bred ctpy CAD Eliihetion of Crtlerr Symes Cl) Blmindion of Wall bredsction Ee oo aa Sue wd BOA nen Prdvchiony So Pt ROA & Producten heh A So an s34 (ABA A eee CRA) PSrey A-preauctin eWninstios Prtev A-preduciiy iim S>DaAjaevela A> aaplaa B>bB] LEC crm, Ci) EXwimalion OF uit pedetion : Sirce U4 bag only one Wa priduches Brame c= sranlaBela 2 8 (go put eaten oF Bi PD aap\ag C> bB a sieges RB bBl LLC production | CIR Keo eINC C3 LLC . nnn STSTITEM WITT UAL ITS (A) EYwisdtin OF UReless breducttes S35 AR\agBla A> aanlaa R> belinc om) be\uec \W ktis, Wwe need te Sica btase Ureless broductieus het ave vot Anna og SA , OY tose Pravches Atha ave Wet Uke “hy dehnudion of Shag 53 ane = Da. Aq Cadotve Hang.) (A349 > S324 v = 34 aaf Ch aah) DBaaar, SSS So socAh, P2ach, AD as Ve UX ee Nie TBA Ay algo WRAL, HIE a Ooiuiny SAAN: Now a) a * : mo 28) % Updated Graney bee CB 2 : — abekeRP len abtyes (82LbC)X AP aagh\a4 : < 2 aver cB Ar srwblified 5 abbh ba (c2 B LEX Qrammay S3) a bhber bee 8 ee ees => % b 64 LILI ER a) 2D Nok Any SHOrigd Sex ry Cowveysier fom CF GR CNF | CNEF C Chewsry Norma Form) ? A CEG A> Sad to be Ih Chensvy Norah FomCCNE) (fF (4 Comasts of broductms hana Fowomy res Bi SgW_ wo Now tewsnad Hyre — HgOa —_—— N Nowy hen dna ee Ses Convert “tea fade CEG (ute CONF SabLA\aB (SAA, $348) A> baAAlas|a (aba AB8S, Aza) R488] bs|b (R 2288 7824S, BY) Bs First We need Ye check WuliCs) producer, wit a predrctios and Uriers broducksn , TE |xiS4 Yemsie 42. - . Pree Writa ver CEGZ eove Wo WW Preduchen , wr Pradvohian & lurless Posdaey So we can Cowert (4 how SDLA, S2AB, @ We Www AFA, Rb Me i g3 BA, SAAB Cone) == = Das, Aaa Now po bhai BS | x A> BAA ,A2AS Raa A> SA> A2AS, ADA CCNA B27 ABB» BRS) 83 n Soc paes:, BOBS Bab go 7B, B2RS, BDL Cone) OLAGINICU WILT Uadllfy Now S> BRA, S>AB A> SA, Arps, RA4 Ba se ,RraBs B24 = Convert Kea Lr\loama, CEG t CNF Zin Se = SSASA\AB Coes A>B\S hae 2 Bobl\a = B2A D Ps Fivsh ted te Wemove ot CAD A= pred chos CRY Unsrs Predrct ty ea. CRY) Uxcless preduchy rai —— OULAIIICU WILE UdITI< S3'BA, §2AB Aa SA, A>fs, B34 BS SR ,BrBs, Rab ope Convert tea Coiling CFG te one ee Cow SS ASA\AB (sans AS B\S AB c R->bla nas B2A d ys Fivsh VWrod tn Wemove atl C1) Are dackos CRY Us prodsotity C&D Wyler prada OF ABy Ci) Remove de prasctiy | C89 A) Ss ASA\ala (huiky BAM S93 aR) A >8\s Rob Cw) Remove Unt He s—> ASA\98]4 ala pak p> lo\ Asale ae pak) (soAsAlssls puitingy Bol Ae {7 By ") ve seers) production. i Gi) Rew i sell Prodach =yneve AN Wo a & _> psa\abla as bl AsA\ae|a { kb et prdychon ¢ APB A2 9 OLAINICU WILT Udll is oof sAlgela © >b/As on Alas}4 ree Now Converihy Voto Chomsky NV ome (caf) Are hot ih CNF, ave. Ottayv produc, Te Already Wh cae. ve“¢ Ss AsA, ADASA x Xr ASB A>xAy xX AS s2s8|Aala Ev p> &| cathe | sb 1A8 ‘gab "S32 XA, ex Covert Ea than we CONE —= Zao s— xy|XnlP xX mX|m Ys xo sy xy|p — oon yo oa alreaky KBWMX are wot XSm . [ene a “Yo : Ovaimicu Witit S54 i Yaxy I revel YS wx | are Wok W/CNF Let Zon ton eee $3 xz y = x. | Noon cre Zn lee Soy XX (men Xr) x2 xX Wes cnt 3m So PNR Cw | Scanned with Cams ; = Grévack Nowak form CG ve) Xentcs © A CEG Py» eat) to be wn GNF, Vf > Twn spules! \\oot © A> 4 BCD: Amy Nov of Nowhermikebr ov Suge he . Non-erdinah Cid ROO Nw Ly Hvyle Snaie yerirod. Now- terra Wwe protien Shed be Wo Wnult (A) bodseiar ee Lpreauttity and vo _fasieed PS Gniee Exe’ Convert tea Forres, E FAT GNF- Ss ABwL|a A> aah Q>bAb a\reea be ss ABL, 6397 OY aye Pr aah) BabAb Sot oe Saheb $2 aanbe $2 ashexy= let K2”% Cin p> aa) - ovaiieu wit cams SE Cowart fodbouing, CF Gtr GNF S> SS $308) $30) RS. Ga gs = Ss 5 Gsis C pug 62 OSD (wk-K2O let YOL Ve S4osys VYoaa Sw Sass Z= saas (520d > & fy $3 0k m So! Sod GF > 3.0, 55 you s30YL saosy soy Ag == | ovLaINIcu witth vd 7 ' Asa Conver Sion “Gem cel te CFG @ ples Convert Aes, Lorrswry Qete CEG exe ee = Le wew® [We (attl® a) Le wok | we Cast QSL = arse |n7 I GW Ye adi \ 7/33 2 ah bh |W (va W) Se wy j gee = a C) aca, beck, Ec ba, AAcaa, bICAE ob C bb, aapcbay, +> 7 * 3 sec So FF - | | Zoek we (a bl™ = (Wy were ee? Luby aar bas, — Soa sa asa S D> bSb Cw) La anv \n = Cap, arberb, 1% cK) Lane, AAAD (ase erm Lert] pLbbbe,——] | Te Ff aaaaaer tb, Raasara® \s 5 aaqaaabbh. \ Eig¥e5. AX Ske. Voy ovaimeu wit Cans OU ee hal) = 2b, QQbb, aaa bk, ——— | @ S.A fy, $3 ash = ¢ aby aatb, 244 bbb) ——/ 4 = Samak f Saacsh } Cit) Le ateh ca |w>7/1 | A \ gB SSABM mas — Breen Aa ae — Ba aAvnbh B2ICA i) gua: OvaIeU WILT vams a ti Cowert +62 feo\osity CFG ht Gut aS s— Aa\a ph 2 Ss|b Fivst, we aah dea Chae, AVRAEAY jG Jon duction & Wwreless, Nar oF Udi dace wis pebtey fo gah Werk Steph Wa NGM On Pee S35AA Sama a A> ss pb arready Wane Aad psss oh oot Ie pasdt Convert S> A lveady Yn GNF So Be — «A S>b s>AA SSSA care ss? Lesh (C539 wt S22 gu ha ss pas sak ¢ ] oe bSE C47 3 cans Th is, 7 a ¥ sen “ peas ast A> Se tsvaad > She cs2An A sh fae C Ary eR BAN (sa)

You might also like