You are on page 1of 20
Sent — CONTEXT FREE LANG LAGES @® = ovdench- fee Vanquages are aphbicd inv porsss dhutgan 1 Br ee. gmall components « ai es eat wile in CFL 08 derivalions coun be seprernid Alani aout . 4 : Cyn =) ee Production — Ae G ay Ny ) Hagan tun uid a ponboun, MEegeibon ) — a. Parse bute for 0 CFS ary ET Sens Ge,* cy te following. eond’s : a ls eee Scanned with CamScanner We can order ou the veleors of a Tree se te fotlewirg ving the XiKa-- at x is the By the Principle of urdurcliow A Bu usher nae : ossume A=>X- To prove Ae only if parks ee We howe to comtlruck an Ate 2 et do Hus by caduliow on of, steps Bc When A >a, aba a a capeiiee” re me ket eRe A ~ ae gow Wistoation de at rout 4 DK Xm SA Now, split this as A xy let AtS>4, Cee WP. so nepbies A Rika Mm a a prndueliow Aaxike A ed ee Reo Sue ae fhe dertuab'en, oe a xy a mot oo ee stzp . lw x # Dre duped Yer Xe hee » lat oe oe Bade ee ve él. Su din GD aie L Dai decvtiom ts. ae ingle okay o- string. As oioda, ne ad hae Ole aya. Ann poke ea Scanned with CamScanner Scanned with CamScanner Uy >>) ae * Spiele Yue produlcon ae applica pains co fi, same dartvclion ber tom induce suverat a Ge CASH, Sarbh, 35-7 25158 lale > 55) Be 5a => 95571 tous J 6g ahs Ja A sbAlss|ba derivabiou bus whos baa = a&b20% @® yadicet gf * @ J othw duuvaton: of tora a'- Saabs > aSbAs > 75bAa “> dabban Scanned with CamScanner _LerTMOsT A RighTMOsT DERIVATION ss A dervatiow A Epo a cold 0 hipimost deriva Le abby production only to Ue tpbmest 7” A dauvetion & thu is called a Arghemask didvalion i we apply prodichion only to the ‘uiglbrreet a ® * a Leftmost durivohton. Leftmect siightmest ) Sa aas re Sone => a SbAa =) aabAa > aaldhan S = aAS => ahaa 4 ‘theorem | YA Be Min G 9 thew tho is a Leftmask - Pasot :- We prove te rmbt for wery et ee ee se of steht An A > 0- A= wo is o Laptmoct , ey isto ei Botte Oo tee ae va let us assume the Aeeutt for dirivetions Ln sii ue Alt wo. Uae dwretion our oe aplib atmost ko . Obi- é \ ce Ru he staime, Dees ie shee as) Oris fe xy Ho oy Arolves obmest be stebs by de duction hypoth vu Tinea fried aanizctonn oy 2» Nag, Thee me a Luptmost cirivetion of 7 4/45 * to, 4:t- Xi Wy Scanned with CamScanner S$ 0B|4A »A—olosliaa, s 0018 > 9044S t) s> 08 > 0088 tS ov! 0404 08 > > oo1s> is j Scanned with CamScanner Scanned with CamScanner 4% S| hh MPLIFICATION OF Context-FREE GRAMMARS (6) Gn 0 CFG Gy vb Tay rot be neeoiont syrmloats sim Vy Uz, o% all He mee So, ache we sud SG CFL Lg), we by # es thar apielepacen se satich ane mer ~ egal, gor the duaivotion oh ETE eranable :- G = Gosnmnnice te tye on where oe zswhsbs io ee 5 BoC eA S L(qy= Zo} - Let gi a (sa.euetaee P29? poe ec eh? productions 3 i ere Qe. e ote Rn Perea a Qa i symbels © " potuks aagording, ae mote He pete ee Cc seesive ony tenn SH 3D dorot opperr OG ae ge DUceD RA MMARS Sump. dp apon una jalent Le Leqy td 5 ant com pire om et 1, Gm a CFS * Ahsan gist: earch, orale dn GI anives pcre! tring « Scanned with CamScanner Proof Comatuidtiom of G’= CyyistsPoS> pom G= Cur | & 4s os follows : (2) Consburclion of Un We defime Wi SV by recursion « . 7 whew we 2"F W,= TAC Wy | a a production AT7 Application Of Amy. prsduction » ane so L64)= 8y dy 5 We SWey, Wt - As Vu fos only finite # of voriablis » » Wa = Wear $O% ome - RslWwl- Wy = Wes for 474- (b) Cmmsbuiclion of F a Bea a ete weer Qus:- Wt Ge C¥w2s PS) be by Co ee S>AB, Ava, Bes poe beers, Fare a ad wer pariohle Peres tre Resminal eh | n Construction of Vwi ee b> Ere ane the produclion’ B— W, <2 A278 ua taranet ens Be a e (aun Aes rt uaa, Be Wn | Ai PUSS ns, 3A,8,E2Sf W w, gave | Aes XS Cu tArBersty ft As iz sw vip = We Rie Wis 25, AB, ES Scanned with CamScanner y of ee 1 * Pie § Ae pela eevee i E> es San = 7S—7Aw, Ava, BO? s) Scanned with CamScanner Ws = 2S/A,B3 U2a> bs Wy = W3 Vu'= 25/A,843 Z'= 24,64 Pl ug) s+ Aen AS eames “, Bold to he - ition, © Bs bo a CFG- a Definition : luk ota ie Pedurced on mon- radumalant if WOM t ‘ el A cownse vad ome teuminod ? —. PR 4S axp 2 well) for nemy X ae V2» 3 a derivation S CWe cam soy X in usel a thy, dtrivedion of terminal - that.) ‘ THeorem:- yor ery CFG G 4 oe reduced grammar G aha ia quart uo eee Step 4 cquene parma 40 PAY foe t a be A Skip? + We omakauck a grammer G’= CW 22) P's S) equivaluct even in dn sore dno aw ee om gl ich equivalent‘ G4 Renee g Cus *- Find the aduced qrammmen equivalent Fo ¢ sh Lon Dow > 4 S$ —> ppl ca > Bp eclAs Aa BS ab Scanned with CamScanner =H%A,CE Ct A+a, Cb) 21A,cs UTS] = 7A.C.St = We UB > Wyo We W, = 2A;¢,84 Aaan.ce Bem ts: Rosase= bs) : { Scanned with CamScanner Scanned with CamScanner pe bine mubtable vercraltes rreursvely : & W= ACW |A>a cane Fe Reed Rea fir Wr = WiUt AEVW | I a production Oe iP i Wear 2 Wie By clef of wi Wi, WL. AE Vu & pine » Be j = . is Bor aome k
    XX2--Kte on by “" | ubladabe yariabtes provided Kame symbol appents WH Ss ator CAINE : 3 oto te required graswmor Usttle then G, Wal iipeh ee te dowd Rave dug mublolte Bee pe§S aS|AB, A> A, BoA, i consbrek 0. grammar Gu uithoub Wut produce Scanned with CamScanner = 2S/A/ 84 wy = Buy 0 = Wa awd. Was $s, A,Bit Shep 2: Constauclion of Gee oe / G> Domb 4 mum P ie See Gi sas gue Bolt ancl S— 8. Pee ot 4th Gay AB ne i DD, GS ae Le: ages ‘ as uh Uhak a Cwe cant Case both, wullabee parcobee tuk ge SRD spb: dene cocists OM ions a Th Etta) foro geet a Cie lta) | ~ Ce ye Ais ob MT PRODUCTIONS e cscs aetand Raku acta we ee ae ae i 4 Gas acrG ,wecau pnd g CFG G1 Whack. ee Lon wit productions at LG) = Lay Scanned with CamScanner \Yea Bie Pty tonetteny hatin ofp tact Serene = (E> PREY Th Gz Cys Ps) wa a CRG we cam Hind in rons “a fpralert CEG Gi=CWis2>h,S)) wXtheut Mu z Fis Sts ive Pe hon pen heen met appear ow the RHS- of oy ppl Un er ang G'= CW» 2> Ps) without wll oe Ma af = No 2 ler AE Ve (any pariate? durivabte from * — é- Define Weld? xceunainely f? WoC = 2AZ ae yusith cew (4 mW Cee cay. de Vu tt femite » So, Weaj (A) = Wal) jae sot of AL dif ef WeCAd » WiAIS Witt WereCA) = Wy CA) for Some kelVul - A jro. lt WCA) = Weld): Shens WCA) pyoriot ts denivabte § a . aig 7 ees ee eo. paces aes Whe, Aa Peas yon du G! or L ‘ e Un G with pews) ag Vu ci ns AEWEAD - Nour use define 4 ue concrurcheol using Step d for tury KEM feet G be SAB» aan Hho wank productions to geb ou equirelent sana Scanned with CamScanner Reet a= Salcs CD, De ERE Scanned with CamScanner

You might also like