You are on page 1of 11
Detisikion dk Gnammear A grammar G is defined ae aw Qqucay le, P. Gus Wage ry Paeweccee, he Y visa 44orbe nonempty sot Whose elem are Cat Variables , are Collis Fevrinals, BW) Sua special variable calle ed Symbo\, sev w Pina dinile sek cf produrton, Me ey Srl eee Bromele — Let G ya grammar, Gages fave Pls) Where P Condsts $7 aca, Ceacatbo- Bete A raekeam hs accepted Shon” Ww) Ooolol wy elo] (ii) joo) (iy woolen eA TG Fa * Chomsky classification of Srarmen In the dehimben db grammar (Vv 725), Vo and Tt are the set oe Syntelt or ee 6 go U We Want to clase commends Woe te ah LE only by coneintans te doxm a. production + Chomyey clastidied the ym 5 nln Four types in terms & prockutionsns Yo tind ‘) Type 0 /Phvase ohrustare/ unretictay/ Recursive, Enumenable Grammes— aweeeniamble, by a oral Machine - % MWpel /context-sensibve Grammars. recognizable by the Linear Rounded Autim ater CLRA). W) Type 2 / Combe Free Qrammen- ~wecagnizable by the fushaadn ee i CPDAD « W Type 3/ Regular Grammer- - weee ha by te Fimbe stale ala: CF SA). i i q D TyweeoLunresh KRecunsively Enumerable. Grammer’ A grammar Golv,Ts,P) is cat Rengedtyiclea| Ub AWN the. procteadhene one ae sii — u Where Ui n(vuTifod Yu & (VOTE fp on unrestricted grammar, ecrenbally Ne Concditten are lap re iereposesd on te prodtucHerus: Any number 4 variable and terminals ere on the dt or sights ant these can oxur ovdes: These iy only one we tHe! A’ meni Newent mg Ae Uf “Gite WHEE, “Ave ceed € (VODs In other Words pthe Lis bas no ieff con’ on might Conter}. Q, Ss Aa A a) iss aloe ,A > A, (14}t hen} Side of Ree aA Aa? K Where 4,3 €V ant 2ET*e : ts also tevmicl ad ire Left Rapley qrammar. ae ar qrammar ig one, tt & LAL or 4 Unert or equ tan opera. 10, Fonmal ae A Josmeot lan bre es lie Namquage) & an ab dow generat ch ae eS oer Sai 1 " Hyatt cam Si ke er a sek ote wah wn age ntl aM & ae aliicosens , 7 patricular AA phrroete Seta aca ABrms)\ tom. oj lemafth werele (hen Gendsaates oA & feptes Aer some 48a ape eee et paleo een as Sela. » LOM) is @ lam : co ‘ Sn tet “Gece es vicalbente Aas ae b- LG) & @ len Oecd tye ty acon a “ae sae ee er Yate Ge ie a x Setecesi ug oHinel by a eg kor Vee kek S= ae ae tow fae A wt pombe viel : ear: A et eee , 5A Com be Watts nud SR} fer Ap oe "a Ly bees: as eeattnynsenraed este a ae Db vr ete Sy me = Arn Then We Ly Se neays, aes: ae the yum a pownble stongs sey 3 Des V2, 222; seer Sy lengli Tis can also be Orton ag. by 2 $2741 [nso - 9 a _ sce] He face: ° ers ae NANNGe qeneratzg GA Bh G = (853, $013, {s-p0sy, Sn Ss). Aina 1 GE) 5 ol SS = ost = 00S!) /o%s12 3 > One ee eeu Gx sa) cea OM ezone, e wy ter G+ Lise? {2b} PLS) P cen sets dss aca, eC€r7aea/b. Pint LCG). x oN = > ates aba 50 aba EL C4) pie Sy aay = at%egn (by apeheing, © 8e4 (na) bingy) Barba (by aprlving Cb) #, LCA) = porba™| nay Gs P om G Quast slate, Sree) wi Ga) = fan faq Sop areyt > ra be Sy en eee os Ya, sehe Con eh Aro « eee ae wa age Me set f aif Linen We wee tee Vette Bap ten, te obsewe the follening YD A tea palincao me: WW a,b pre prUndoome - Y) of wm tke palndlremt, ana at bolle are palindoome . $0, Henan? ad Gye coneivhng f ) SOA ‘ OS Ftc el eee, WO SASS Pond eh See 1 Lt G& = (Est, fa5, Pi s) ;Thin, SWA\ale S—7ASa|bvspy. s=> ] A ee Comvbuck o qe try — Pam C | Ne aean GE 6 asp, fay iP,s) Wulis rats «fl Ps otis PEpeee leery So asa] Comm ar lets. ae D Frad DB onary nea eben Rey . a ae 2 4) Los tarre) 21,42 03, ad Gh Ge GEAR tan. Psd, Whive BP ie sed inrs| es, S>A|Se A ab |AQAb. We Sad. see tee Lim faibren| nar, 420} SAG = Ge atptarurc iy, aie) ud rhere P consis f5 2 Sa S| A eat An bce. [be - 3 ‘ Po Ree econ one eset ost : ince See ne operon on two lama us at Boe ages at a ef st Ings, ans ee tha Undone 45 Nee, bo ts tee sey eid ap pene Metter He Sn Ae) 3 See tegen ae Where Ly and Ly ay ene ove Aes rte olph ales . fet ae ee Ly = fo,o1ont ty = Ye, ooL, tS} Tae UL, » \ &,0,01,001, on, 18 3 O22 ay Ly = $0,005 ooo, 4 t2 = 4 © 00, 0000, ~ ~~ 1 Ur Tiana, © {owe 2- Interseelion: wo Tena ting over alphabet rn Matiiemabiealby kere ob) anced 5. as resented bey ~E LL ALY rer, onl 2 EL,” vSetase Bx; (eb L) =} 6,00, b000,- br} 60%, 0%, - — Toe aus. ae BEE isk ty peyote Th LA, = @ BESS (ue ty eet any language. te, NE = =e RS Hp ————- oe Complement ton e Complemertrtion is an operatio per forme [ice * Lise lo UA Ae Lope Ped et tee ne ee ol rey over an alphar lerotesl ky Tor Lt, inthe lang eee ec ll ice string Hears nO me Lover Wee at bhatert, ViCe Verb » Mathemierly, (his is represented ous, nm éeL UY x~ee-L Ba oh Satay, ant 1 faba ta, Complement EL Pe Dal, ee a cia — fa, any 2 § & bbab ba, aaa, bee, — ~~ Be V be a language ever fol], fe ye, ie ear en = ese a The ,Clearty LT convists Ch M ebings, atleart me 0+ AV Sy mmelenesensiereneet Suppese Ly amet Ly are two different Neamquages [ined over an al phvaet =. Then gymmebte Aiffercuce GE Ly amd Ly iy clenstzos by Ly @ ta» met is tefinest at — : L,@b, =U) - CUAL) Elements sf 1)@ by ere Continent o/ Py Lp but nok belt Pe 4 et UL, = $06, ego, - \ Ee ite WS Tham, Ly @ty = foo, 11,0000, 1111,-— } eee kek LL teal SL Am ge 1 Then elenrly L@ May a nae e. L@L aq Le eT Lot = sera aaTarem a aR TT Coneatenahion ef Lan ads Céencatenrak on ae wages L oe ist: Van. tage tp ely deck eee wie te ae wie 1g eine. me Coe we Aree, Maree fs BRAN te eran aan Socoy ImeL, mmol Yer. MathemaH calty Ljet, = Lt = eal ee = ios bee, cc} Tia peeyeeey , Lyel, = f beet, Lo Cece, becerte eK, cece] Bord Carberan prrelut is gten bey Lyx Llp =f (by er) Coc cee), Cece, cd (bee cee), 6, ce, eae ct ‘ ot Us obser Wer L, ot fh pe | Als \uxbjak ma \Liela fox, Cnr. Ub Ly 2 he, 22% --- 9 Ly) = 22 Bere, --\ Thin, Lely = 22h, Cepes —). G: Reversal Llevn. At Mathematically ,» tra com be vepreaeto Gs Ae ce Va ee Bx} sp Lb = fayby, wha, bs}, tern [Ra $b, arr 22, bgas) | Exr: of L=$o, bu, 0113 then, LF 2 4 M0, 1110}, Gas: of L=jol lis ry You, LE a $ iat \ ieaq, Gna of 1 = 40/10 trum = a 4.0) U9 RRR ER ann —— ~ tH Pakinelrome Lang ussy : A daw SAAB oy iCealltol fol tealea yen over Feber) ip aah del Pathinalao me 2 {eau Vina, Suh te~4— NE Wome Wy = Ba rivetotly , Paltnarone = : &, 9 baa, bb, ara, bee, aba, bal, cana, Abba, ~— j + we Hr subs ektin. ab ee E Meatkematienlly cenobry 4 ew ee eae eee: 0 Seater ai a Sagi ’ beng thk— Bx. 2b Lavin, ut, Wl, -—3 ta: tt a {MLZ | amet LETS | Lym, 13, a1 Cleon sivr/closured lonpungs: eee shew f- a language Lk He 4 oe Coming ef a Be eh) pe Concate nah, — Harpe "a String ae ) ig ae a Exe Soe ey ee Safa Theme ye 2 {4,2 2s zzz ae Wire (it = Pye to tae Nike Vesey, Um jog Lap ee | a Gari L = jooon? LY = $0000". (Set 0S 2e= in fA ot Le €/0)1,00,01, ~—— Ler Sa fo,4 Heim 19a Vey Ls | 00/01/10, 14 a x Covet) B24 pee, 0011 1% O11, 100 101 10,1177 LP ete vie. = AEB UO Oy oer ty te) be) Shy aw U CUi-29 LiMte = (LfuLsye

You might also like