Toc 04

Download as pdf
Download as pdf
You are on page 1of 16
26+h Jul) 2023 q sols) The alt possible sequence of States folloded by oe | [znpat string ‘oloo’ is given NDFA ore Shown belo: ee ee ge ae bees | 43 iL B B 2 te A any The all. states aie by the rg | is Bis indicated as Shown) be} nde S* (40, otos)= $40,44-43, 24) it JAW Possible Paths followed by the Input String, ‘elos’ Oeeit “a0 £ vy ‘ Path of = 9o-9 Fe 540-2540 259 j[Pathix2 ¢ 4o-23 potd Jol qo 2 344 Path 93% Jo-25 Jo+oqo2993 9 3 qy Path 04 & Jos Jo +3 qy ath 85% 40 79 13 The given string < ejoc' is completely Consumed ox Priessed | SY Petiowing Path di Path2 bat NFA halts IN Non-Final | LE States Yo and 43° vespectively therefore the Sting! cioc’ is | _ Net lacepled ty path 4d) and Path 2 | | ee The Given Shiny ‘Gico" is Completely consumed by Path 3 and NFA halts of Alene Final Stele 4q There #he sting toien is accepted: by path. Bisot a “The Shing ‘odoo' is) not completely donsumed bY Path ‘Gand Paths - eens the eticcal AS Qo+ eared by Using. | these es 1 n Sd na nick edie bar _dppd . xopdd | : iar | Ace Neo og by ND : In DEA, a Sting is Said to be accepted sif the Tanai _System halts in a Final state after PIBLESSING. the enn __ String. since thee can be Only one Possible Path Far g ————— mines. Satts “Shing in DEA, we can definatly conFisrn Whether a pe ne accepted the ae i one path that leads to a Final state after complete cone f Sumphen of stAng then the shing is ¢& States te the accepted by NFA. * Examples consides- NFA given in Pellowing TTabe. Identify all possible Sequence of states and Paths Followed by sthe znput Sting [38 abb | bbe ee bbaga , baal, ie ro Hgeitt The all Possible sequence of states Followed eying 'abb' 15 given NDFA Shxon below 8% (ae, abb)=8{4,6.'5) Path + Jo —*9 4329 dF 2) bbaaa i AL re it ¢ Xe. rs ne ae shez p p oats pinay eo y 5 1 43 r Fre 8% (Jo, bbaaa)= f41/23,48 Al) Possible Paths are shown belod> pathi-— te qe b> 40 S548 : Path2 — do—>> dos 41 29 42 Path3 — to 29 qo > 44 8 2 [Path — to Par a ee ee | S¥ (qo, baab)= § 94-9243, te} All Possible Paths ave shown below? Pathd — qo 2s qo 43 Path 2 - de P5442 5 qo 5 05 Path 3 — 4o—P 5 W525 a3 bo aE The string 'baab’ is complekly consumed by NFA 2 N Dh i oh aesien ee ates fe AS 4 labd and aacd. | j going-| The Symbol Set for the. FAO: : ee [ee fawicr ay |_The language set for the | Caiven FA. | Leg abc, abd aacdy | the FA fer the Given Language The constwded FA is described as _ Ae) Aho 5, BG AoE) Pe ts Wheres Q=f 40194, 12,93) Witey Bibicid Yip fe} oppyprial 10 5 q0,a)=42, §(4i b= 12) $C4. $(42d)= VF 8(43 ,Cd= 44. (4 2) desig Pei are] [Design FA do ace Soins | The Symbol Set For eA ies Pia we | athe ‘Language set st | Ta npiese dy Be AR ea ee | Le Yab,aab,abb , aabb b The : ea fre LS Zonsinvcied as Follows? } any | == aoe a The came FA is described oS Follows: a’ M=(Quz, $) 401F) = 4 ‘ where, — i : s ee @24 40,44, IF) : =faiby & |e a=44, S44 blade, S44) 94 SAE Wea Yo= Initia) state Fs {ar} Constevel- the FA of the eae The symbol set for given EA wage L=S am es | min} ee fatbNiwe)4 ap az The Language set fos given FA {asbeb ab, abb, aabb S_Constructed! jas Toilews * FR OF Lhe Language ee ee oo : _The constrded Fa is described by __™= (9) 840,86) an 3 oy) Design the DFA fir the language (fiat } Such every Shing WL. |W ends With di andi and ends with zero ,Stavts ith 4. Soi8t The Symbol Set for givenFA Z=fody The language set for gvenItA L+{ 0440, 004 Fodd, OMIO, 2255 The constweied DFA. is f= (9,215, 401F) DHE, i | 407 44,42 193,44 * Equivalence of NEA AX DFAS In the Case of FA, TWO Strvchurely diFfeeEnt FA i _ ke be equivalent if there behaviour towards Shing Kp _\s the same. “ 4 _Exampler i Les ‘ ek, there be Too. Fine Automate » M4 (NFA) ao _ these are equivalent if evesy stang, D accepled by iy s alse accepted by Ma .and every Shing % Belected by 1, — fale abe rejected by Ma and vise versa fe si tos EA Ase equivalent if their acceptance & non: Converting NEA to ifs equivalent DFAg ; Example ¢ i ea cere ot) convert the 5 Polloging NFA *4olits equivalent DEA. i Curent tp Smee! State ae: : — eal Aotie oh el Aes _ W4e Gen ope: xe ; The obtain Dea or corehruced BFA Ws ae — fre (9. 8:48) : g [oS “convert the. NFA eave nn Fl lowing, Figure toi ana ; 7 LT] capent ZIP. sie a I stale aw os ie ae = [a1] [at.a2] [1] : He | basi ib i z r 7&4 = [s4.92 pbs || ) Fatary | E a aay [41-42] =a sl The aca OEE or Gnehied FA is Eee! as Plows. Me(Q.e) S40, F) oe , a-{, ea), an} | ©4St Avg 2023 Fiz Initial Stede Fe} (a4, 46)) E "0 coment the NFA given in Following Table +o its coovespending! DFA ea mal | | cumzent FIP. Syyabels ‘a Ec Groebpeel) yoo tori, aa e a4 ta . | io 42 MeO. 43 eo 43 ‘Ww 93 . " 1 34F = i a : Er ; SoIMF | ANN equivalent DFA PF given NFA is Sho2n below: 7q cursent TIP Symbo) s state ° 3 i = [ar (22] (ar] F : al 42 = ie) é E (a5) = (as) [fay] 1 : = : Pan me Ud A j . ie {s.24) ld £%-4i) 4%) | t[ts,4F) | Cig. 12) (93,9F] (3aJ | es eee DEA is describe as pes | thew “ebbein DFA oF consreted DIA vied DF seudescree Be 8 Felag re lees One Ap. ep) ist faa, (al. ud. ag) (ig), (23-47) sa) [say yy [ee Youd} = [eas E sate : | ransiten is shoon In felloding diagear) Ag | L 43 UH = Initial State. Fe § Gq, (13,99 aj = sar) | Sen) chibhcl : Transifon is sheen in SE Tee one. qe= Initia) State 2 } fae 44:42,43), fioa.4a]} 28) Design a DFA oves fort} to accePh ol) Shing ending ai, ol ot do. lar i = ie The SYmMbo) Set for DFA z=}o ay pt The language’ Set! fer the DEA | b=} e4, 40 1604, 104,00, 110, - --} | ] i ane DEA By the Given Shing. is constwcled as belo’ the consineted FA is an. NFA eae ane abtai an equivalent DFA as Shown belo: a oes q vi . B. S ee Cosent Tip Symbol State 6 a [}> [se] | (aays Weep [ae] | [| [aoa] | Tas. aa} fa a.) '40142] fies da ar} ‘Beras] To 92¢6})|- Go.a4,9F] | (Go, a2] bar e 7 Guy (ae 2] Ge.a2 ar] [The obtain DEA is descvibe aS Follaost M=(@1S, $:doiF) Bs. Where » || [92) (ae), (fea, (fear Gon ay, Casaiadt | | z=fo.4} i | the fransiken is shawn in diagramy below s l ee aaaa oar}. [90122 Ae)\

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy