You are on page 1of 157
AN Theory of Computation (6-84) (aaimarg9 —— tnnwatee Sal\sbus 5 Text books + \ A.tabeduckon fp xetal lanquages £atoata by peter line 2% theoey loot Gompukabion fy I4.Danied THEREL wp | *S Traduction {0 language automake 4 tomputahiy bby Ullrran ah, be Tobreduebion to automata 4 compiler Beaty by Toe. Duandh-en fs -__—_—_—————— [ 4 Autereto: athenabcal 54 used hd cefain oom. banguag os ~ come i 8 Re, | bea ° # Reqatore | cy POA Sy Gok ree, Uy Linger Bounded Automate, (LA) a wm ey Recursiuely EFiumerable / Fundamentals 4 Terminology Alphobel: An olphabel is Aide sek of aymbels deaokd by Fs fo2} valid J 2 Sonya Vf valid Fe Poms invalid teords [args seakences: ABatke sequence symbols Over some Sved alfa Caled on gio} @uahich oS denoted by WO #'- Ar ze Sent We JOHNO — Vala oksig < ws HOU = invalid ing Scanned with CamScanner - Ly weap t See Sieg’ Tes no ct Symbols Composing, fre Shing ss called weogh ot the Shing denoted by {usl is Brgy skin "devoked Ly E# 602 eA &. WZ lounl = 1E0tE Oe Wale Sreagth is shir & gases a\ghslac THe power Alphaber SE denotes ser of ail srvings ak ength ke over s. 8. Fefont 2S -fes zr foun\ 2 fLovv ore ror ese = A gpaiogs” A length 0 more. (teOrisenah SH ote Ae ea) Sestesh- 2 hs! 2 st 2 Aw gyviegs ob length | Or more. ge Psi + st-€ an Specabons, on shud: Fiche: Al pomsivle Kadieg syrabsl_ subatings Gubhiaes + All possivle atl esd Syyakst Substsinys 3 We be pefiaen: €,6, to, boc Proper preter » by to, boc ‘erate a Soffices €,¢7 0c, toe proper subPicey €,00,boe Conealenabiots fo obykata Concalenahion o& hoo Swing. Wy #id «Wake toy Allowed by My without any apute Lho then cat worgeetaate Wye wal Scanned with CamScanner palindyome: A shig WD 1S said to be 0 palindrome , it should Wa ; woe read fowward ax backwnsd Benteal whether Bi SAD Ex Fou} vie : Heyy polindemes: 0, 00100), fog, . = + foasider the Bllosing alphabet and the Shiog Wh 4 Wo. Erfout Wr00n wo7 110 cerfked no of stings af a lergth 2 begins aad end with 4. - 2 Wwe 5 CrZwwsyw He oir e004 fi : BY wahether Wy Is LE galidiowle T= Yen wd > gretiees ab We - SE eegln +) @ tr ot oontoa suffer 4b wd Pe) D Hors mang edeeg A length Ste palindione, caith Win St paces teane or iakanee Focral Lorgueges + se of hirgs omy sone Reed alhabet is called leequage denoted Loe b Ee ford YF ovroonsnooti..- } Pfor dh BA} 1: fovr| mo} & Swe font [every W hoy epiat moto’ Allouet hye : ro ob ist Scanned with CamScanner ° se ee gen be described a get of all Sdviegs over Se Four with \ ; eal A ols and eg Mofallowed fy equal aod i's. sare svenizrs, Atte language over the alghabsk fori , al ing leh a Stee ose: = aur te Gwe fouyt| wisn} 9 LYS # Ley tag) 7 ARLE LS © Comey sn gos) (5 se 8) (tte) Courtloly ihe = Gs frase fevncaurtidly ikoike : Ef x\a is a «tah amber'h | Jas rand raat oY A languages are. either finile or Gouatably iohiaile but no a atonal eo the following enings, over alprabel S > fa bic» arg wz boacale r Bod tre no guborig the 484 ed Scanned with CamScanner 3 Pee Fs Joy. thus wary SS oe Apossnle # levgth ng - Dn Hay Ao don Br lee Be arbicl Pei seins ma length <3 a 3 = \p 2 2 24D pole ‘ Lee She the alphabe eaith 1 symPlS , the possble na at shings d fength A os an Lang rage Operahore Union dvle af ed fa & Meee her Lak Sokrecho + Wile > Zuls tg ia both §b4o4 Gereoletobon : Ao = Saul rely f yet} Compementahif: % ye Hor oh 2 Jue s% but ob in Le4 = 2th Keen dlossre ; = Leap $810 OF ove creole J ged CF 2 ded (conceeaon) Poste closuse 44> PLS" te, one or move contalenahy of Scanned with CamScanner gr eran he Aalsing languqage Los os eal O) wisn dee lowing wprecets opener d J 7 °° Sai ( ca} vot 3S refoiei | tired DY Le fuloce Foy and w ceotin wrepal ne at os. bt: © oro, “V) tote” gh the eave. Locvesk anaes ts A . se foo lene force aoe cacti meq Fiteniler see Tallosiny (arg ove ie abpapler- GB Eafouy.ohich of tetilaig is Awe 8 & & Pals abaden-t99\, were Mo ho ob derey Zn 09 fee to of ones os >was cortoita ok 0H8 F015, & he fils cnbin paliad voms over Fou, @ Seed abe cod aige of logth 4 common in ol thee erg - -2 (oer) 8) tsi owe gp Abe falloatay edahiochio Hoe A tee tong aa DA cdg eds ‘ D eAE ds Dd doe dseke Ub) hore Ete Above Scanned with CamScanner a "6 tof lola & + Consi a Bi Gonsider fe Fada | idk 20} + bod posite she go laws Dot oe ° ‘ . Oe sa (wats) PF yy L Tevatid V3" (pw) * Oye (ua) ONE (ha), » OPr*(na) Ass 0 a Le a be Ae cing dt length ond WY containg’ dll Syokal Has may ton ergy Soshiig “Srey oe POAsIbIe wrth WT 4 seo j sym ‘ gm crac com ehy Shahin v4) ator) by seo eebesahe = : bob sang o length ‘a's ON ms aD AGO. : z Sigs ed ad stings of lerath ncaa bow snany dibashriys gs: (ati) fy nari) r+ Scanned with CamScanner st we PE ta ge 5 0 9) ee Syren 6 us Prone os | dats h(ca enh te) me paSay ee AT Sole fe fuslwegont oad Mola) # ed} Bad Ber ving of length for fess. in J. 68 a+ 4. 3-n ei Ip Rep. 10, eu ete Ss pe a Fo Behe 210 sth Fhh aod ghing A dep or ey = 912 0 (o%ely ata) “hea Arges M222 Reed | Deed comple fa if 6,00, 11/2011, O18 ¢ 1108/0101 r lool , O10 $39. Scanned with CamScanner $+ Aa hny dened ey a alphobek Zao, od eeny Me tea Such that Rast pce, i plece ond Joi place ac t's. iad a Skving ia lang - sy ne Ve-veny grag fuk Fiotle Automata: m2(Q5,8,4,, — LL | vw de> Soe portions NO a 3 ary ton be potted by G gate dlognen tan’ hon diagram tami Sn, S tule fabe | bongivien table, 3 FA Ba maltemabial sytem consists of 5 Auples > 0 --- inkl gle 2 O---25 boiek, s > Although ive axe many appticabing ihe the FA He“mela chy 4 te FA 1S Fo peste Govhain sompdaKend apeabons in he conpuber Selene: Fe Rilesiog ts faite cutis te “ene idee eotler Bray nosy dey odd rey or even Zener Se Saeo Scanned with CamScanner ie 9 A FaS be de) is reccponibambss daisy. A igig W i Sale fe be accepted. by) Fa & ona only & a machine Jewminled at Broad. shake. by ready felok sya ia WT other woonds a Sieg W gaid tobe accepted by FA ED -S(4o,00)=0 be some “P in FE . Qe conte belos FA jetovo heck chetlern He fillewsiog ahrings are secagonsed bay Hee Ao mak %) roo" 78) oloror KS toot - Br tonster hillosing FA ; q° F2) plooio, pb) loootly JRO BIOL #4) [poi nioor Mere | von, Nonny des,ou0.-4 Pode shat dan bedebined us coke ah shih AF overfoul\ “ AN omy sendy hlloued by % Greeti US Bilowed by ony ambit at es L415, Ree Scanned with CamScanner oh rd ben: Go “4 Pin OA Re te Sila thaw erage evacly one treatin > Te stale table PDEA Cantilo gin si € Avanibony Side. enklies. . RED em, never perou't, B.Oxsaq Na ATER OS tule, sytem (5.8, 40,6) Bs dedined ax Ee Qxs> 2% > For cath jp syrabol BD SFA tee meu] EAE one or enoye ryonyshbes D> The wile dle GF NFA Gnsing ob mole cehned enbiéa. he KEK may oso ports E- ranychges 7 zsouned PAL HOF gp ave Gerelly trombed teks ddeiquibte Fk fr ey Hienplementshi od we. . Ber, developing 9. mechanism 2 ye fhe wed & dBReuke Ahan Pr A OFA. Bene iy do Hrouitale betY to DEAL Bs Design a det be vecopmnse wt of adh shings Her ZOrIk erlag wilhon 3 1 1=J 06, 008-190, 0000, 100, 1988, oe} _ Scanned with CamScanner yr iq Desiga © DFA to xeeagoaise Set eb oak ings Containing Ate Subsricg Js J eee, eee, 0000, e001, wooet Sy Hx Dem MS accept sek A sigs over Fourth gach that Toth syrbat rom a: ©) sight end C5 Me © ont es hele we x Bicak Sexgn Fh -sucy hak 2" sypsbal From aight end is au Be Fro, vy losin, 810, OW Y yes’ Genewh Method 1 o \ Waste 9s cacvepteds, fo nth 2% | % uy \ Shit hon agit —|_> Side h G Gs D2 Cnt shhey ®) | % p. — 2 Shades ° 4s & reciia| Scanned with CamScanner los design Bet aka place Bor yt ent. Be at 10% Gloss Prom wyht ed D8 rlory waders De Sir hed ate 1 Br he accept. et Aad bh Seiinge aver fou arreren wo f off cen vo # US. & IF Foor 001,110, iLe0t1, 08 i108, vost} O10, L001 jo rooie ' Ty ove hy ba & Red she - eda ols een ts dy S Bed ade Gre o's odd i's My ib Bod Hake w odd oS ol u's — Scanned with CamScanner we - - OS Theory 4 Computation: 4 ;a. 7 | MBean a DEA ty secogonite aot Ball etviog’ Ghose length 3 cea divisle by 3 oer olphohel 5 - Lon “4 rage. | OB 4° $2,009, 11, 010, 08011090. « “4 | on ee Deas ‘ Sh % DEA Ae vecoppnige sa of ath Orings HEY Poly hoe Are tbe brary umbers Gre inlerpraled of dectonah tegen. Qa ge mathing ghoul: accept ath the Shiegs tho decimal vale 3 duis bys. ABLE TOD WL, Tois9, LOL, 1111, (20011 4 1D weds -2-0, VL mods ~3- 92 hi loo mod S-4 -4y (Ol mod sg -¢ 0 4: Ne {sty 4, Paktewn Scanned with CamScanner — sty Qe Soisithe bys . v ° fos ood BED y i M12 wed yc ane Se bO med a a2 ag) UL mod 2202 Ay Ys tov wekasa>> a, lod-mod 352 23 4) 8: 2 lorvreacs ok vga Re He Log eS o% [nso ; A>J1.001 0004 Y Previous Questions: 5 Contidey sherbllesing Dea THe H accepts alh chsngs over Oui 8) oegin, wth 0 rend with 1 by endieg » Seog) ry) tadigg _ in =) Scanned with CamScanner v Fou ans Aype fF questions (AM poastbte vraings of Long ghee ond ophig Ceaaager verkieabina my 40 tovony) eK Kui, wow toa, ott s ) Tfoy a ir “% 9 tu, orwell a) Eros Wy Bove, O14 “4 ending vith 11, . Goatier Ae fllesigy DEA HS Lek denoke sek fg bik binary Strings it nich the CR, uth God ok Libs are Ve Te no ch dvinge ig & the cre accepled M és * ey 'Ss Or AF \7 mee 1s foot, toot, bioer, c1oo19 ++ ¥ Obsewing abowe automake it acceps set Sheng tay sulabing ‘got! Scanned with CamScanner wa ausb a 1234569. 1608 . 1818 1 OD —ra¢pe ven ‘ bors en , oot ‘ tor 1 tat ee Dt cor Tt we re By 9 moe oye ~ 5 | ered . . | <(ongdex the mmathines MN o g: Conse . o O ‘a Te Nag wecogonized by M IS / i) @ $ wefony* eeery 0 nus is Mlosed oy croctly 2 Us} ” DY Lee fos Jew. Ny Aine is Rilecses by atleast 2 O64 e) fue pug | = coi He subsrsig abby a) fue Saw | fu hey thal’ a8 Sabsrsing | be given de k * J ave, bobb, dbbb bbb | abbabl, » © $ bb, bob “Fb, abt. 8 Se 7} a babs, bbabs , botbbatbsabh ...) Lb” Sar 6 ‘hate os vk 6 feeb, aba...) K , eae i Scanned with CamScanner Jaany «bsiegg ls. We Mlasing FRM accel, att Ahese Bianny -chvigt | a aedels ore reyeckily - to's a) duicite by 3 £2 8) odd £ even 0) een d odd al) divsbe by 243 Bien LeBoo p11, Urser08 Nh Avett, Voto, tosiest = ) he ® I+fo0, AU, (Oo, Woon, won, OWS. LY _ O hus. PhS e © . ASU x ¥ 6 HA A, 080. 8x 4 ote Re den VS Auiiole by 84 O's divisible by 2 Herainder Conistnchins ox ©) Ws) Col | Guy ay a *er6 shebes Lew’ x 76 shdes 4 Scanned with CamScanner oo ee atore we ch Sec eps gig oot ng fs a n divisible by Ss Le ard O's diuaitte by Q requires IS chy Cee S215 Coe) iro) (aie). Coq) Ga) uly - @t) OG) @r)- tr Design OFA in ahh no Ris durcble by BZ gles wemaindey | urd ne F ods oy Muigible by 2 Scanned with CamScanner er pea b BEA Conversion + tol do Be@ is S tuple Sydem Mo S85, 8d F¥ Where fs reatitton Ane hin Qxs32% . fies for each YP syrbal Hare roy exit More then He one Aronsibivn. Te wee “rethanin vis te Aelphd to decvibe certtain won - delerniniskic. aydem's behaninss bud i+ 6 very conplee & cade, Ke every wenthere exiats Dra that ‘simulstes behaving

ACM) bee 4 (Giz esace) be oon RRA = toy pe Conshuck an qquinleet DRA My He (QE, 80/40, 6) 7 there @ oie poe sek dw FEO. but contain demenk = 8, defined os, BS feeder toh .0%, 2 8(dosa) VS ,6) VS Q0'a) = POUR Y..- UPA > TRA. Poy Bemuet the. lloaiy WEA Ay. OFA KER in igisclh lark bar One Symbol wy ° ff 68 Scanned with CamScanner fad, faa) front Fao Brea) Fromar, Boat fina) Poa mate \ feoas\| Poa} ~ pe Tr Me peocers de aannersion Ret fom NFA hy DEA a2" hide means Be Catal 9" aber. RE Hee pany alto cattaeh, anyrenthaler Shler Hse consider oly _ wochgle. = > Convert elon Ref be PEA en | Pin | PM Pian) PAH | Poms PS Ps Ps Petes ae Pits | Pods Scanned with CamScanner F . Coaved’ WF by DEA oP Ur v a} * < Pa s g|s ay 1) Cotind = BGfbe EA Ddeonwet WER tp DRA Cried diogam fo doqyror con sextist) a aO=® 4 + . . \ diet Saquente Sagan resin Yoo Scanned with CamScanner | Alowert SFR ROFA | 14 R | Tan abne = nce we yeacdy ac @ Bo matey, what fp we ead, Ge ony move hy © o abeich are Rook ales. @ belos DEF & einiondgey pts” 5 ¥ pe 4 . Wether & shbey or © by Hewtiby by @ @x @ KA are con Rea ye cac't mlnimre He DFA in EARS method F evinintzabtan, a “ * Grctder de BEA ‘A! Sheonin te Mjure Q! 90 ; ; Dy foot 5 Fad He 90 AB reachable she By ile ving We M80000"- AMSA 4 ee ASSES — ge ’: Sales ° Ome Saree, i gene abated Scanned with CamScanner yr tes, ae Cordder eles NFA TH! , * eon ler Ae sow accepted 6) He ' le Ly ke te. Neg occepted by wea ‘My! + Oblacoed by changing hese aecerh ry Sole om fo nen - aecephieg Stale aod by chong og won cecephing if Mb eccep hry hie. Weick B Ate Rasing chbemmen chkemett i tue? ® hy > fou = b Drs foryt . ywer 8) et _ * Fis Gonplowenhtion technique of, DFA GaaBRA In ohh aging Raak to moa-feek and man-Rrok fo Rng ches not cart, Re ter lg glen : : y “ be Pt) 101 19 e900, i000! 4 a“ 8 ca , wy TR ioe cabeerd Ate obec tga’ ate het Shing ny lng ht . LeJE 011, corer stot aera “be Pouye 7 Scanned with CamScanner | EK Wa, | LR MIRE ain tof sakes chen beloo BF OFA b) Gnertea - bal Holes 2: aa Obsersin pra Ha Clear teh ie accepts ba Loskibe cattacaing athy nurber F tendo, as * Bo $9 COM Sand Ho bt redress visible by 2 Herve DEA IS a ® ° 1! Rathod =_— dee concension bo DFA Here divack inition > Meh possible A Lk uous ja Peay 2 20 Hills long winimetahion Procels (an Fabs So co. Alles Hethed 3) E-NEFA i ApaAmUs € hang Foy PENEO Sheples Me Coz Ait, ) : * Bick Qx SUE» 78 al al -l-] 8 Qo qQ 2 c é e Seo 2 @ 5G - ac Scanned with CamScanner of OFA wed 4 4 SAS 0 ys 528 a . QrrvE 528° one we Lg ere aa | py bon OS | clang accept by WAT Gee de descritgsd of avy to F reroes allowed — | & ony nod 15 Kallas by ony ne #9's g: b Jerswamrye, - . fe, amy.to of Us E-Clenee « > E-deawe Pde 4 (E-lssele)) isthe ert dlr F od thet every SOC 16 the p isreochalle Aram q through C Gnsjdev bdo ENFA a i b-clesuce ALA) es EA > Sunes efa\uteruzes € -Chssrela) > Treeicl E- chewte(@) = fare . | 6 -thsure (0) — fe ; Scanned with CamScanner | ob 0 z . C-closmeCa)2 Lh ec D%, €- clovwce (B) 35 eh E- Chosere Ce) = $e. 0%, é- clswreloy. fo ¥ x | | BE & tm clened herd tePonckog 8 Ge) fawied4 ®& Fue): ts 8 (ces Sev | toon Behe BCa.a) 2. E-Closure C80 ea.e),0) ik “i | BB cae). é-elowe ( $(8(4ve),0)) + ErClosuve (§ C fareeegs vs) 2 €-Closeare Caco SCodhu Reo) y ssa) 7E-closure Ca vgud) > E-closuve (4) i = LaBecy Eonsidec « & Ve a 2356): € Scanned with CamScanner P a a § (aco) = “&le&ersa},0 / = E-closere(8(E(Ac€)-0))) 2 E closure Ca gqscr0d.0) 3, > €-elegure (8 (Aco) 0 8(B.0) v Kio) 0 RLOW) Sethe (4 uch vp of) = E-Clesure (fered = Exclosure fey U G-close Ce) > few Teoh . = Fecuok > Le wibe o ‘ehing ero! be teak syrtal Bw ood + be asking spat Dp Berens.) x [tan e-low (8(8G.2).03) t : a Ay 2 Cashier 6 el 2 bb (oo) Bide & cele C8086.) 2€-o 8 Techy) > e-tlo(®) > Pct 8 Gurd> e-stone$(4(s00.29) * Eee s(gic¥),2) F re-clo Le)> fed Scanned with CamScanner e-nen to NEA: Fr oery ben with € ye ca Gettuck Gn REA without @ Such Nog both sil perfoun come feb In ether ods F Lab accephel hy NFA wth € ten L & alse aecepled by Nea watthout €. Lee Me Cas, 8,4,,") be cone "BE CaN Conshuck Gn “equivalent > WFA Hy Wo Mos Hee CG, 8, de, &: Mga) ve qeas acs a f- fr © Ecker lde) E-clasx (de) Confaing oth F , ovhevwte > Convert the Rttersing AigrA fe REA t “L : f 42 $e hog ae) Scanned with CamScanner yr fal f * ha cath ery [adc] bed $( 4.0) mn ; 8(4.0) > Edo (3(8Cae) )) > €-lo( $4.0) v $80) 08CC0)) > €-clo Cay rJaaict closes x ects ; —§ =e | § (ee) = 2 aes Tao I a cay? RAL) > eo 6 ASa-g Woe B sae) > ectty | g(eut) > oer s | g—¢ | Corpairg Rich shies Spied sake) A ecdoae C8) 2 $4,8,0% : | LyBinad Hale, eniabs 11 €-claswre CA) "Re rugaacl + ofA Beck i ' Scanned with CamScanner 1 2 Grsider the Rossing er WFA : . at Yr. gd S (aco) a) AT ABR RH ARO —O-k Eeclostae (AYE fa ich Wetudes RA chede SF, FUDACY or 1 fare Scanned with CamScanner 2 f derote Axangi Hoo Nvodion - § demole te extended ? . drangiion funckon 2 ened below | Scanned with CamScanner 8G) a 4 — Jdordy i 4 & 0 p ds Ytey Har 4) Jaeh Observieg obove NOFA we Coo Seay fe occephy Shviegs evtaining one o% wore fo fos. Jeoconsaa: +4 - 2. ComPlemedhabian > ‘asey Bo Fed couplemeniohion of bolas E-NEA , 0 fe € % br Zd.aaaag:-- % izle y ee - Scanned with CamScanner ee ) y fant ge et d Fahy a) None \ © oe ee emo ‘ olot|ze see Regulas Ses 4 Royslac Exprenions. | a The Longuoges, vodhiclh are. Accepted by FA ore called reqular seg negulac Aanqueages Sh cee Bal Seiegs oer aa font codtaining, toe fo O's, A ete. /eoding with 60, eh | || Regula Erprexsiony + Hei Posse to expres al segubeor lavguages “in mathematical expreaing Using Are operation, aot . unin 4 o¢ » © Concasecaben tS) E) Ween else C4) PLAS be dhe input alphabet B Pollows, di B is weger derwtes empky language SE TK wegen demty emery rig. we cin debine rape ep one Z weunly net Scanned with CamScanner St @yral is @ tegen Sach thak VaeS W) Lek Qita) be Hoe ager thea ae FH I xT one also THER Coos) (coca) (Hees Te . dese. Expressions wich ave olohained by vaieg Ake thes, 1h SAL also Theot regular erprersions v) Taealiey Soc regular exgraisions : R= RE=R 2 GR> ROG Union is commutatiae but BGR > MPRA G: a me Fe concatenation ts aot ‘ he RAR =R ~ Tes, PIOsOre_, PATOP — | Ss oth, Union £ Concadenahion ave, | & (ar) . : orno tlabee | ~ 9g. Rees ete et tee, (PAS yR = PrCar8) , \ Ceaye = LORD © } > & ealegt. geTp es gh 4 exerts Qh j © Plark)= ParPR & nie (Qag) P= as4Re % Grat Gra: (rat We (ene y= (geey”= RM oo Regalos ep erat Jefey Jefe i asa 1 Sabo} ba’t neve obtba a ablia A Gotinadey. eff 1 ee ana bb” Scanned with CamScanner ‘ GAN shetags, “ee % Afar barbi' jaz Gb) Cart) = Gry? > & Fowles Ufone : oud +-Coatee) > defer | at J de fos\* cary* wo be fare'foly Gre) als Aa Give weperE ewes engors) Be Mlasing lonquaqes * o ending Wh 00 5 Cort) To9 di Al erring tanh Cee Scooters oy ay Srey begin taith “Yaad end with *o” W centaes caaly be of > Lorn o > Voto © Conte's abode 2 ols OME ob ott Bote * ie 7 “Ceson) ihe ey 1* (UK) comeinios Vek 2 gion; Goto oro Grit @) ' Wo Hort . j @ Cone Fort © 4-8 orto CF suiegs length oe OY shoy A (egih Beme s Cnastcenst x? length Soo den, 2 Phone + OMe ess Scanned with CamScanner Vag) containing, Sate nad Rewe, . (towrow yt! MY ~ (yrortoy ~ Foro)’ ? ©) conteising o46 wd “oy ‘ ptTore. os @) eCrerey'” epectorett lo . + \ Moveryet os « ; . ©) ewe ok Lee > ri Ms \ [oti Gio) orsy*Coriey|” a bscises te Ballossing Fefubar er BreRs ions, ott, doa | f ahs x fe p Bad kad ek Ire DAM cede onoit (+ ? Froont 2 o oa a Cony 8) tee Dicom Groot) . (evr) tt 2 071" PE co ag Bod Ea KB Used ht MU. ok pts olen of Scanned with CamScanner > Consider the. Allosing Lungaoger 1 Give requsar epprosvory @ *- et [eh —— Ga - © f2™[ at > ote j & Joi [amaot — ote" | 4 CoE |nmd ol aa -aakebll anak bbbb* i} 7 + : + | S fam gr er [amiero} > Cass*(hbb) Coceey” } Gf POE ame cr - Jarmo Jomo (acd bh (baby cece(Gcce)” 4-FoME [nemzo'h “is ts tet a vegibar lovyynge ond heme ae eanit sit weqer I} scenatter He. Following regular rprestsions (S) a 6" Core) il ey (vyto * i Gy (wos W) of 1 ahich ob the alone vane : id yooh ped | DAT NY TE DigW doo | Olore) > oly y 15 ot bok WOK org OF Core) = Goo teat Coad) Geen” Scanned with CamScanner iy apmob {orsibex the fallowiny a oat I orek(te)* of - ‘ Bnd ia lest a ahieg, shih do not preceak in abaave ony bb 2 io Ta ake dae \cayuoge how many Shiegs oct ‘ergth 4 Lent be produced v a cabal, / ‘weal bystilo, . ‘eo bb jee Pe wegere denoting gerof al Yring edie by 9 % (ron Cere) 5. ory en) 9 Gao’, Hod ) Ee) Corto) FTE WW Ot0, WOOK, WC, (ay + > J e.0,1,01, Ota. S. oboy i i orf be log Betaegs. cS oO dees. wor helen, 12> 6 bebony 90 ot fatraiaiog TSO Coneatie ok Scanned with CamScanner | Forty denotes He sy? dette Milosing vegan? iets oo #5 subshs) 1s | ok | fe ah seegs tot coataiairg 4 . 2 ot (vo) 5) ef torot od) of itor oF Cont one, 4 bef e.0, 1, 00/1110, Mh 000, 681, O10, - * 5 oy £ (004, Lerera orves | bd Fo. | fey > . > fe,..3 L 5 42516, 0/1,06,01,10, 1, 000--°-'S to0K | } ( Je of Gori | Reali Fle Fulah fubsabe : Br every 39 Prove con consteutl an eyuvalent FAM Such thal ROM) = A) Ley any accepled by Hts epuiakeat Bboy ®: es ‘ ne Syatdhesis Hettod vetted : dog > 0 0 jee > . LH >? ae > 62020 Scanned with acon ane Choe voi) (ero4ed) , ro Te. lag dascsptin Ar oboe lovg ie AL Srsitgg over FONT “1 Ghich dy st “wore than 2 Gntecukie of, 5p. se con dea conglementahie i lem & Ciresoniy” off aA ob Babahing 090) “scanned with CamScanner 1 Mioimumt sie. ea C Reduced FAD ies fax wey OH oe cag commuck 0% equiinlent —mininany Sake tg Arak perfor, same dak ay M does ite, tte main Shjeckve of wing & ore is reducing Conlenhy ch achal mochine , the veduced cwigitl obo ferform Me some fae ath wid to ch sales. i 7 Too ander PLA wc a Mk f Ge equcvatedt iff (8ea3; 86.23) = (ag) ues* en , PRO Rte ave choo Rinal Saber ee @Y ; R48 ot to tonhinal states There ar mabtple trays f bod Cyulalent sede in tHe given der Ss Tabobion wetted ~°* a, pat tion, Agpei tery a | Gi) fenoatedse loosed ‘ © Bh: Rnd tee iq ede DFA Cuwerpordiog by yarthie “KT shoon bdag Scanned with CamScanner rae 125 aU Pupne Packon Als Ror} Waaans 6,45 (A. Sete) tn PaAiWON Rog ges GEVL. + Coiide into Rr £ ropeinal) Raf qusmsay GRY PrVior OEP FM Casey $6 3 ee x Phang 2653 [eatin stood coatind . " Lak G2 chain gach Hon ff Susu, 1rs.d. Feud | cre ioviler previo ane) ile parton Ake *S? gates fom ore’ Sok ond checker Ray, let ese sedes foe Qidy ss Ino nd . 840). 8G 0° waeSs tf hath 8(G.,05 2804; ,0.) ae Some gb coh dhe, ue eb teen 4, hensise Aue Her, Produces veculeg fon Wd in Same seb, Scanned with CamScanner ° ( He b ¢ 3) a” cs © S 3 h 4 o 9. fea 4 ey 5 c fn ta fobidietig hy, gah Hef foes) fy hy (abr Terh Yeol fae Gav. SEW, $4, Miter 08 weve ah fbi LA, teh} aunk gs WT. LO. yt gage Ds Scanned with CamScanner 5 13a- py minienine Teas peter pe con't Raa any BeaWeak cahaies ond hence wegen Unley titeadtin mated we bGhty SFist So oe orefer pox Wen wwekhod PoP faodss « 94-4ath 2 TS Phy, Fart) ae Pee F Res 2%, Ia, oy Rig sep canbe performed een ‘eho “eptlying achued Pach Kee slgovithen 4 : | PTE iaivnization 2 eA ppc oppliatle’ hy Dea only ie, & given mathig ry! RFA st should be frargbrned ialo De | behve oplicahion ony wisi igub'on precedent. 7 We hee b enue thal the De mathe & Bee Gon awe omeathable, ses. : ‘ Scanned with CamScanner | PHAR any Bmeachatle she io DEA IE Should bey, 1 re Gra procedure show's be applied Revert fl te gabe | Bs Find min Akohe DEA coevespondig to He FA °F fe sve, 163} ® PP pa nh Toes, 1043 BY ga tot DOL 2044 Nef Soh-I6S ppey 74) > ie lige oon Cortaina, my we ~> Tablet: lorquoge may c my kt net ij ae Scanned with CamScanner 4 B. The wa Sale DEA Ap Yecogonive Sek at all vigs overfh, | gach WA every Sexe cerd with Corky 2 ng ob styles. "S Daeoni ingrabe. 7 : [P< Seecnine ws BFA to reeegonive ger death grin TOL searseg \ fete Dubey : aia Partai ing Rr do ee cenkain 101 Po kde a8 ao | wou Stales (gg being dead ote Joo) ieee ee > Me min dake DEA fo secogonie set-of all ching oer = woth ame Certait ing A lereth Sa’ hos nee sabes see PT 00 cb sabes in DFA to vecogonite dee language eat of all Stings over 2 cahwa o substring 4 sath thet flea hed Lone beads, % ‘yy ° Tera Arale pea bo accept binguege JL hes n P sade, He ' DF Br gl have same to ot hae Ree Scanned with CamScanner SHe iy dake DEA fs vecegpatse get f ad RS ove, ts vj US del Weak second aynbsl Bem anjht end 8” Bre * dl Sols ce a eyntal fom yt awend RI AyD vo 9” no! A finok kate = of i Transiia huble + Hrod LS ween | | ! Refers (ey ir) Corversiot fon BEA iy dea poet Pron aight end 3 * Be coteins * Koby, debioed ber 3 7 p> Hin tot cht te bem Cathaintog ath Scanned with CamScanner | fay 4 Sto aries Over JON, goes 2° symal Seom (cht end oS et hey 1 chil.’ ® we Regex 1 Core rCon) ven) is! neo Brom tab end iS A Ser d ak shieg 4 length Mis shale DFA. #5 axle > = Qe Db SO 2 Ga ann ; 17: GH) Bry (Ey Rewedes iat Tin } Le. Mie Larqoge alouys Cotes & dead gute >We win ade DFA > Necogaize gk all maps mee faa Cor am 2) A length nor Lear hog, Wray! Scanned with CamScanner [|e ain atte pA veeegenise set vel - coll shigg av ’ ! Sich that teh ob stig plceieorel ner ms] > Tew The min ake Dea ty recogpnite seh fall Ahicye ovey Fo es such fo at ds ae divisible by t and to dts iy disisitle by ne Koto ft Ahdey s we Sl: semaines '. ‘O oF if “oy @r) 0) Gy) oh i 24 Ataben, oe by ace ms >The omiq sale DFA by recegoeite Sot all ghubgs. orev Pou, gap [tar no ols es dive by wn gone 3 ts dre by mn hey men ay of dale. : | ~The min ghle DFA fy veceganiae seth eh shviegs aver Four, such thok Nergth Ae taal divisible by Shy 3 bales 2| sek chash Seetge oer Z gach teak Ce 7 Sgr oh grag & dvalle Won. fs lan's win DFA hey on aks i de Cutuuy* qlee win ho aly ine DEA accepting thes larg hes Ape ay HS St cave. ; . a al Scanned with CamScanner 00-0:6O6i5 J ee . *9 Se S | OPS SOS OG 21 atabes ) Metind 25 — . i | wx * w—3 we — x wi —s aa ox. 1 ars tapas we St Bary et Babe tase “han . % Nes G1) Boney A acc ay legth “MEE dees WNW ey 6h con dbo Le dian 09, Scanned with CamScanner Conadee He v0 ot ales in ite ave $k OFA he accep the larquage defired by the veg ene enter) (erok hey tet thes MeO" as | an Gouiler He org A gien by ate eye? @) (orb) bY” over fab} Fe smattert no 4 drutey weeded in Qe accephry A Sh: . [ers De okich accep 3 Shigs chore a4 symbo) Lon say cay end is b bee ed ark Gales (Ke vain postiole sede ef, DEA Mok acceph ~eyuler lang Je foracs | ware gous h length AAS a and length ot on i gedey Yhanr or equst fo 24 Gxt) @rb) o Carb) Gis) @H ES) a z Scanned with CamScanner fa ete DEA to secogpaine gee ch adh arciegy’ over 2 ay Sakardny %@ow hy 2 wo A ahubes, Conr® (oor rd (on” SB _Qou oO , | @® col sabes 7 painting Bathe larquage Leith ophabet fa}, i ghee os Pallons de fas fers Yard nis postive ialeger Compail. Gho 3 wa ag cd grey needs ia DFA iho vecoganise AY Dyan nee am a) gh fur na for] kro’ Srgaqer 8s spor Te fonaigans--3 tadacitore) 4 bile D2QD fone)in ac atesdian y Fen nity Stabe Scanned with CamScanner | | ate Lee ny mpeg Boon dae ae foi wh _ Foitre # ales 16 DEA xepleetiig “F. 5 she » 2 oF abet min GA accepting ; . COH)@HD =~ 9 Fieneg, . feds Mer ches, 3 win ne do ata be ohh 8’ © ‘ = L Bb =f" / asus Hin mot ahtes he of hah “i De . , > Min no dt stoles in. albiel... 2 DBH = 2A Shabd otagag.. a4 : Ht sabes, | . | wich one ft tte Lllowirg regexp epeceth He oy St at eat bicay ¢ - Griegs Hoey 2 conceubive of a(ordfoow dry + GrdKteo Gers "RD Sage able Voto" Coo@rit + norstoo) er f Scanned with CamScanner "* a O Cond ooconst + Cont Urry 4), color 6 nGoritoo 5 mtg borg 5 Conr* oo Gn ues 4 Grd* ue oo Cond con® Coos corny em WOrd’ o0Conr FT Loo ent w 4+ NGryYoo] Crt alte de Sie fonye [whos ex wo f sy - 2) (ron y* ; b Yor ior ) ot Crots)’ ot 3) Crotty oF Ae L€:0000,000, «1, lou, No, - “exe, WS ong be i Tero v0/r00 0, tor sors; aca YET wore aN SJE Crooros. a JE Pree, u, lot, ou, io, da fe $e an lee as Caeyt Cie tt fo Wow ¢ keg Teguler evprentons hich of ke, Fltesing as hue A Lesy ELG) ond 1OSe LCD @ Leyes) a Md cr) GY Le LI) ord LCs) ELM) i W) LE EL) amd LI SDe Lead Scanned with CamScanner Kz Qrof Stoney: -¥ ee ee vhs + fOr tor ie, uO. Y PUUsyerley , vcsye Ls) ee Ley ¢ Yay 8: AGencider he. lossng gene me (arth) Bay” Hoo many seigs ae thee ia SG) & length 3 “or few, Bly Be tory 0 cacladang Sesh © Ler canteaing Meo onal Geeks erat Yeegth 2 é eae cS . ah 8 ae a oO go Ge weqere A Cir)’ detsle tre Sime cet ay 9) (re x 2 ® ® an 8D OF Grey 2 » (eu teCouis* é A) Wo ot He oboe BF 6.014, 06,01 10/11, 600 001,610, 0114 408, 1,110, gi | Br ero, 604 94, (011 Ooor001 10.90 jorbo“ b- Second. \ Gxs tabu por 7 . 3 > Fue furs ‘Scanned with CamScanner Bessa 134 a SOT he lorquages ove fous} epreneniad by fhe ey ep Gorse, 004 Ge)” vegechily igrh a te Wloising is Yee o) ser ) Tes a) S=T d sat ¢ Fraraheration af Finite Autoreater ty Requbox Erpersie’ 0 ey Biden's: theoery D ay keen’, Heo r4 . _ diy gerake Eliotrakion meshed Avden's: Theoren, - lee PRLR be 3 xg e7P ond ‘HG. the ejpression Re GAR, have one aid only WhHon Re apt and doey wok _cotiain @ lonaiter He. Blowing FAM, Deming the vey cep Conrespanaig bik Qo. gi ons (a) +B 2 of toler Bsleg Ardeo!s theorem Scanned with CamScanner Jeay edges Fa Stabe a yore Feord shin edgy. Az dove : gadieg gabe | Be are & " nego task | Cz Bet Core a echisd ale include _& H Wow we weed by obtain crpropha ot C- es 1 Az AOrE A GARG ==> A> eo" sof boo | ” Re ALrSI Be ores Bee bee, BD Ro QARP Reape Be ok" PSs Bot coaci Ce ofits +clony™ e fe Re ce Ot tO Cory” Gabe. Blienioadtion Method : ‘as Scoot eee gedeg ous@ 3 | Ee - i Scanned with CamScanner ee n . ty x Ont p io, ; nz (otutoceettg) 1 (or [bee mea) ‘ Set . . @ Be Find Ake, seqere FSM! shacn in fy Bs At A “@+6) A. AOAAV HE en ce Bi 8 “_@) hes gs ex Aor) « (ord Ae Ebriy*s Cony* Se Ars Corned Ce Bie (onne yy 3: Find seq Erp — Ql 1 G++} 3 AAO ArAD+CO BOLE & BAL -® o : - ¥ c= blac -O . Cong wie) ni : i" « = ee > (onorurtoy 1 Cz AU HCY (Fron ®) e: au* —@ Sots Bee Scanned with CamScanner Lice OLO™ in O 8 A= AO+ Alot Any 4€ e. 6+ ACosto tid) As e(griosnitsy Ae Griorurtey* ce anit C= Oro+ into)” wt w Ring Fk neg Gap > BONS) Brotn® WAY, Since Both ALB ore Ard stles Hy as oteott > ot Cert) Fre > ofCert) oft * Scanned with CamScanner 5 AV TREC +e BAO e> bo Cr Roe AT . . A At AVABAACURE ASE +Aix Ao lt BOO! iS > | & > & 4 A( 0dwoo!) >» cz AOD = Ford doit'oo - Br Ad. = (rorssoiy'o Aree > rors! €or ° too) 3: \ ‘ A> BO tDIFE Be AGTCI Br4+ po Baws ECON DS (Bois Gyroyo + 7 De = Scanned with CamScanner ed Az 80% (ors sive JO 4 € A> Bos Gra vory cop’ it € R14 (Rolrsie tt Yoor)’ © = \ Ky b> AdtC| (alo rua * Boa Sores Qi sori) (0041)"f 449) nnfoornsti| +o 4 afir@re 10+ 1 )Cootufe) — ist tee, need Be eepreasion Rea. dy we Grange a Me. exprenin cid Heros" A Cz Bix00 = MOLECU Alo dco €? AC) + CCosee') Ce Alorne)Cooani)* 73) gs Aosci > bot ALorto (Oot) : Alor Git) Coot] t 3 bes D> Aco / > art ALorw)Coosi)*o . apie eee) | Ae by Bord =i , bade) foa@ Grroyccoris VJo+ w A+ itr) Cori 0]! > € tafeos Qt416)Coor ust w+ a(n + Gitt0) Coonsffor] Scanned with CamScanner a= Ex A contr + (C148) (604 uF Corer) € [0a we Grito) Covey Ciotoi)]” > [ao ru a Giro) lootw Corey] Wich Pla eq erp ghee babs vepeseat He Mllosieg OFA \ \ Ae ie gt f{ 5 © 21. Fv Cvnoot)® = p Te FUNG Fok mm Gath Drea rem Onsm sr aH * d= (or io oy int I$ vovits t, b0r,0u tor. + Y endicg uit Te oh Crroot it clearly ditectty veprsenls DFA Ac Wanton )y ‘ [OU IS pot accepted by D LEM Scanned with CamScanner 2 a. | ED) stotch she Bilissing rene ith He weg FP, fly © , { . . i ) A P| eat resentort | = NP 2 €+ oft rte) © ) Ol a 3° ° | Sa a ) enc botieine ef 3% 3. EF OL Hi)! < T 7 : * Ee oC rv) tot 4 ON; Wor MO iP N | e+ [oLecKonttuyy” Psoot : : in @ hohoots ere with & p sr elivieche apt@ pow oendsuit POO in® ends teh 1 cos a } clit Sadik 3 > PEL et Scanned with CamScanner , nS Corside, he Fobloieg FA oT Wey u < £ . b AM, 0) Pobatar* 2» (owe): Me Cast)” a) Bovtart ( P&S 2 Bo. Gaby Bs Ddeminihtc FA over Zr fay Noid min DRA ee? Scanned with CamScanner .& ‘ 2) bones gS ; Bon Ry te arts bolus” s (arta) Cory 8 > seceets — gning aiog wtih BY! ® aay accep Bes aniey hari shugo’ : EO Bar ahide Date Pelloriny H] EP OE ecb a: Og ray contutaleg top od Ge guoctsag 8) O*C roy* B) oF ioto* d otto 2) OFC VF e041, 00/01/1014, P1110, 11 * \ a) Pert sor ele... x ora ee ca) 2]4 4% : * } oe AN 7166, 0001/10 1, B81, iy soe Scanned with CamScanner VD" gen nears Hak ~ gaycber aiuibe by 24094 B® —. agoaa we A sehr © odes, FSM estth ovtpuls » An BM is GB tuple system Toys (0. BALE Nag) wort 6) Balle wd” ob wabensef Zale caphabosk Dp > ole alghabel § ~ Aventhon haneb’oa a2 ole funhog | Loy ini bok Aad, \ Berwsior ot dah . tonpoler Sette esha oO push [ott &> fou 1 ELeubs, >] onaty 8: Co. pesh)= 01 7 8Cueoh) » © O% a(0:eush) = on A (A pah)> dh. io Scanned with CamScanner = pe ‘S “Tiss Fa wlth ofp 3 clomied to hae Ayers wi ay c Seay he r + Moore. tnachine “Re a Hea wothine, , ; Treo Ble spem % so te( EA, Bdide) / wae He ole feockon A°Qx E> 4 tea, ofp Heady maddie depends on. both Presents Fee at tp Moore. Hackine : facosaeinaeatoe Phivele systert Be (Q1B,8/8:, 40) ep hocks D8 ew olp ot Ate machine Aepknds oaly on eit ahde. ie: 7 Wracen Hal se tt \ le Scanned with CamScanner oa re. | fox mel racking of leh ity is on Aken leah ob Jpasn > ee rene bathing A Neegin ed Yo TS a Hen tengin 4. ofp is a+ a Daign Moore A Heady waking b vesogpaie waidue tole noaber > Qe He bivary, W inleger fp a Scanned with CamScanner Bs Deatggy meaty. & tone Be SHGS eral with oo, als oln afte! oes Skeet. PU Gdeakly ely onscided ust each gabe a and cach Shhe asoctaeid «ath %n off Uk Mealy aachine hg nny of sinkes Hen (orveiponding pene wracking cam bes Hae akmost namshley. W PR emcee mactine han ahs Aten SN hase echt comply Qeaty wat Scanned with CamScanner ESE” “G. oes o suawiber Problers, Br Comiter He © p a occas Kee binary Sg and Cosder 7 . \63 mare moore rotking fo Tecogoniac Vesldug ct mod S ts per Hoe yp declomy Alp aehobel Ratasing SK those in Are Rgure ie a Mo Grom eek SpeiPicant Sib pastors jo te raw fo ene ude. hich; a the Bling BAe de ale 1 a) Se corpules 1's comqlered of . cas , tee 0) ae inccommerls ‘Ie pattern by gore 2) Ve decgeaments ip PY by 4) De compades 2'8 complemen, fal) tptedt os zi Lk loti tp. © . . Alrovio “af tore?! aya“ . 's ts a 7 0D O110 —e (OBI —s (Oto «2's donplement. Scanned with CamScanner the bua Guth edge label aly, a shank br bit il? 2nd § ka, abit ole | 0) oubpuls He gum dt the present ond previdrd iby ok He lp B) dope He oy wlneer ile Sequence & i A) Oats 00 ulenerer ip seyvence .conteury 10 f 2) gone . APs otp 101 0 © . ~ JTRS 0D OLD bot SI is or oo fe ; a rookie ip 2 olp Be co SA FS conecrantey Bs The ese te Fallasing abe Aeble “hey Sages PX. siogle lp 2 f | nee reo! | wf Te He inh sme TS unlenood thea socket ‘Ve A sequcter by yeah Red abe —~> Ts YO Bw ert 8) Wo ’ Ro Asp o¢,, to Scanned with CamScanner ae . thy we go ode! ates ergy aye Shey fe vents vHhe ghde Sth Oheede 6 Goon RE HNN stele: Bs Ctr -previns qpeabin) , st Ars: 000 > x Wo ahings Sevghh Zk reek We Dash oe! Sruitieg ob ® «4 eee el, the a pba Bn SS a | Si bo ot gaings 4 legih Wty seer shde € with ofp “ ant, te atrvarpe -—F aE O/ oie ron \ - rata» ‘ hire wh DOLD VOVd tength 3 ae he machive is 0 How mm sing i Bh wile mee ean cens nad 8 Soh wile! olt 0/1 Q) le Q” oo ors o CD ge “Yo ea O10 Scanned with CamScanner Greammar Gyeammay A grammar is a ynathe macal Sysiew wed to define vevitences of the foawral \urguages A Grommay G is a 4 tuple System Ge (vtv ris) eT rey vrtlinver ner erninals T > set of dexminaly, . F > web productions oy ve-ariking tubes % Reluctaes SA Gert Spatols 5: Conse | Ae CFscme\ + 1diby, Ps) Pis gies by > “ g> AB\gA soe peyeies eed rod ok J bs arcs og bbs Bob B>bS DUG) Fobrbobar ba 4 creck & below sriegs ‘belong tp dkove grammar Gj 0) baab d bboa é) bacabb SSBA $4 BA ga Gh ab. a4 bSA aba bas > bBAA > bas sbaa® A bbAA > bah® S beak abbaa > ba0SB ssbaab >bbaa bao hes bana8B S bacahe >) baaabb Scanned with CamScanner KO. PT we check oF castt derive Laoke Using above Grammar & : te (aa Conclude the Grammar & Slang prodiscing ctvings usith hunt wo f 05 4 bs Wloifao 5) Gorsider below grammar gs a& |ba Asa |as| ban Bsb[bslo8s cheek # belo onicgs beloung to Ye grammy a. S banabl, by bbanab — A LLLakeaa —-d) bhbabooaa Saba ga ba SsbA bas S bone te bAA Ts shag hee peed bb bAAA cloeso't : ~> banks bb su Jobsa.kA >banabs A>bbaoa’ 3 bhbabasa higg > boon Reoaa bbbabana Sbbba haa A Dbbbakoad | : # = Thus the above grmrrar also repreaen's language Consisting of e4uod no & o's I bs. BS The belo grammar presents Brosble ® Fore" [noo 4 Low fro} 9 ” : | Joteye| mor n204 2) forge [20 n21 8.5] ec aveonth a Scanned with CamScanner Or 5° Re bas gummav renege’ the arqarqe 1 Ssa8lnslalg ea a) (@asy* F @ayeny® J Corb)’ Gib) 4) alt the abeve Congisen elas grantor & ® so oalbs\h A> ba oR “Bs balasla Let Nala) Ln) dence te no & oS 4 BS in the skring w Te lorquoge bla) & Gry gereraled eal Fool wate) > 3 By Cory 9) fof ma) 7 3Balwo) } : Sfofrats = ak Kefoua 4h , , SD fesfwace) = BK KELO, U2, 44 Seeing optory iis either b or ¢ Le{ beada «baa ,dakba-- 5 Eliminate aption @) ‘ obcexuieg, grammax we lan see Sr4/B 03 thamte thee slates in which § ig Bool stole + A ever, shale reading “6 Me vemairs 19 same shale Gretting “a 14 mmgyes to neat StI. So sae car conclude that above. language accepts shings comtains no ch o's ay multiple, of 3. Scanned with CamScanner | Clorsiicabton af Grrommay Chomsky Hiewrchy) 6 ome pe allerabie. | condition | Larquoge | £9, name Aypeo | unresbrickd | kop 2a de Reuse SAa8bA | Tani Gemray 7 cig ave asbihafEtumersble |0A>lab | | | (0) 71g bg sing language] 2&6 3 | Contest ‘ censitive A) Greamnenoxe 58 2 IBZ |<] [Context SrabbA | Lineaes, iB ove arbiter sencitite fardbb — | Boundeg 484) lon shieg Language a8-3bA Automakey Grkett Fee Goramay oo coatext Pre} S ABBA] Posh Doxnn af wot Language [A9al08 | voraty Bvblbs | (PDA) yee Arlo | be Regula Brrarnm ar lee Regular — |g asleslau| Fite (54) ASulew [ETT | Language Automala # (Rpesetyene eee In type-g Gpacaenor eis ob acon rrelad (Ripe rien gramme) Ao wsleu (Leth - tinea grammar ) Br what isthe. type, db belos grammar | © SS. aA bB { OA bo Ab | Ro-s bb | Aso ic » Type © Hyper Q Typen D Typeg Scanned with CamScanner =. 7 for every automata He we. Can construct equivalent grammer 4, gach thake LOM) = LCA) a FA ty Req. Grammar Consider belo FA bd +6" Vs fade lobe = faibec } a Tr edge labels -farbt Sz inital Gabe 2 A Reding Ps SAra)=B fox every AaB SU =k B(Bb)=A Sledbdoe odd production Bs balbelb 1 ASGR, 2 Bis roan Bleaec 8leb)=b else odd . c ac{bclolb | sable fer, “AS OB Robalecly cs aclaclalb B: Find regex grommay Corvesguading bo the, regular Bee (ob) on (ase) s+ oalobl bA gsbelb esaclecfalb Scanned with CamScanner The arses chee @ is a dt tinea emma: oviting ie samme ja tebe linear rm & A fala), Bo ab[b C4 Caleblalb bee, Language 'S Yevewsed - F Gh : y ten TE RSs ® srght linear ond Gl is left finews to & then G WS Nothing but reese & Gg! *& “> Ass Bx every lebk-livear gromeae ue can Genero an Cpu volent right Lineaw Grcaorwnoye ned vie verge. Reguloce Grroremax fo FA 5: se aalte A-salas — Bs olbs Papieg lena for Reglar sey | Tris o feck wed to prove Certain Languoqey are nuk regulay lek J be equa lonquatte and we with condivon lal an, br some jaleger | Aken = LYE gscn ato ut A \ byte Wee nis Conckat ang : & \ey\en Ww denotes nto of stake. i Sy wel vino in He corres ponding FA Scanned with CamScanner Be Pr Ga [nse is ook requlay 5 f le we oh tye am o™™ . nem yzor™ ayit hx iro wy?a > o™h” Gace mer age db a fora"|noet nn) i lamquoge bole + woe generally apy tHe folloaieg language ts requiay or not: dy AU Sov ¥e language. are regula wages a vegulas language mure have. He'followsing proce & ideas wshetter & given uy All idhasbe long “ 0) 4 Holle fudomaka 3) Regular expresion bee: Censidex a sofa lino} 52 Yal"| sot dic $e.aa,aoaa, et fo2J gana; dacaaaaea---'} Atlee SHE ho temp of AH tere dt hes length at Swcceminn String 1s Grst. Succersive Shainge is Mak cage 1 Regusay ~ hot vequlay TH ts ahims pate fy ecle regular expveasiou, Ay Single. Symbol al chobel lenguoges AE there enigg “Gorat dite GL’ shecersive Shiegs, A lorqpage, Scanned with CamScanner Be Tdentity, requlasttny whether belges forguayes Bre regular ox nok ° ranerst > requbax fot lize} —> rot vejuley ~ Safle iS prmel 5 nok vegadae a for | P&S noa-privet—s not reGulav > Jo" [noo > Pet equi wes cel ®., tat —y Regula Cor Staite’) for | minr0 > Regular es dor Jaro} tee F = farb} tee thave of velobindhip, bho adh ( fey qi(od>myCa)) which ave members of 5 STE TS toh regulesy . , A 2 foie | cairo» nob vequlay A Forel] ie] ] > not realex > frow® fice Zarb YS > tak vefuev Jroc®/wefay't = eis Some dermioad Tes Gon Fuld b fal Wie { Uk VDE > vegulay ’ atGeyt Geot = ook bh(bift cee ed ot Je fotim boric teeter! | & Jem 70% —> veqular ; . Scanned with CamScanner 92 Gensdex Wossieg lonquages SEF ori, ® Yeywor lonpoge 7 Jo" nor | mor ond 21 Y iS efulor which ot He Milossing Gabement % conect < 8) only & 8) 00) Sa 2) both 8, 4% 4) tone B: Fina Swilay longuages *s be Faaye | nai E> vey | ey wi +4 ayy? i ty! Dx ony rag Oo0,m ay TL only +x wich A the Following ts quay * * © «fo [ae forr'd ) fuss | rue font’ Jy Je Joos, ww, onoee.-% : 9 front rest fou b > 9 ee: (orto \ Crate) Caring): using This 2g 4d Laut nae for) + . sn) dark = lang in oft Gan be, { gs unich ot He Falosteg ove, quay. stonthidn / Afemo| oefooh*t fasfouk| we fan} dgrf of tis integer? Dy 2foi*| ; an integer] | “ | a) dorks b) Sarda, — dD bade Dds Scanned with CamScanner FF ~ ~.— Closure Propertiey of Regula sels: Te 1 Ada be alee lon guoge . Requtare Ienquoges ave closad under belao operators - ++ Regato-tinion Union divh, ts vegulay J 2+ Literseckon WMa> Hols is segular &- Concalendhion Sudo is regula 4 Complementation ‘ , is vequow S+ Kleen close sis que {lato -aiie cs 6 Reversal’ operation , LP is. vequlae To oblain Fa Br AM Kick design: FA ford), Mow reverse i ) He ditechon gt edges of FA Ay ond make Boal stale os intha) stole and ees gute os haat stale. _ a oh 2 TE more ‘Shan one abe exis dhe Creake few stake tina’) and pur an é-foos Kon to OS Real Soe fad ty. L- Homomor'phicm sh 1 is hemoeoeghisen , Fhen WL) i$ also requay + Lure. Yomnomor phise 38 1 Is Momomorghicen , then WiCL Ie ako vega a. Subshbion O BES is a subshhudion then s(4) Is equa | to. Right Quokent Bio is vegulay Scanned with CamScanner in » > 12 Dference Sede e 40d, is also veqular Bebx Ctr cperabor) + To cbtain TA bor B prefs of fA of Lis make all gales 4 the Fa(eccept deal ste’) op Final ster. Union jntesechion ck. operation on ‘hao vegulor languages cjiey 0 veyulor language . Buk otleok one & Phe language fs Toru ay then application of Phase operaens Yay reall in ajtherwequlac fox exannge, 4s Zane [os6% = - = MOE nequlore Ag> fot" [wimoot, = = ~~ no vequloy soe Qyudes de © Cee, regue \ Ale AiMlye ce, on -regale Fromornoy phim + Try cle, be cals oto dhlg shih {5 detfned on oooHer alphabet &: 5 & ‘© 2, 2 Jo. Erfoury Yee b be how moxphion Abd I> fodibay Weds Orr hb) = 122 i Bow W(t) = { orni2a , 2200") . | Tne Homomorphicm & 2) =fawc% efor 1 “hfo)= ©: 4CH)=10 hee)zo : Woot) =fbo% hY(1000") = Pace’, he" Clos ot aooce 50) = face, bebe. dshile Calculating 1 well fied ail poastni\ies tos 2 Scanned with CamScanner fH eure quoter Mb =falayet, J yeh bee Lue fob , eawok, pawot Ay fot Y Aa > Je, pareeany H = olo* . 31: hz lot Jy zot A-foror0 010001880 - 3 Afbeeboirt} — Ryo] e,6,00-000,-- i Alin 010" ne aa Mie Bi 4 abot ot, | é @ Or AN=f 4, 01110, 0100010, 00010, coors . - 3 Az] Veor:001, o001, Boat ++ +++ 4Mn= f €,0,00,000--+% = o¥ Ae 3,2 oft fhe Lory Lfte= 425) Becouse gin S hos foo ts bat she oho. ry ibe in Ay hos, only one 1+ Be ala de too languages. Ftd 0 hue hlemett 8: otiuk Is reqway Atle is vega OT is regular we . a 9) a0 he deewmined Ava oe hoo vegulay languages. which is shue § Li dele ie vequlay Ts s* is woh We reqars 9 m— \ a), yr gag db) both-oe eorong Scanned with CamScanner ED Szfrofus hey atleort oy many occurance, of 11's oS o's , wl fort*} © tirJue font % ie Ma °y any occurances gf 00's 2 isd Ais vegusax «bal tof do i OF 8 Ly is regular , ber aot Js fos in 03 2) both b&b ae regular &) peither fh. vot fy ae regular Q. Which ¢ the Paloaing are regulov St foo {nz0, m20%" S forgt [ream] 5 Bs fo" b" | nt) G+ Frey [eye foes uw os so . are im Qj Loy <4) & only 1 atl) B > @ayte (ars) Q: Fo Ihy ¥.50%) | pxe Kr on |e which of He follosieg precisely vepresent the language ot the grammar. # Xo is the shovk syrabol : 9) Io (ty Got) 6) ‘to Cobtut)*)* | . 2 on (owt i Ge) a) Cortoy + No Coy t 4 Scanned with CamScanner @rubich d-tte Rilosing looquage iso regular $e Jonut [wre Cfawtt ond Jul, [2]>6-c0R is reverse Hat) daz fan bm) mtn 2 mot Agr J pPb*c™ | m4, 0204 ee : a A) Rirde, Yb D dasha 4) ky Problems: Lo ' S- Folin unions Consid | eX hs Faby Yr faarbe Ay: Feoabbh Crs Jol ube... + feet} ns comet vequlay’ iakoile inlewechion Bh ) Also cequalay longuoge is rok @® ww Produces nothing Ley empby larquage Gi > preduces nothing beer empty lanquoge g: heh of the fllosing o¢ false a 4) buecy subsets ct vegulay set is vegular 9 Foloseehan cb ow veguley Ses is requ 3) bevy Rolle subset ot regulay sek is Yequay 4 “ A) Wone & Considey. Famem| avnso's - gular Ly Jon|ts" [nimmro 4 nz) see TH vequlew MEL bob dh is not veqular '. ephea @ Scanned with CamScanner a Catlert Free lorgoge. . AIK lorguage qeneraled by contect fee grammar. 2A gamma Gis suid to be cre f every production 8 the Soe Art where AE «e (vot 8p eee} praduction (eft sie symbol musk toe single mon -feconinal tak vik Ske one con be ceviraion of vorttles ord Kenic. > Cb ave very wield to define synaxes. of emang Programming Aanguoge such a panal, FoRTRAN hence alt these ‘languages ave called wv EF ls . > EFLS os play, ieaportant vole in many Falls sguch, 04 natural lonuoge processing 1 design a programm ig fanquages , fet editors ek. > the hillesing ave come exaragtes A CRs avec alphabet farby Hequol no f ole 4 b's & unequal b to ck o's dbs city palindromes 2 Dexgn cee fe belo Languages dy AeJorb? | noo} $>ab [ase GH de oP [203 S> ach aSbb fe &) de fot | we form? 2a is reverse fo} seweebh | o8a[ bSb]e (even tenth paliodvomes) S)Arfools wefauyt and wis add lengh palindrome t Sr al] a8a] Sb Scanned with CamScanner | ©) defo" ny m0 8» a|aSb| 08 “ 4 Fea we forb¥" , No(a)> Nolo) FFobibaroabh, abab, baal, bbaa ,abba---% ° 8 ab|baloSb| bSol $s oo, ow S-> aBlea Ags 'a8la Ba b8lb & So ae|bA A> alas|baa “0 . B bibs [aRe ee ; if Wid As gone [ne23 I>} € cabo danbbh -aoaabbbd -“% sg e{ob| Ab ‘ A> oh | aabb ) $4 elobloooA bbb 4 elosh ait) A Fal bh [Fj 204 af Ae J ilo, a,b als abb, aoa, bob: --} 3 ac|cg A oAla Bo Bb|b C> ochle Scanned with CamScanner ST Desivations: ¢ A Shing 3! can be derived Rom the em ia me ways, uk in prachce we ose 3 methods : cy Lefk most derivahon dy Right most dexiva ton GO Bree ees oo Desivokon tees eke test Desivakion:(LH0) , Ty deviwhon 1% Said fy be LHD’ THE ia-each Shep ot the devivahion teh moct variable is replaced - Kon (ANS) A devuabon i said fo be Run AR Ao right mask variable wpbeed. Rass Thee: when a devivalion i reprerented 4 the fox ofa tree, it is called pose tree ov derivation bee. Righle west Dexivotior To obtain yield of the pose free concettrale gil ‘leat node Labela Brom tek fo wypt order asithauk repetition oF labels Bl as Sa$| SbS}c ww? cocbe un: RMD: Pawe hee > B>S0S $-> SoS 8 ee > Bo8bS ZN . eed > Sasbe So iN > Sock : > ache “+ cache “aes ( Seas = Pace tee is samme for ‘both Lap 2 RMD ect B-ebebe & Anibiguoes Grammar A grammar ts sid to be owkiquons if as language hos Ateoxe One Shing wit moe than one LHD or RMD. Scanned with CamScanner 1 Bs Consider stvieg coebe hy above graromay 4 ' 5 S 3g a Y™ &b Ss Los VN 1 < a8\olss 7 . Aro Many PAS dees con be drown Fort 8> 404 $ 8 ASN a 4 \ 4 \ Sagas taowe ine S$ : § : \ a Heys \ a p6loi\20 pei oN22! glenchuct LMO AMD & parse fees fox the shieg g h wz abbbaa S| grammar $4.08 | ba A> alas|bAa ty a i &> v|bs|oag Scanned with CamScanner

You might also like