0% found this document useful (0 votes)
28 views30 pages

BCS503 Module 1 Written

Toc subject
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)
28 views30 pages

BCS503 Module 1 Written

Toc subject
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
You are on page 1/ 30
Module -1 Theory ©{ computation Kanye “S CSD, 02, PESiTA _ £ ex ne athe Fortowuirg tera) cube an example Fs Pacha (i2) power of an auphabee (ui) String. a stsbng- concatenatfon (Vv) Languoge DAtphacet tro bet (=): Te cegined a Ak giele Gt | ex: se fors3 Binary aophabet, 5 = [0,4,8,3- --- Gf Se gor deckenat numbers. == fa,b,¢,d --- 7 OM Sig ack for anphabetic (i pore On auphater(5") * ce sult ‘U Si us2uUL |) a) Fe forf | as Set Ca Bering ey fogs © 4 gia see of string of Length 2 Z*= fo, ,00, 1 ,10, 01 ,e00 ,604 ,111- --f ee a wet AVE a % vibe 2. tentyeh SD ob am Pe x dl ie, bors cgired @ Food Cg an, ice (sy CL + consider a= fo,4 3 Strings that can le derived ge ZfO1 y $004 , 101010, ~~ tv) Sevbrg CON CALENALION F kos Ste: Csutd 45 Concatenatian % | deptned os String AppeorF t aye CXxIXr abs, Y=C xyn abc. Y Langeage (1) See ef strings , oul. are. chaeyen from Fe ushere 5 fp partictiur alpha tec. ts called a Banyo bee | ex =§a,b 4 =» Sek Cf E Lahere tength is bel bys fa ,b, aan , bbb, ababa ,--~ bbbbF t= SA Of bk eng ceg~n Uith & and | Se end with b& - §ab,ababs ,aaab, aashatl-.. 3 a (VY) Sgmbet + + Tt % oO bullding boc. fs autornaka theory CK: Letter , number (o-9) “we - Sqmbots < A OQ 7 &8tas atte 5 Tramifion | O — aterm ediate state oO — End | F€rat tate Ear cng, Ete ig AU em epiton! 10 8. feces A Ge Syl serag Strboq- FUNCHON, Relations» = — subshrig : ~ OD tor ation = Proper AUbyeoirg- —_— Rept=cation ~ Pryce [PLLA FE — Reversal y ox er Seppe LP \ | y 5 Nember Pa te Yyoren pe og Agnes F | | ex: flo 3 JEL 0 > Concaken atten co Stet con catenakion f wo seeirgs (silt) 48 depned otrtng appendicg + 20S xz ab, Yoo => *¥ zabe CK = scation * Rept: cation of String w es depined m% were . with 2c whi w or 2 a®z=aar - Cer . [Repeotig £he occurance Of wf no & Hme a | Hip Raphcation + regptscation ag strip AGS | % we €E | p Reversal t " por each Ate&og ww ig agered @ & wi so tren wruw%. € eg ae) cba » Retatfons on, Sing ubstr eo Aw Sb ‘an’ ag Kubsereng. Me g ‘te! cok ocours in Sticg = CPE Seubert . 7 Tepes “2! 24 Oper Ab seo iF es 8 SET se ike iboking 0s! and is on? Ean beaée : Aabsa €)4 pay aab , Sf —_—_ oa. DP PTEpEK F Po Aericg 8 Ww Ones 26 ‘a bbe srere, exerts | ~ aa €8% Cees > ror pres Se) ag “o tg mw prope" (PE o6 Ss Frp- String “Sy wigfte ag and sxe ek: conider ‘abba’ 2,6 , bb, bba , abba —\ Prreper upper © | Fundion | on raeee 7 Foneion soo OF aod wet” operation tke union , éntergettion ond Complement can ba appre. Depperence @) concatenation og Language! L,= = fad, abySS bys §xX%, yy 4 xt faart , AAW ¢ Wx%, aby ¥ Ly ks = | Geb gee an a Cargege Ts fé, ae Oly PG ne 4s bat fa) a ae 7 - 44 edd 72 oe a's > lyvle =f. * oy. fas 3% 1 urien operation SLO, ~ ger ltH Encensection operation ae byte i ~ Chicta) | “ bk pperence operation 74 Comprement operation. | ) near aSopre 4 Cx plain ce pieveuchy Leaner bn mrectornaée Peasy ee 7 RGMAL Language CRsm™) re (PDA => context free =e. CoN ete c z | | | | | | a- DecedabiLsity ° psm ove decidable fOr exe ees esm accents some. Proreetnr” Sbre~p rs Fsm minimot 2? AVE QFEMR CUr~S, Pd enti eat 9 pee LZ, ouso cectdable . gut quencies UIee PT Can't be Aantuered 3. arity: ghere Wwe Fos oO INI FSM cxnd erer a ape be Aescré ‘ben Fos exprerioen every CFL Some Perm can be Sescrebe Lon aoe : No cosmepond: ool wy ue BFe braade,- a LOWE, I He 6 Séemideudable. 6 Pvies @ | sat Depsre DFSMm | Fs™. £ | # adhere #5 one and onty one transition on | an Enpet | Drsm | FSM 45 foray ce pred os, xm & gisepe (9, £, 8, 40, &) ushere 7 c 6% perite seh Ate. & £6 the Enpet acphabee Wy E 3 43 ErSeian G&nd sAE mEnfmum Aewtng. acce Hed, FS deckde, HE nember oe KELLES kn #Ae Fem, £n rrest 2s tC, CAs. | 2> Fhen #alce Longer serérgs end mace | them accepted |) Cb LLE, med fg “- the tororKition . Z> check por the minimum aere cer ore roe sto accepted ore ¥ ae Accepted ap per #ne #rantéan Kegrar » see tFat each Ake hay brant é tO , th nm ber eget Museen © et ©) S> Two cansitt i= ae et i Pega as ayes cg ES problems a> from the gtven beansition agra og DFsm ale pene ate” £ne Lerzotes. fib a a Lyb BOO sol! B= fF, % 1%} rc £6,£,%,5,F3 ss fa, bj Y,2 Srgtiet akote Ce % (Firm state) d= +5 Aboun SA, Zronsikion table le Draw & DFS™ 40 acc“ pe BETES & o's 1o and 4's ending with String Ol! | ot f= fo,13 | Lz fon, oN , toll, too1l -—~~- J @ 3S Dtaw. a pra ko accept Kesig Basse | bis owing Aubyring aa lw Le faa, baab,abaa, aabb - --f me ES, HFG | | 62 f 40% V3 Ec fab} You &ritiat vcate FIekR= final Atote 6 OHS @ obtcin A DFP to accept OHS of a‘s and b'3 Aauniog- atieastt one a. Sot Ex fab} | La fa ,aa,ara , abab — —~ —.3 | 652 @ | ~ Oo +O D4 @® Draw a DFS that accepts AtriNgs ag o's and 14'S hat contcaf8n 3 Copsrull ws o's 7 a gk = £0, ES suo” 7 0002 , 108011 ,01 0001180 3 e we, 2 DFE 40 aceept- Woregs % os 4'S Ush e A, ere oe Coa auith O $ end == $0,413 Lofor 7O!ll ,01801 ,ONeo! --- 3 | © —_ & ebtatin a prsm Lo ace GC) Le far] ul moda 2 oF on E25 farbF Puy ea note : rbd Z sreay Gy 4%) rasa abo A GD Le fu Jw] mad 520 3 on £2 $a/63 @ t= fw/we fae5™ as the Kbrirg with | Cren number % a's and add m0 og 633 L(m)z f b aab , Oba , aaaqbb.? | @ oe (©) obtowr a Dea tO accert sng on a's | and b's ae ii even number af a's and |. Lez $e,aa,be, Abab gabe ,aaaa , abababas, | @ L= we $a,ej3% “5 sre string og ass ard b's And end urstth the Kb Kertrg ake. L(m) = fee ,aabe , baabh ~-- 3 ple p Lda,b aE -)" a 4 @® comput a DEA £0 accept series oF a's and b's Onrding- uth Qb ox ba 6 @® @ Derigr a Dre to accep thar 9X La swle é even oS 7 eat § poh cron ey ope %o,4 ® verge ven anion ace a ebony divixrble Qe (D Derign pFsm AlvEKbls af 3 accep binary number, Binary number go,43 AiviscbLO. oy 3 $0,4,23 ye tn pre there extse ane poth m one slate Lo anothes Afale 07 one | Syenbol, Con speck&p Sa Enput) |¥ firtte Aetomata awe catled NEA uhere SPRCre KEE many Feth for specg cc fe Eoput from current reake £0 NeXt skate an o@ agbot Me Tt 45 cay to conkerucke NER #Ran OFF ~*~ Every NFA st not DEA , but every NEA can be panes anto DFA. NTS powcete Bn NFA but noe En DFA Go, oar pakh enitee Specific Pus noe 2Led 40 £& <8 Called (% 2)? 41 Non _Srermeuntte 2 > cred series en uaa Rinse er 4n > NFA containg € Copitor) soonsition + € without ony Enput , trai ion oie Nee Tasers. s ates Game DEA | but utth ~dpferent transition function. | m= (8 17 ,5,% ,=) ud Here ot QxXs > 93 | roy | bay S eatin . et, rk mice et SE canyerucdk NIECE L=fw | unere ae cha 3 Exfa,by4 @-@" © es @ conseuckt NFA gor gr Lo cohere, Le § set og eb dkréngs es as fo, a4, be is O1 10, 7- (22D —~@ @ each Atring contains Keb seri g ‘or’ 0,2 > L o 4 0,8 GO @-_G @ Each Kare. that ery utitn “O’ Sc$0,44 Lho,s oO (#)}—°+@) commu pre that access 0's and 4's that erd ulth 00 G32 >) @ © Connie NER £0 accepk Keng ercking with ab ar 6a aer Fe fa, o3 | © writa NFR #0 Vele¢nize LE String ate, abd ,aatd usheso = £a,b6,E,SF C @ @ savite NEA. £0 accept the ll Aorguoge aver 0,13" @ gee ep ate strings such Brat Containing ebtner tor or ig Substring Oy Oe" > Q)—@—a- Ge" | GD every 2 fatten! by co | @POLRNHOLO i) Caomrett NFA to incase” hal COI @ver F$a,b64 7 ea eeaaer ig BAG eg as AQae OOS" @ gy write NFSmM 30 accept dargucge La fw & fabj* [374 charather Grom ay ip a3 Lo gabe, bbotabb , ababb ,aaba, gaaan , ababa-- OG" A® 10) eovite NFSm £0. Ve ‘we LRG hargeage zx F i= fw € $arb3 w &s made. cf ae er opetonat a pottawed by Gay Zero Cr weer b's 7 a far, one pant, aaab ,aabblb ,aaabss..2 "GOO Ny Comeneck megm L= fw é fase, afte = Lye fa, be3% f w= Zabcabe yD Ff. ab | abe OOOO OHO @ oN fw fares”: Bx ye fr o}* (Cw= xaésbaay) Vv (wet Xbabay)) 3 GOODS) @| ¢q)) Pinkie pedamata wulth E transitions pea 2 CC -NFa@ epston NFR | she NF uahlch Enclucles dvamittors on tte | empty Enpet € %% cowed G NFA x E& -NEA ig a s tuple er cntegtle m=(6, £6, YF) ye Boa y to p tabetted € CK! Draw E-NFA ehot acce ate. binary L String. ushere the” Love symbol 16 0 er ttot contorn 7 a's E_+f e GS é€ E- choy (Go) = $ Yo, 4, V5 E- close (%1) = §%4 E close (NI = $%,V94 C— Cloyure (Ys) = f %3 Go) conversion from NFA to DFA (Subset corifrittitn, © XW an NFR, at any port Era Scamming be Faced eg the Eeaput COT, coe, NAVY uilth a chee ef - number ep puny to be fotlawe: KO 7each fio tole. ~ukth DFA there never a cholce pos SO uthen we contiuct Q BEFPA DFA eshbcs accets SHE Kame NFA, £hE conversion Envowwe merge as a [Portier eee ppeci’vety Oth perrible reales chic con be vyeathed On a ror eutar Enput Charccter , grom a Prortetar Kote , thto ace co. Kate uthecn ve, a hes gee prose Steps kA convention * gtepi + compute epLon Chore, por otk she Kote CHandiing C trantittea] step Filodout e@-clowure % eld cloyere Atate Crew tar eing tate ) stepg + Start find new active Kate Repeat Akep 2 uwtit we dont ce no new Kkate. : Stepp 6 inch Knol actine bates, | $ &% DFS™ 6°r NDEEry | 6teps 7 write artgt | ; sing ceive = Ktarter, ® Oe the, gen NFA to DEA 19) 2X) so 7 214% $4443 Vil x Vo * Vol —(4) —Cp | a | {%Y,3 $%,%, 4} £I%U Yo £%,%3 EWU $V0,Vet $F, %s%} L. S converte the dollowing NFA to DFA $% U3 Vo $4 U3 FV%} $UWUNF {Vo} > convert the, Foclourinyg NFA £0 DFA &) @) converte 2he forlouing Ge npA 20 DPA (are Qe 7 —*—(%)) Sin a b 2%) {%n} Fo Ho) $44} £40) SW WA $%0,%41%,%3 $%,%/%33 $4049 § VON $VOUNUVS SUUW $V, NG F$VY,%e3 E-Choyee(Y) = § 40,4, Ye 3 €-ctayere(®) = £44 90 3 C- clove (%)= § Ve § 5off% %23,,4) = €-dewre CG40,9, 31a) He ctgnre (deli vu Be (4, ja)ude (% 14) apne reat = €-chayure (qo) = £% UGS By. & oo Minimizatton Of DFA ( Table filling method) ° —__—_— o—_—___ v eK §n.,8,c,E,FR fF ier OCR a wh qt z a | Sep [o> fe} (9,63 tech = NE 4: Remove att #he Om nittiaL taka & unrveahabls & Sse && koarrition DFA Stee ; pra.w prarkition #able for all or Apatey stepg , Mow gpee ape tronvgion able into ewe table Try T2 Ta Containg 07 fina Akat[es | So Stepy L Rind Aimuor TeH0 from T Auch Lat SCV,A) =P OlGa 2 =P . tevo Abate, wshSch Have EME Vote ef age $ vereve one of hem. Steps : Repeat EP B82 urtil ue pid no Aimilar “rou qveavable Ain T Stepé : Repeat Can & step for eage! Step}. Now combine tte Teduce) TST, table 45 Ene ae kraniitiorn able 6 rritnimize Wz ceabbecn, AMES from non pirat Hak © 1 Vo v3 Gi) veable cahich starih Grom frat State 4 oO *% | U5 Ye Ve | Vs VS stepy (sera hag ro Amitar Fes, be Same GD KER Lob Atmitouwr weus, So Skip Us wepiace Ye by Ys o 1 | | V2 U3 ey mule Distinqushable and Indi dp) s S Cy, w) EF Sp wr & OCy, 9) fF one Keote mae to s tL: other state meve to non pose Akckle Called wre Akate,

You might also like