TOC B section notes
TOC B section notes
A B F 5 (A= B) OC) =F 8 Gq c 5(B)-G 51% D=¢ cae CoA (6,4) CF.c) Divi hick suth 0, up wo y c Pain si-s, (Ger), (656) os ‘inet € H @F mmorked in £4 fol. then Mek with 1, wus gu o par F Cc q CPs), ik as mane in Hoe G 4 » cable. Hime so Huh mah CAB) as eats in P00 falls H q e Sirmifardy ho ib BA OM Pon Paine ion ton Fable, adramition state & moendmalized OFA 5 Oo 4 > (AE) (aH) @A C@H) g © Coe) oc a re AO q q (8) a : Koo \ \ ar HBO: 2G) xey teers se Oa ee gg o oO 4 aA 8 — 8B E © FE 9g 3 D> D € E EE g + F BD E a & F G a ale e | x |x Baars etx] x) lx] re[ xl] x xlx x] G x ~ “i x “|i | ~~ @ 6 @€ &@ @© @ JA 6 ec D EF © dndistingulthabee pai of okt OSL CAB), CAs), (8.0), (CE), Corm), CEs6r) . Suiven DFA axe A,B, C.D, E,F56. + Atates ©f minimalized DFA ope (A,B) (A,5) (8,0), Ce,c) (sa) (620) oF-AD, GA, EB, HB, Fr, Ic, @p, HE, iF.Ap Aor €6 1B Fe IC @D * ° BE GH cL 24, DA EX Fr GA oe & HE Be Fr Fo He HE He adc BE k7 drtiatinguiniont pan Hi dtakel OM, 1 9 WA © dyisyn DFA OR Fos Up Aes Va 5 Ae « Monimnum OFA t Can, 43), VY, Var, eee ah OHH @ 4 Oo LAAs} LUG 44 As Ry Loay Aas crm g oo Lau Cm WyREQULAR EXPRESSION t Es Oo mptition suse deunibe the RL. PAT OM OM dy | ht comBinosion of EO, aporater tr) *- . ‘ we can defi exporion ecuschrly wo. feos, | Guis: gy wy Re, omationg Aor Famguaged § vie, LECg) =L4 © 44 RE, cumoting thu Language {E4 re $C) =de} | 0 RE, Ya eS , damsting the tompuage {a | fe, €(a)=ay, & | Induction «Ug Came ane RE, the E+F is abe Re, | omsting the wumten of L@) ane Lr) | | te , LCE) = L(e) UdCP), | \* & & ome F anu RE, Man BB EEL also RE Lemoting ' | Mu the concatenation of ACE) «and LCF). fH ACER)L= £Ce)cCr). | | * of Cuare EX as atip RE , homating the fomguage / cdeasune f LCE), ie, ACE*) = ChCe))* / eh otple L OFA 6) =d4) +O Oto, Ae) {¥ @2®™-sO Ley A(a> {ay OO) {ay Alot = 1 fol) ejetn Ee ane > {0,64 Ab wt sou RE fr fis | DFA.p ab= L(aB) = L(4) L (b) oo, Pee 2 tals 0 S04W@ Bases | at =L(a4)- cad)? a oo. = Qt = €,a, 0, aoa... Mighuk -pouority —>* tout poorly > + eirete = (at0)* a k(atb)* = (atayve co3* ef i gare ab \Cagoae 1 a, 2° -fa;bh = a,b” : ae 3 = {65% bsaa, tb, ba, bb, dy Woe Ate ise Omar ee L.A set of ings: of 0’. Bib tails” uit “input Sab. > f= 4ab, abas, @bb's, ahas S bis} " t a,b ab {a+b)* “(s 4 ° b & € =da,py * ends with aB. ws 66.3 ¢ ey Arps > \4k Af abrings Of 0's & bis Ons wut 3B. L= fab, 0 2B, bis ab, ase bis aby Pins > @+b) ab Se Ae stiongs emda uit ‘ab? at atanit UUith ‘OB? 88> Br So => ab (a4b)% ab 3 Ehay x Ab oh ating KE WOR Length A ais “4A A aoung 4 edd Length &f a’. Se of atung F com Longe als Ke de » Qa, Aaaa,...y 7M wrung ott tung. of ar, L- da, Oaa, anona,...\ POZO > Xe 4. Suef Hugs of eon Longer of ars @ py > (aa + ab+ ba +bb)* S Bk af atungs f wcll Lengin op as £ oy => (ao-+ ab + ba +tbb)* Carh)Png hh Wuings of 015 § b's sulky mmo Conatcusing pac ™ F of a's | tu wh Maing, fala 5 bs auith eect ont pa eat. ; ame # atbuings 2” a5 § 6 uit, atmos ore pour a Fg. he Bk Of Aumgs F018 5 Bs ait alos, oe pain fo _» (abe b)* (axe) ; 1.7 aay Cob+b)* aa ( b+ba)* Lo (ab -+b)* (ase) (b+ ba) a. (a+b)* aa (atb)* sat a whine in tka ail ean “ab a “ba? oD tw \ Ww peat Wel’ mod “3 = 0 | wo (a, 6)*4 12. Le: d amb” | WeB , meal - lo. > (a+b)* (ab + ba). , pK ® — a0a* (ax) ( bb eb +€) We-> Cath) (a+) Caleb) *Ciminasion i a ie GOs ; J > aa*b ; > Carpe b ie ra fete Be oe ! - 2 2 @ > (ar fi , ‘ . i “2949 = Rem 7" Fim * Be. (R+ 80 T)* sys Yet Caample, (4) dn Hels OFA On we Dow RES Sut we don't dame arya) RES Ualues fo eu 4 giitaag. gle Sie gremadinntughin pe «s the final stale, tue elimumate Aeahes 4,344. ystun we Lorider Qn os final take ue Clirninate fase, 4,3,3, phen tng are 2 finar «totes. (0) @ © ® © pater * OQ", Oe : SOO) = RE= (a+e) ab tlumimake Fhe state q, 2S" b = Me (R +S0* T)SU* ake Gfiumuda oe 4 => (b+ aaxb (aaxbyh) aarb (aa*e) Dis ks He covrveoted jon, © QOD > Wiwiimafe Ae ( oath (a0%6)*b ere jaoxb)* i : xbb)* b) oor bl : Wing Gms, (b + ao%b(aave)*e (a2 (o0x0b)” aa*bb+b+ Cra tase if ‘ =) 8 bb+ (ba rade. es! R= ob, 5 + abtbb+(bataay 4a, RE = (R+S0*7)* Sur .. Re = (abs bb+ OF Oa EBs oreducct (ba tan) a Cha) * a4 <6 +(Cba+ea)a C bay". Rat Coruidin Qu as final atate £ eLimimae a ECs Coens Gas bB bi” ce a8 aT= = _ R= o+S~ (ba4a0) + (abt CCba + a0) + Cabedt)b(a6)*)* Cin an) + (ab+bb) b (ab)*) Re = van Cat Midd ns Sette AN lee - ae- fnat RE = R,+Ro » 2 ((ab-+bb + (baraa)a (ba)*)* ob ebb + Cha vas) « (ba)*] + [Cbo £00 + (ab +bb)b(ob)*)™ ba + aa + Cob +bb)b(a6y*] elias Ag a bbe aba)p (J bb*a (ab*a)*b CL. 1S Wing Sdnute ? (R +Su*T)* Sox = (a+ vb*a (05%) b(ob*a (aba) *5)*a)* bb*a (as*a)b (bb*a (ab*a) b*)*Ediminating Au aot 4, : Ca” ! i Eimimasing fhe ake 51, ao 00 +010*%) SQ eee sy “doula + (R +Su*T)* SO* = (14004 o10%)( lo+ 110%!) * 0)* oo FO10¥) (10 4110 ¥/)* R @ Conmaking RE fo FA ((€-NFA) + yey amguoge epinud by RE, x sabe dafensd hy the finite automata. PoweG: ket Ls A(R) Gh RER, we atin track Lh = L(G) for some ENFA with Che fektousing : * Only ene accepting tate, 4 No dncomung 09 unl Initial states, + Ne gutgang arcs from the fimak tates. pocuruine Brffnition & RE . Note:rays 96 as RE, L(A) AY -~O_©] 76 RE, L(e)= teh 20 | x Yo, AGE wb ARE, L@=dah 056 {OO} bnduction + Y Rowd § cow RE, RES us RE, L(R+9) = € L(DULS) [re rile = Cre tea ez a \é (0 {é *RS we RE, LCase) = RLS) 60° RO} s Re ue RE, ECR) = CeCR)* a RRs RRR 5 nition sak Aroutld mot 4 “_| occa ns F edn Of EO sitar enoss ea ix waa. shi ~ Lor OhHunce , sue absvuse sak fe gocisusing cendkitions ote cat F * Only ere accepting tafe * Ne anceming acs le he Amibiad stake. * No eufgsing orcs fom Hu feral date. 5 RE €-NFA $ x © Ca+h)* € € OGtam €-NFA! € Caay® (ath Seni’, ji ; a. 2 ») TORO 2 ey é.- é x~)- ne) > | Final R.E = Ri +Re re = [Cone (ab +¥1)a)(av+b)a) ba + (ab +bb)o.((abeb) +a.)* + [apab+ af ba(abtb)) (aes) ‘| ‘hota bah 4. Waite RE de Heh Oh Meings Oty, ~E «fa, bs &} comtaziin ob de are a aamk flea one bh. fk A at atuing of 0's § 2's mibecentaining 104 ha as 7ALAM DFA: DL>- {amb |[nrs} A-dalb', abt, atb> eee {)b Context FREE GRammaRr : Define By 4 tuples G=(v7.85) | WHLAL, Vids see Of wasuateees . Tis wet gf fevminel . Atdx S i «fart waoniabhe. , SEV he : Asher Ps sa aSble $36 sS~> aSb S > asb aéb > a0Sbb ah > aaébb 2 aahb , ar RE = @a* bb* P ds Ack 2f suules A -poodiuction wht AEV, «E CvuT)* Gg = (fst, Lavy, P, 183) 1€,06, aabb, aaabbb ».. sad2 6 nt ee so e/asb| nza aabb n=2 Gaabbb ab Qabb (re (Sewers ash ~ aasbb a ke fare? [nay net ob yea amb > a6b | asb n23 aaabbb : 0.0.4 bbb + aah i as aaebb (= aaa € bbb > saasbb ~? aaa Sbbb £ Vv & ww Sethe fairor[nBY ned aab na aaaa bb n=3 Qaaaaabbb ang pb & > 20s] aash | aasb 4. ned , m= QD n=2 , aa so aa | “QA a Aa A> alsa m= 4, bob 8 b] Bb m=, bb Bb a bB s. nedaer, bartt ned, ae aot n=4 , Qa A n=2 , Gaaa —» Aaa é cof ptt ab A> ax.| foo ame eee B> bee | Bbb , m-2, bbbbb — Bbb 6r 7 = a fy & {a®? |nz04 n-9 27eE n=47 200 Fs | [ 4- he 4 gant Jnzay 8 _alsaa 8. Le dar | neal s—> alas g. Lad wt! we {apy*) > om length €€ 7é abba 2 asa boab —> bsb aa Qbsba = aea aa baSab bb > bea ~ ~~ beak Si > alb| asal ys oct Longer | 1 Le Aan bret | k-nem,nz0, meol | peo 5 OP =A m= 0 einer £0,180 €, Ql, Aace. ea & R=0, 1,4. S$ elase m=0 ie = a ° fa [is clase | bee aot eae = = b ic or ee a wee it gn oaet =I.» {sel bse) which are vet = O,1,8..- S > Elascla An LOMB ne Qs) 9 €,abec, A> bAc at ke ten ee ud 2) 394, «--- J abbece---~-DERIVATION PROCESS SS a8 re A 00a — ; G ~ © oO Q @ A © —@ So AB > aad % ance my ees - z a Ln dnput ab work unviable » Ly ing Ot eh rmee preiuction of He CFG us caleed Ludwation \ Tas Aypert sak wach sep die Loftmnert vasuatt. - Hefemart destaction (tm) ~ ise seapllacech Soy dhs proLuckiby, a. Rightmere Lorivation (gum) — ak each ctep Ane Wghorreit vosunbl, suit De replaced boy Are production. @ @ e g S => AB 57, ABb => Aeb > aa 2 m Fin aes Q aoe > anh ven ren petmation Bee (om) : © Petivation ox (sum) itA> beb —@ 6 > Ale —@ Input abbbb © @ 8 Sx ga 7? Q bBbB => abalebB> abbbh bb abberbeS abbire = abbbs oO . @ S => ahs g GAAle on OA bbb =, aAbeb Py aber bh abebbe => abbbb a. En +eelce|-eelxly Spats Em + CE = +* CEE DP 4x-EEEE = +e -HEEE => +%— XYEE SD tK- KYXE 2 + dugouy.