Toc TH PDF
Toc TH PDF
2° is NFA transition function. + Construction of NFA is easier than DFA for many problems. * In NFA, zero or more number of transitions from any state for each input symbol. But in DFA there is exactly one transition from every state for each input symbol 2.3.3 Construction of NFA for Regular Language a Construct a minimal FA that accepts a language containing all binary strings where each string is starting with 0. Solution: © Construct a minimal FA that accepts a language containing all binary strings where each string starts with 1. Solution: (,\1sy) |-O--@D Construct a minimal FA that accepts a language containing all binary strings, where each string start and end with the same symbol. i.e, L = 0(0+1)°0 + 1(0+1)"1 +0 +1. mabe EASY ‘Theory with Solved Examples| Computer Science & IT ieee 2os)| GIMACE Easy Solution: Construct a minimal FA that accepts a language containing all binary strings, where each string starts and ends with different symbol. i.e. L = 0(0+1)"1 + 1(0+1)°0. Solution: Construct a minimal FA that accepts a language containing all binary strings where each string contains a substring ‘01. i.e. L = (0+1)*01 (0+1)* Solution: a a= HC) © Construct a minimal FA that accepts all binary strings where each string contains a third symbol from the beginning is 0. i.e. L = (0+ 1) (0+ 1)0(0+ 1)" OOO (EY theory with soived Examples ieee eee wormmadecasy.inGAME Gass RSE 2075] Theory of Computation | Construct a minimal FA that accepts all binary strings where each string Contains a third symbol from the ending (right hand side) is 0. Le. L = (0+1)°0 (0+1\0+1), Solution: A . ALTO) (e yey LIRA EF RD Construct a minimal FA that accepts all binary strings where each string contain 000" as a substring. i.e. L = (0+1)"000 (0+1)*. Solution: . Construct a minimal FA that accepts all binary strings where no string contain ‘000’ as a substring. Solutio Since ths language has @ negative condition we wil design a minimal DFA for its complement (containing ‘000" as substring), complement it and then remove the trap state i any, to get the required minimal NFA. The minimal OFA (for containing '000' as substring) is given below: Its complement which will be a minimal DFA accepting the required language (not containing ‘000' as substring) is given below: Now, removing the trap state D we get the requited minimal NFA for the given language. AUNT Gg mabe ERnsy ‘Theory with Solved Examples| Computer Science & IT kaos) GIMADE SASH “| FREER construct minimal Fa that acconis a language k= fab. nk 0) Solution: L = (walwe(e, 8) Solution: Se Solution: Lelewblwela, oF) Soluti TN E xe L = (ww contains exacily wo a, wefa,B) Soluti 6-6-8 [EJ Theory with Solved Examples G2 MADE Ensy www.madeeasy.inGQMADE EASY ERT) Theory of Computation = (wlw contains atleast two a's, we(a, b)*) : Saini Peat Onn Omen) = (ww contains amos wo a’, wel, BF Solution: L= fewelxe (a, b), we(a,b}") : Solution: nh Solution: (p\s8(s)28-(o)28-6) | TEPER EP AE) | Eze | Solution: iwlwe(a, by, [wl <3} 0" O"O*+© OO" OO | = (wlwe(a, bi lwl 2a) : Solution: | -O2-O2-O* ~S nunca (@mMADE Ensy Theory with Solved Examples| Computer Science & IT RSs) G3MACE Easy L= (wlw start with either aa or bb, wea, b]*). ie. L = (aa+bb)(a+b)" Solution: L = (wlw end with either aa or bb, we(a, bl"). ie. L = (a+b)*(aa+bb). Solutio 2b tp On ZY 2.3.4 Conversion from NFA to DFA (Subset Construction) In states are present in NFA then minimum number of states are present in DFAis 1 and maximumis 2° states, NFA = (Q, £, 8, dp, F) and DFA = (29, , 8, gy, FP’) Evory NFA can be converted to DFA as following 1. Inllal state of DFA is same as NFA 2, Ifthereis any new state while covering the transitions ofa stato of DFA then cover the transitions for the new state ao. 3. Repeat the step-2 until there are no new states to cover the transitions. Let&’ be a transition function of DFA and 6 is transition function of NFA. Transition function of DFA: 8(A, x) = Uyq.48(@.x), where A is a set of states of NFA and A is the state of DFA, qis a single state of NFA, xis an input symbol 4, fany of the states of DFA contain final state of NFA, then make that state as final lfm states are there in some NFA then the equivalent DFA has almost 2" states. Construct an equivalent DFA for the following NFA WATOT 7] » G | | fa. ct | L'a [eo [SJ Theory with Solved Examples G2 MADE ERSY www.madeeasy.inGME EASY ERE 2078) Theory of Computation | Solution: DFA initial state qs is same as inital state of NFA. DFA | 0 > % | (a) |. [Goat [fact | 10. a While covering the transitions of q,, the new state is created as (q, 4,h Final state of DFA is (q,, a,} which contains a final state g, of NFA, Construct an equivalent DFA forthe folowing NFA NFAT @ [6] [DFA] a] 6 > A) {ABI | {A} | =| tA) AB} (AP “B | (6) [iBi] [ABI TAB TAB) [ R 8.0 on fa) FERRET onstuct an equivalent OFA forthe folowing NFA Solution: Solution: NFAT a [6] [DFA] a [b =A [TABI | Al] = [STA ABTA) “Ble [é| ABABA Const a eauvalnt OFA forthe folowing NFA, oo i} | E+O+-6| witnadecasyle fampAbe easy ‘Theory with Solved Examplescs | computer Science & IT SSE oo) G3 MADE ensy Solution: WaTa ye) [PAT @ Te] Sataata) | 2a aa [a Bey Tier] | ae ABI | 1c) Spe Te MABC}| {ABC} IAC) AC) TABI Solution: [NFAT a] 5 [>A Ter (| ¢ | *C Hata Theory with Solved Examples (3 mabe Ensy GainesGAMADE EASY ERS 2078) Theory of Computation Solution: S — |[DFA[ al b ig] Eales Berea | 8 [eee ee SCHECE Peis e tele Construct an equivalent DFA for the following NFA. Example-2.85 Solution: i bl NFA] a [b a SAAB TA 14) Bld le |= {A} [core HABCOI ADI} *0 | 18 [to “TAD | {ABDI [ADI] [ABCD IA 2.4 Epsilon NFA (e-NFA) For every valid string there exists a path from initial state that reaches to final state. e-NFA is same as NFA but t can include epsilon transitions e-NFA cover transitions forall valid strings similar to NFA. For every valid string, e-NFA reaches to one of its Final state with atleast one path. For invalid strings it may or may not contain a path that reaches to the non-final state, 24.1 Specification of e-NFA E-NFA = (Q, E, 8, do, F)is a S-tuple notation. where, Qis the set of finite states, iis an input alphabet contain finite number of input symbols, 8is a transition function of e-NFA, (8:Qx Zu {e} > 29) ais a start state of e-NFA, (q,¢ Q) Fis the set of final states of e-NFA, (Fc Q) 2.4.2 Conversion from e-NFA to NFA e-NFA = (Q, 2, 8, qo, F) and NFA = (Q, 2, 8, qo, F) Every e-NFA can be converted tothe NFA as folowing 1. Initial state of e-NFA is same as that of NFA 2. Transition function ofe-NFA: 8'(q, a) = closure (8(e-closure(), 2). \whore 8’ represents transition function of NFA and 8is e-NFA transition function Winnie omAve EAs Theory with Solved Examples KD| Computer Science & IT akon 2os] GIMAOE SASH e-closure (q) = the set of all the states which are reachable from state q by reading only (qis always reachable from g, so e-closure (q) includes q) 3. The number of slates in e-NFA is same as NFI 4, InNFA make all states as final where e-closure of that stale contain a final state of e-NFA. Constt an eauivaient NFA for tefl VY 1g €-NFA. NFA Solution: e-closure(A) = (A, B}, e-closure(B) = (B) Initial state A of NFA is same as initial state of e-NFA, Final states in NFA are both A and B, their e-closures contain final state B of e-NFA. x y P «|» © | A WA} Emo EP Construct an equivalent NFA for the following e-NFA. NFA Gq theory with Solved Examples Ggmabe Ersy wamadcedianGQMADE EAS (REM 207 Theary af Computation | Corsican eauvalant NFA forthe oloning NFA, NFA: 24.3 Conversion from e-NFA to DFA e-NFA = (Q, £, 8, do, F) and DFA = (29, 5, 8’, e-closure(q,), F’) Evory e-NFA can be converted to DFA as folowing: (2) Initial state of DFA is “e-closure of inital state of e-NFA\ Let qo s an intial state of e-NFA. Then e-closure(q,) is inital state of DFA. (b) Transition function of DFA: 8'(q, a) = e-closure (6(q, a)).. where 6’ and & are transition functions of DFA and e-NFA respectively (6) If any state of DFA contain final state of e-NFA, make that state as a final state in DFA. (@) e-NFA to DFA conversion also possible with the help of NFA. Convert first e-NFA to NFA, then convert NFA to DFA, Corsican eauvalort OFA forthe folowing eA. NFA Solution: e-closure(A) (A, B) and e-closure(B) mabe EASu Theory with Solved Examples| Computer Science & IT RESEewere 201s) GIMADE EASY Consnict an equivaint DFA forthe folowing e-NFA Ae AB a -@ Indirect transition table for e-NFA (NFA): [>A | {A Bi] (B} Solution: 3 é [8 intial state of DFA is e-closure(A), e-closure(A) = 14, Bp OFA 7 SCENIC) “a _ |e | ole Const en eaivlont OFA for tho folowing eNFA ab a ap | _fr «fr» & OGG | NFA a b ASIAB.C} IAB) a] eo] 6 °c [eer Solution: Indirect transition table for e-NFA (NFA): e-closure(A) = (A, B DFA a b TAB (ABO | (AB) ABCT (ABO) ABC] 2.5 Regular Expressions Regular expressionis an expression that generates exectly those strings which are in a regular languege. itis @ declarative way of reprosentation for a regular language Operators of Regular Expressions: +” R'is Keene closure of regular expression R. ("isa unary operator) + Ris positive closure of regular expression R, (*is a unary operator) + ie concatenation operator. (-isa binary operator) + +is oroperator.(+ is a binary operator) [SJ] theory with Solved Examples Gg made ersy wwnwmadeeasy.in25.1 [a MADE EAsy = (Al stings of 9 and Bs) L= (Alstings start wih a) = (Allstings ends with 2} (Alsvings stan with 2 and aed with 8) L= (ll tings wth atmost two length L= (Al strings with atleast two length} L= (strings with exactly two length) L= (Al etings containing ‘at as a substing) L={inall stings, every ‘a must folowed by 8} L= {Al stings contain second eymbal rom LHS i a} L= (Al stings contain second symbol rom RHS is'2} | = (stings of even lena = (Alstings of oad length) 1L= Ever sting contain al a's followed by b8) Postal Study Course EXEL] Equivalence between Regular Languages and Regular Expressions Theory of Computation | (a+ bp =a ata+by" in (arbre aja oy (erbeey(arbee) (at by(as iar oy= (e+ bi(a+b) (a+ oy abje by" (ot any (as b)a(a+ be (a+ by (e+) (a+ oy(as by" (a+b) (a+ 8)(a+ By on + ovat 2.5.2 Equivalence between Regular Expressions and Regular Sets Regular Expression Regular Set Over == (0,1) [3] [aa] 15] 18 | lo 7 2 2 4 5 | e+x0serOryo 6 a a to 100 7 rn e @ 0) ont wo. ono tt +04 orto pir i 1(0* 170+ 000+ 1)1 (mabe EASY (oelwis empty string or ends with 0} (lw stat and end win same symbol) {orl caniinsa single one) (rly has atleast one 1) or wlwhas substing 1) Foor | (wlwcontains 00's a substring) (a+ory (| every On ws fotowed by atteast 4) exy (wrlwis oven length sng) rgiire €.0, 1,03), ornors {00,01, 10,14) (Ortee@riee) {ws sing with atmost 2 enath) oo +47 {iw star with 0} (or ayo ‘lwend wih’) | o@+tvo+o {lw stant and end with 0} 0+ 10 {ow start witht and end with 0) {weston ane end wih ifferent symbols) {star with + anc end with 00) Theory with Solved Examples| Computer Science & IT PES Ease 2018) GIMADE SASH 2.5.3 Properties of Regular Expressions using Operators (@) Union operator satisfies commutative property and associative property. + a+b=b+a (commutative) + a+(b+0)=(a +b) +c (associative) (b) The concatenation operator satisfies associative property but not commutative property + ab#b.a (not commutative) + a(b.c)=(ab).c (associative) (©) Both lett and right distributive properties of concatenation over union are holds + ald +c)=(ab)+ (ac) (Left distribution of. over +) * (a+b)ic » (ac) + (b.c) (Right distribution of, over +) (0) Both Jeft and right distributive properties of union over concatenation are not hokds. + a4(b0) #(a+b). (a+) + (ab) +c4(ato).(0+0) {© Sion operator sashes ibempoterh property bathe concalenstion operant doeenah hats, a (idempotent) + aaza(notidempotent) (9) Identity property: + R+6=6+R=R — (pisidentity element with respect to union operation) + eR=Re=R_ (eisidentty element with respect to concatenation) (9) Annihilator property: ReX = X © R4Et=E" (Eisanninilator with respect io union operator) + R.o=6 (Gis annihilator with respect to concatenation operator) 25.4 Equivalences of Languages (or Regular Expressions) Ltr, f2and rare regular expressions. J@ p+) i $0) Ut, te) =U) Lt) 1 Y=} Wy TIT (8) Het) = (Otay Att) = tet hts ©) renee +) ) o+ 0 We We no (mre (9) crear @r ore @w 0 () (e+m=r (e+e) ) plapy*= (oay'p () (p+a)=('a'y = (pray © (P+arp'g = (pray Consider the following regular expressions are over the symbols @ and b. = Regular expression R that generate all strings where each string start and end with ‘same symbol satb+a(a+byta+b(a+byo = Regular expression R that generate al strings where each string start with ‘a’ and not having two consecutive b's. A= (a+ ab)* Gq reory with Soived Examples Ggmmbe Easy aekalaaa= Regular expression R that generate all strings where length of the string is exactly ‘S" R=(a+b)(a+b)(a+b) = Regular expression R that generate all stings where the length of the string is least 3" R=(a+b)(a+b)(a+b)* = Regular expression R that generate all strings where the length of the string is atmost ‘3 Ra(arbre)(arb+e(arb+e) = Regular expression R that generate al strings where the length of the string is even = (a+b) (a+o))" = Regular expression R that generate all strings where the length of the string is divisible by 3, R=((a+b)(a+b) (a+b) Regular expression R that generate all strings where the length of the string is odd R=((a+b) (a+ b))". (a+b) = Regular expression R that generate all strings where each string contain exactly one'b’. R=at bat = Regular expression R that generate all strings where each string contain exactly two bis. R= at bat bat = Regular expression R that generate all strings where each string contain atmost two bs. Reat(b+eja'(breat = Regular expression R that generate al strings R= (a+b)* =(asb+e)*= (a°b*)' =(b'at) =(a*+b)*=(asby* 2.6 Equivalence between Finite Automata and Regular Expressions 2.6.1 Conversion from Finite Automata to Regular Expressions {A) State Elimination Method 1. More than one initial state is invalid. So simplify the transition graph such that it contain exactly one initial state and exactly one final state, 2, Simplify the transition graph such that it contain different states for initial and final 3, Eliminate all the states except initial state and final state by forming regular expressions. 4, Elimination of state 2: Before Elimination Alter Elimination ONMITNS NET) ILA NEN We ©) eC? (a) . ar . UTE ww inniodeenap: Qgmave Ensy ‘Theory with Solved Examples| Computer Science & IT EESEMTS 20s) G3 MADE EASY Rel RS) — 5 : 3 | | | ReMRIRE RL) RARER) (EJ Theory with Solved Examples G3 MADE EASY wormmadeeasyinG2MADE EASY ERB 2078] Theory of Computation 5. Continue the state elimination unti transition graph is converted to any one of the following with 2 states, o—O-O ner ee o—O+O (\ 2) org Recenastaats Rerintenrtyt 2) & O Oo @ Oe" a on Y ‘e FEEEEIEEIN Fir en equvaiont roglar expression forthe folowing tne automata, Solution: Keep initial and final states separately Delete state C: wormmadeeosyin GgMADE EASY ‘Theory with Solved Examplesis} | Computer Science & IT EESEMetsco) G3MADE Easy Delete state B: (aa Delete state C: | Wy a b+abtab)' Regular expressior PEEEIIEEE Fin en cauivaiont requar expression for he flowing tite automata Solution: | Delete state B: —Y Regular expression = b'(aa‘b)(aa"b)* = b*(aa"b)* PREEIIEEIN Fic er cquivaiontreguar expression forthe folowing fie automata a Lo Solution: Regular expression = (a’a)*a" (bate) = (a*)*a" (bate) = a" (bate) ‘Theory with Solved Examples Gg MADE EASY wwwmadeeasy.inG2MADE EASY BSR 2075) Theory of Computation | EEE Find an equivalent regular expression for the following finite automata. Exampl & Delete 8: © Regular expresso ae Find an equivelon regular expression forte folowing fine automata Regular expression = (ba) (baa + b'ab) = (b%a)*b'a(a +b) = (b'a)-(a +b) (8) Arden’'s Method I P and Q are two regular expressions over an alphabet E and P does not contain e then the equation R= Q.+ RP has unique solution given by R = QP*, Note: The equation R = Q + PR, although it does not occur while converting FA to regular expression, can still be solved and the solution is R = P*Q. Example: The equation R = 10 + R(00+1), has a solution which is R= 10 (00+1)* and the equation R= 10 + (00+1) R, has a solution which is R= (0041)*10. Note: P contains ¢ then the equations R = Q + RP as well as R = Q + PR, both have infinite number of solutions, ‘wwwmadeeasy.in Gamabe ensy ‘Theory with Solved Examples| Computer Science & IT PSSEteiere 2s) GIMROE EASY We use Arden's Theorem to find the regular expression recognized by transition systems. NFA and DFA are transition system. While applying the Arden’s Theorems following assumptions are made regarding the transition system: ‘© The transition system (FA) does not contain e-moves. ‘©The transition has only one inital state. FEREEIEZIN Write an oquivalont regular expression for the following finite automata cS : a +{ Qy »_. a, Solutior (@) See that no eran tion is presentin finite automata (©) For each and every state find characteristic equation by using direct tran: sitions only (©) For nal state equation, add e Q,-Q,a+0,a CG oa) Q,=0,b4+0,b fe Qe20,a,2a,) = QarO,bre fe %e*-0,,0-2-0,, a4) (©) Express the final state(s) by regular expression whichis derived by characteristic equation of @’s and bs. Q,=0,a+Q,a Q,=Q,b+Q,b=Q, bb" (: R=Q+RP Substitute Q, in equation Q, Q, =Q,a + (Q, bb"a) = Q, b.bvaa" Substitute Q, in equation Q, Q, = Qa + (O,,bb‘a)a"b += Q, (a + bb‘a’b) ‘Substitute Qo in equation Q Q,=(a+ bb" at (a + bb‘a"by" bo” aat is equivalent regular expression for the given FA, PREETI sen eauivaent guia expression forthe folowing tne aomata, Solution: S=Sa+Sb+e (eis includ S=e+(a+b)S because Sis initial state) [2] theory with Soived Examples (gmpbe easy TunaGAMADE EASY ERS 2075] Theory of Computation (Using Arden’s equation R = Q + RP and solution R= QP") (Sis final expression because Sis final state) So, the regular expression (a + b)" is recognized by the given DFA, Geos) Vite an equivalent regular expression for the following finite automata. Solution: A C=Ab [Az] 3 0-6 B= Aa+Ba+ 8b+ Ca=a+ Bat Bb+ba=Bla+b)+bara B= (ba + a) (a + b)*is equivalent regular expression BE] Write an equivalent regular expression for the following finite automata, oo 2 2 La la GO+O+38 Solution: A=Abte, B=Aa+Bb, O=Batcarcd AzAbte=b B= Aat+Bb=(bY)a+ Bb= brad" C= Ba+ Cat Cb=brab'a+ da+b) C= brabta(a + b)* is equivalent regular expression. Ems EJ Write an equivalent regular expression for the following Solution: AzetAa+Ba+Ca, B=Ab, C=B+Cb = C=Bb+Cb= Abb = AsesAa+Ba+Ca=e+ Aa+ Aba+Ca=e+Aa+ Aba + Abba + Cha = (e + Ca) + A(a+ ba + bba) (¢ + Cha) (a+ ba + bba)*bb + Cb {a+ ba + bba)*bb + Chala + ba + bbay'bb + Cb (a+ ba + bba)"bb + Olbala + ba + bba)*bb + b) = [a+ ba + bba}"bb) (bala + ba + bbay'bb + by = C=Abb+ Ct www.madeeasy.in G@maAbde EAsy ‘Theory with Solved Examples| Computer Science & IT eae 20s) GIMABE EASY 2.7. Regular Grammar {Allproductions of regular grammar are either leftinear productions or righ lineer productions. Regular grammars equivalent to lft near grammar and right linear grammar A grammars regular grammar if itis lett inear grammar or right linear grammar 2.7.1 Linear Grammar ‘© Class oflinear grammars are subset of context ree grammars and super set of regular grammars. '* Each production of linear grammar appears as: V—> T*VT*|T* + Lefthand side of the production contains a single non-terminal ‘© Righthand side of the produ $8 aSb|aS|Sblalbis linear grammar. jon contains almost one non-terminal 2.7.2. Left Linear Grammar (LLG) * Class of left Linear grammars are subset of linear grammars. * Each production of Left Linear grammar appears as: V-» VT*|T* where V is a variable and T is terminal. * Left hand side of the production contains a non-terminal, * Righthand side of the production contains either "a non-terminal followed by terminal sequence® or “terminal sequence’. i.e., non-terminal can appear only as a left most symbol. * $-+Sa|Sblalb is left inear grammar hence itis regular grammar. 2.7.3. Right Linear Grammar (RLG) + Class of ight inear grammars are subset of linear grammars + Each production or right near grammar appears as:V-»T*VIT* + Lefthand'side ofthe production contains anon-terminl + Righthand side ofthe production contains either *terminal sequence followed by anon-terminal or “terminal sequence’, non-erminal can apaear only as aright most symbol + §a8|bSlalbisrigntinear grammar + For every right linear grammar tnere exist an equivalent ft linear grammar and vice-versa 2.7.4 Equivalence of Grammars Regular grammar, left linear grammar and right linear grammar are always possible to generate the strings of given regular language. © Regular grammar oft linear grammars = Right linear grammars ‘© Allthese three grammars generate same class of language called as regular languages. 2.7.5 Conversion from RLG to Finite Automata Steps to convert ALG to finite automata 1. Starting state is named with starting symbol of given grammar 2, Final state is named with e 3. LetG =(V, TP, $) be the given ALG. Then we can const (Si). (fe) an equivalent e-NFA as M = (Q,T, 6, Gq Theory with soived Examples (3 mpAbe Ersy isnewcmadeediyinGaMBDE ERSS PERS 2075) Theory of Computation PEEEEERT) «onstuct an cauivaont tints automata forthe folowing ALG so1slo Solution: NFA can be constructed for the above given grammar is as following: @) PO FEEIEIER) Construct an equivalent tne automata for the flowing RLG S—as|bsla NFA: Solution: NFA can be constructed for the above given grammar is as follow na —-{s) an FEE) consti an equivalent fte automata othe owing ALG SbA A-aalbAlalb Solution: NFA can be constructed for the above given grammar is as following: NFA: — (5) Construct an equivalent finite automata for the following RLG. S—aAlaB A—adlbBlb 8+ bBlb LAG G3 mAbE ERsy Theory with Solved Examples is3| Computer Science & IT kei 2os) GIMAOE Easy Solution: NFA can be constructed for the above given grammar is as following: 2.7.6 Conversion from Finite Automata to RLG Steps to convert finite automata to a RLG: 1. Initial state acts as @ start symbol 2. IFA, a) = B, then * AaB is a production i B is not final state * A aBlais a production if B is final state. 3. initial and final states are same then make them separate, Emotes | Find the equivalent RLG for the following finite automata. ~ Oe sO) xb Solution: ‘The equivalent right inear grammar is Ao aBlb8 Boaclbclalb EEE] | Find the equivalent RLG for the following finite automata, Or i Solution: ‘The equivalent right inear grammar is a aBlbe B28 |bBle Emiineeente) Find the equivalent RLG for the following finite automata, Solution: ‘The equivalent right linear grammar is: AsaBlba 8 bAlac C-raClbAle (25 Theory with Solved Examples (9 MADE EAs WaaGUMADE EASY EET Theory of Computation | PEEEIIER) Fir tn ccuivatnt LG for tho following fn automata. Solution: AaadlbAle FREI) ir te equivalent forthe follwing fn automata A-aB BbBlac CHaClbBle Dis useless symbol, so no need to write the productions of D. Find the equivalent LG forthe following fite automata 2 OO AsbalaBle Baalbe Solutior 2.7.7 Equivalence between Regular Expressions and Regular Grammars So] Regier Expression | atiUnear Grammar | Right Linear Grammar | Le Sale Sasle 2 | lerar S-salsble |S asibsle a | west 5 Salsolalo Sasloslalo 4 | aerey S—Salsbla SoaA AxaAlbale 5 | (esbro so AnAalaale Sasiosio 6 | ae S—ralbble 8 aAlesle onsale Amaalsle BblAle Bale 7 | @or S—sable S—absle 8 | ateror SAD Soak l [AS aalable Ax aAlbale PANAAE Ggmabe ensy Theory with Solved Examples