0% found this document useful (0 votes)
7 views25 pages

Tcs Notes

The document discusses concepts related to finite automata, including the Kleene closure, input processing, and state transitions. It outlines the structure and functionality of finite state machines, detailing how they accept or reject strings based on defined states and transitions. Additionally, it touches on the minimization of deterministic finite automata (DFA) and provides examples of implementation and transition diagrams.

Uploaded by

Nishant Singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
7 views25 pages

Tcs Notes

The document discusses concepts related to finite automata, including the Kleene closure, input processing, and state transitions. It outlines the structure and functionality of finite state machines, detailing how they accept or reject strings based on defined states and transitions. Additionally, it touches on the minimization of deterministic finite automata (DFA) and provides examples of implementation and transition diagrams.

Uploaded by

Nishant Singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
A Shing so ffnilé sequin of Symbols __ Kleene Closure »— Given on olphabel ig Btu Meene closure of 5 18 longwes © given boy Sie os OS... Pans Shing of ritalain lengthy 2. Z| Ban W== (x) aad ee am ARM, AAAT oil { i) Input 0 8b i Peep cmeCmEab cab, obb 6 Fink Autoroata (FA) Ary combine vipnout 6 2 at *\ ot F ey) wit Ce Sa imicmmetate Modine Chai). 4 finite Siok machine when marhine Yecieves an input Gt alers the intemal stat of madyne and gentxate frequiard obec ay St _comist of two Amin dl ) mMatuine function toh Input Oiatout When you Knows tomect sta of the machine % Corrrch dnput of moc. then _macling gues You outed 7 u See= 96 = Lo taste tuna svent Sta ogi Nel Sa “thin pu Know What othe current Shot of mahi cd inal EMR pio) cnadu Uo a ite ata ak Fata = iff alphabel onsite Tait 4 4,5 Aacing state Fo firth set of Linas eral | SES [a Ketter quien imal aumltr a —divisible by 3 _ov ete AO sep Thuan Abese fem iriten to func 7 tA= CY) Step-3 = Fenphimentation 8 (oN s) Mae GCN) (Zep cai=)) | (a, 6596) a 7 a », 4, e | (4%, 596) a pe i (% a) % Oe On ea &, (9, Bo), i Gra y, Ar ea : ht i a oe I Reject MAE . g\?__ (0,45) 10,69) 2 G2) a 2 i ey ni we " 3 lsdhle by 4 ox Me BA Nt NM ny umber in divisible - 4 N N ¥ Nt suep-4 The - a a at, Nn N N. dept 2 dogie % N ix ui Tn ee eareeo! - stint kod: Transition Diograny ny OF Mae Ps ay = stale with 2 5 ae (C.J) Cae, 22) —— jw IP Ca, eo) E gkpS: Cxomple (%e , tieio1oo ) Jyootoo ) Commer } i (4 bieie0) j i Ca, | jot0e) C4, o}00) C% |, 100) C%)) 00) (49) %, i w Fenieee Auepk H with Ghing 4 | ae Sint with sting 4 % Stat, ith ching I a [ge we stasting sto _ __sbvini with ©. Qt State wits ot u De Stop pene £=%o, wm | * levgp-3 : dmptemantatien I | 9 1 = Jo \ [. get | ae ar El i. a” | ae [ae Ps oe [ a, | a | 4 oa as Den (%o , 0101) CA (Ve = CY. 101) : (% 01) Car 1) a %. Het (% 5) D Soyem Ol OmaO Sue! cole) aot) oo) 2) Finite Automata (A) ee Finite Av with final etnts, Pini A. withowt final state Q= Seat Stale % with o, Ye stata with car 0 and pe off fone: Mone Madiint Yi = Stute with et Fs a ae prMealy Mathias Fnout = + Ca, ) Step 4nplernun talien DEA m= (9 Ge £) Xo) 69 09, Gy) ae s Ws Vo % Qi hs, if state Yo Ve Fe. m at ay BT as 49 = iP atehobeb D+ Franition 1° gxted Q, 2 Stunt skits eas). fo Fimt st 0 ‘final Stake ww tated NEA +t = tay stat State ; —3t const of Hinite a th ons nen tral stone stat See an de on or [4p NEA Frm sath shy Sind on coc out Sy nbod | sim tan bp 0 etd o poy toner NEA cna be. aepueapted as [ M=(Q)= 88%. —) ! Riis ae we : | “a iy ae a iS a | ie. Sie he & ee ea G@ 1 WG) Qxe 2% > Pwr set ot @ Dyn > ctast Stole Fo finite set cf tinal chats = [me fo PTs" [ast yanks of wine 4 -L: Thier CNEA) 2. Logie aaa oa Gy = stele’ with 34 gost symbol 4 aa i ® 22) envnt NEA to spt sepa ser OIF 1g? = 09 = 1c LQ}, Pays mw pr P47 95, PAH AS, prs FISTS) © = SST ] etry ° ( R | ev. P. + ~ ni & C1 ato 1 Jen ( Gen py (eH, ID) ¥ ie Er gar ar = 4 0%% © ear py 6 4.a* = [pas ®. Lis? op, WA Ve%™ pa raiser IF tips ay Lae | xX as” | as® xs* etp-4 + Transition Diagrrars ist sm gs tat : a ey eae pz 3G) eG ee oo. pas* pays * | oupeys™ mgs? rs xa + pus] vosc¥ fetpwe™ 92) || Gavnc NEAUNUEN Spee hina iyguaty fy 45%) i Gup= (@nulyo)= por = py Sa oF PP ict ceteinn) (tue) = s(n) v (4 0)) = pyer = PUY Ppa P Miadinen Lipa )= $C cr. o(ye)) = pyws = pye ~~ Y Cr) = Stee Nu(y))= pu d= e some (ps, 0) = 3 (0,0) ($,0)) = py us > pas E = (5) = sCiey ) pusi> pe a (a1,6)= 8a o)u (oy SUS, = 7 i : 1 |_(q¥,0)= 3%, o)u = = Reet —_ Abe 2 oat { a : Be) -) = : £ $s e: [Robe for DEA Minimization ibook We ron Beplow on don fh a oa e a p ~pf. 4 ee £ (0 Tapa? pe H# Dios = n a) NGM PeBner ae, Meaeeae NEML SEE OE m= (thers) eh Eran. 7 with past Pepto pape a PA wie pa ne final State oO” final state giv npA uncial qhose stalin whose 6 ~ 0, VU, %2 de Edm S040) $05) Se) $ Corouicdewi c= ties [AGS cakes tro) fon aaa} 19,99) f4} 19,4 lar ays Hy fa, 4 = €-closux (4 (e-clesure (4) >) fa.) 44 44 Suk =: desu (2 (ite, 4) Veh. 0)) 4, (4. tory) fo Oi -otins) 04d %, es) oad WG re Bad Ua on) Buy (Mir 1) Oda C Yo Cen € (to, (Olas) [ EG, toto (43 vie (@ ter) 1 (Ce =a (a; 10-) 0 (x pies Ey (en ta Ce {ve , )o100) Dian uw ° (& (iw D4 — Output: 9/0110) =o — R2) | Cnt clos marine of ec, donvad of too oe ip (obi mm e : Gh) le i ge eS < ] Ser Sa oS ZX a (oh) SIT Caviseo—CseN) (ey: cm ——\ccue >| Re = alas b)* 63)| sot of ait strings that Start with either 4 yer 2= (a,b) Qs) Attp=3 + _NEA tp pep. 1m. Y= € = dosure(x)_| G9 CD) fol [foi 24.7) ia. | at oO |{5n [ feet ee ¥43.5) | is] i_R D =] ace (om-cony-(o+n)* ra TEETH be divibiefe Ee meuctiple of 3 3 ma On =p Hi tH SS ss JO ° 2 eee 1 ¢ JEM {e3} jsf of [et taser ee ol 1434 | tt Iq \ L= {weson Ww Lut is odd} PS lees ee yt TS fiplacing _skeiles 2 1 A B c B pike @ B 4 oF De ee jlep $ Minimizing DFA. 7 J Replowing —C by A T J J i (QNaaES Peal 1 i RE A A Q) lWiile RF tonoteuct NEA 2 wiclmind PAs fixe Jai o 8 a Be Opiake lA Ce peaeeD 6 Sof all string ending ith od ove TIP fo,1) — | ge= (o4)"on ep 4 G2) |Gonatauce RE NEA & minicnied DFA fiy tay ngage as bet € over TIP. ia by o = x a => |sipveRe = o(arm* b meen iS S - — a boa) Step -3 | NEA in OF. alphabet y= Ectosux (4) tases) (4b) fo] can j Acdins Thm di23s 3} lee Pag. bi 4 pressions and if _p Is _€ [472% 534 erie a0 een. Heys Hes 4} B= Q+ 2? has o unig col os B= QP™ : 4 aaa | LGnveat banat jag fo BE Ip. a [| @eia me : pa "ei'| =x fay (@) __ a aa 6 I ac | ie eS ae) | ie [a2 a0a4 94+ oe — @ L | 42 40 ——— @ - | sicp-4° Minieained DEA Beplauing 6 by C baie on? 1G) cin 04900) agentes A= at b+ aa | aA cam. 2 qo + U(b+aa) € é pt ___ a co aepeal| Aydem!< Th fe R= Q+ RP G= 40 + Ul Cleos)* Oto +e Cats te: se Acvdem|e “the yb) 4 (0 + bCtso.0r.0-0) +€ Us E+ 4% (04 VlidoMo.g) HE @o= €-(orghran\*b)” G Son @ 2) RENO aR. a | by A ‘D (e=ap") 4 = G: (04 tito.) *0-0)” Bye (g iidee) 2) lol (nean)® WE (0+ tilisnd%o.0) 1 = @) pai $ bere gz = Car alvran)*h)*a (broa)*% = Pani @ MRM s = (94.11 (i408) oso) Paleo G3) || Beaiign oo DEA tp Lome: tino birpaey niumbear To ote omer a ol 4 sip 4S DEA “Thang gs o ZZ wep 2.2 fo 1} fate Eqs hx L = = 40 + yo +€ = [9: Vinnal = stunting stati & Inaitating both ars A= Ul al + Vat = as? ~ equat qn 5963) Wgeater = Stal veprescnling thet fins number r Mis greater than 2% number. we aa 1 Ou Aten = Stale reoresenting thad first number rata =O) ere ie, j ik {| Subsituts ean @ in on © : Sp Implementation 2 { a= Wht Fah 4 92-01 @o (0,1) G0) ra (ar = ani 14 OHO) iS) Gp DG aL us Ve Meu me 5 fen juacyes Ml Ciera % ay 4 % 4 " qe Tu res R= 6 p™ % ee ae os Ske i Car £19) aa ~ 2 a0 4s | A<® AZB a4 4 44 = an ease | SG 5 j Z| Sep ¢ | Pransition diagra I b oad bea rm De LD Step: a te ieee eee) CA pala’) { (4. ey) 5 C4, bababb) (a), bow) (4, bass) igo) (425 obb) (4, D f 4s, bb) (4, a) ie 4a Ve) : 4, Acupt Roject a i si dena, no: io divisch is 3 Rae Loa: == {o1 24 o2fo1 rt = ctavting state be = starting. 7 ; 40 2 stats with rein 0 eee} ee 4, 1 a a a — oe Sep 3. dmplmintaten Le te 6. 9 a te 9 SE “GL es [$= ig ae a ees dis 8 eu a a “ 0 fet ee Go 4o 4 eo a at (ee 4% 4 L ————— Bera ares 2 F 1 oO a © oy: i | &. = Skp-4 © i J SOS GS Gal 1 i SS > BET a 5 +— I ZPeare ni (Gra eae GaJa) pubpub > 000010010 a

You might also like