Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata

Size: px
Start display at page:

Download "Descriptional Complexity of Non-Unary Self-Verifying Symmetric Difference Automata"

Transcription

1 Desriptionl Complexity of Non-Unry Self-Verifying Symmetri Differene Automt Lurette Mris 1,2 nd Lynette vn Zijl 1 1 Deprtment of Computer Siene, Stellenosh University, South Afri 2 Merk Institute, CSIR, South Afri Astrt. We show tht, for every n 2, there is regulr lnguge L n epted y non-unry self-verifying symmetri differene utomton with n sttes, suh tht its equivlent miniml deterministi finite utomton hs 2 n 1 sttes. 1 Introdution In [1], we extended the notion of self-verifition (SV) to symmetri differene nondeterministi finite utomt (XNFA). We estlished n upper ound of 2 n 1 on the stte omplexity of SV-XNFA in the se of unry lphet, nd showed tht the ound is not tight. A lower ound of 2 n 1 1 ws lso estlished for the unry se. We showed this to e tight ound in [2], where we lso introdued more generl notion of eptne for SV-XNFA. In this pper, we onsider non-unry lphets, nd we give n upper ound of 2 n 1 nd lower ound of 2 n 1. 2 Preliminries An NFA N is five-tuple N = (Q, Σ, δ, Q 0, F ), where Q is finite set of sttes, Σ is finite lphet, δ : Q Σ 2 Q is trnsition funtion (where 2 Q indites the power set of Q), Q 0 Q is set of initil sttes, nd F Q is the set of finl, or eptne, sttes. The trnsition funtion δ n e extended to strings in the Kleene losure Σ of the lphet: δ (q, w 0 w 1... w k ) = δ(δ(... δ(q, w 0 ), w 1 ),..., w k ). For onveniene, we write δ(q, w) to men δ (q, w). An NFA N is sid to ept string w Σ if q 0 Q 0 nd δ(q 0, w) F, nd the set of ll strings (lso lled words) epted y N is the lnguge L(N) epted y N. Any NFA hs n equivlent DFA whih epts the sme lnguge. The DFA equivlent to given NFA is found y performing the suset onstrution [3]. In essene, the suset onstrution keeps trk of ll the sttes tht the NFA my e in t the sme time, nd forms the sttes of the equivlent DFA y grouping of the sttes of the DFA. In short, δ(a, σ) = δ(q, σ) q A

2 2 for ny A Q nd σ Σ. 2.1 Symmetri differene utomt (XNFA) A symmetri differene NFA (XNFA) is defined extly s n NFA, exept tht the DFA equivlent to the XNFA is found y tking the symmetri differene (in the set theoreti sense) in the suset onstrution. Tht is, for ny two sets A nd B, the symmetri differene is given y (A, B) = (A B) \ (A B). The suset onstrution is then pplied s δ(a, σ) = q A δ(q, σ) for ny A Q nd σ Σ. For lrity, the DFA equivlent to n XNFA N is termed n XDFA nd denoted with N D (with orresponding Q D, δ D, Q 0D nd F D ). It is ustomry to require tht n XDFA finl stte onsist of n odd numer of finl XNFA sttes, s n nlogy to the symmetri differene set opertion [4] this is known s prity eptne. Given prity eptne, XNFA hve een shown to e equivlent to weighted utomt over the finite field of two elements, or GF(2) [4,5]. For n XNFA N = (Q, Σ, δ, Q 0, F ), the trnsitions for eh lphet symol σ n e represented s mtrix over GF(2). Eh row represents mpping from stte q Q to set of sttes P 2 Q. P is written s vetor with one in position i if q i P, nd zero in position i if q i P. Hene, the trnsition tle is represented s mtrix M σ of zeroes nd ones (see Exmple 1). This is known s the hrteristi or trnsition mtrix for σ of the XNFA. Initil nd finl sttes re similrly represented y vetors, nd pproprite vetor nd mtrix multiplitions over GF(2) represent the ehviour of the XNFA 3. For instne, in the unry se we would hve single mtrix M tht desries the trnsitions on for some XNFA with n sttes. We enode the initil sttes Q 0 s vetor of length n over GF(2), nmely v(q 0 ) = [q 00 q q 0n 1 ], where q 0i = 1 if q i Q 0 nd 0 otherwise. Similrly, we enode the finl sttes s length n vetor v(f ) = [q F0 q F1... q Fn 1 ]. Then v(q 0 )M is vetor tht enodes the sttes rehed fter reding the symol extly one, nd v(q 0 )M k enodes the sttes rehed fter reding the symol k times. The weight of word w k of length k is given y (w k ) = v(q 0 )M k v(f ) T. We n sy tht M represents the word, nd M k = M k represents the word k. In the inry se, we would hve two mtries, M for trnsitions on nd M for trnsitions on. Reding n orresponds to multiplying y M, while reding orresponds to multiplying y M. Let M w e the result of the 3 In GF(2), = 0.

3 3 pproprite multiplitions of M nd M representing some w {, }, then the weight of w is given y (w) = v(q 0 )M w v(f ) T. We now show tht, in the unry se, so-lled hnge of sis is possile, where for some n n trnsition mtrix M of n XNFA nd ny non-singulr n n mtrix A, M = A 1 M A is the trnsition mtrix of n equivlent XNFA with v(q 0) = v(q 0 )A nd v(f ) T = A 1 v(f ) T. For ny word w k of length k, we hve the following: (w k ) = v(q 0)M k v(f ) T = v(q 0 )A(A 1 M A) k A 1 v(f ) T = v(q 0 )M k v(f ) T = (w k ). This lso pplies to the inry se. For some XNFA N, let M w = k i=1 M σ i represent word w = σ 1 σ 2...σ k, where M σi = M if σ i =, nd similrly for. Now, let N e n XNFA whose trnsition mtries re M = A 1 M A nd M = A 1 M A for some non-singulr A. Then w is represented y M w = k i=1 M σ i = M σ 1 M σ 2...M σ k = (A 1 M σ1 A)(A 1 M σ2 A)...(A 1 M σk A) = A 1 M σ1 M σ2...m σk A = A 1 M w A. And so the weight of ny word w k on N is (w) = v(q 0)M wv(f ) T = v(q 0 )A(A 1 M w A)A 1 v(f ) T = v(q 0 )M w v(f ) T = (w). Note tht the ove disussion does not rely on the ft tht there re only two lphet symols, nd so pplies in generl to the n-ry se s well. 2.2 Self-verifying utomt (SV-NFA) Self-verifying NFA (SV-NFA) [6 8] re utomt with two kinds of finl sttes, nmely ept sttes nd rejet sttes, s well s neutrl non-finl sttes. It is required tht for ny word, one or more of the pths for tht word reh single kind of finl stte, i.e. either ept sttes or rejet sttes re rehed, ut not oth. Consequently, self-verifying utomt rejet words expliitly if they reh rejet stte, in ontrst to NFA, where rejetion is the result of filure to reh n ept stte.

4 4 Definition 1. A self-verifying nondeterministi finite utomton (SV-NFA) is 6-tuple N = (Q, Σ, δ, Q 0, F, F r ), where Q, Σ, δ nd Q 0 re defined s for stndrd NFA. F Q nd F r Q re the sets of ept nd rejet sttes, respetively. The remining sttes, tht is, the sttes elonging to Q \ (F F r ), re lled neutrl sttes. For eh input string w in Σ, it is required tht there exists t lest one pth ending in either n ept or rejet stte; tht is, δ(q 0, w) (F F r ) for ny q 0 Q 0, nd there re no strings w suh tht oth δ(q 0, w) F nd δ(q 1, w) F r re nonempty, for ny q 0, q 1 Q 0. Sine ny SV-NFA either epts or rejets ny string w Σ expliitly, its equivlent DFA must do so too. The pth for eh w in DFA is unique, so eh stte in the DFA is n ept or rejet stte. Hene, for ny DFA stte d, there is some SV-NFA stte q i d suh tht q i F (nd hene d FD ) or q i F r (nd hene d FD r ). Sine eh stte in the DFA is suset of sttes of the SV-NFA, ept nd rejet sttes nnot our together in DFA stte. Tht is, if d is DFA stte, then for ny p, q d, if p F then q / F r nd vie vers. 2.3 Self-verifying symmetri differene utomt (SV-XNFA) In [1], self-verifying symmetri differene utomt (SV-XNFA) were defined s omintion of the notions of symmetri differene utomt nd self-verifying utomt, ut only the unry se ws exmined. We now restte the definition of SV-XNFA in order to present results on lrger lphets in Setion 4. Note, however, tht the definition is slightly mended: in [1], the impliit ssumption ws mde tht no SV-XNFA stte ould e oth n ept stte nd rejet stte. This ssumption is explored in detil for the unry se in [2], ut for our urrent purposes it suffies to sy tht suh requirement removes the equivlene etween XNFA nd weighted utomt over GF(2), whih is essentil for ertin opertions on XNFA, suh s minimistion [5]. This implies tht prity eptne pplies to SV-XNFA, where the ondition for self-verifition (SVondition) is tht for ny word, n odd numer of pths end in either ept sttes or rejet sttes, ut not oth. In terms of the equivlent XDFA, this is equivlent to requiring tht ny XDFA stte ontin either n odd numer of ept sttes or n odd numer of rejets sttes, ut not oth. If n XNFA stte is oth n ept stte nd rejet stte, it ontriutes to oth ounts. Definition 2. A self-verifying symmetri differene finite utomton (SV-XNFA) is 6-tuple N = (Q, Σ, δ, Q 0, F, F r ), where Q, Σ, δ nd Q 0 re defined s for XNFA, nd F nd F r re defined s for SV-NFA, exept tht F F r need not e empty. Tht is, eh stte in the SV-XDFA equivlent to N must ontin n odd numer of sttes from either F or F r, ut not oth, nd some SV-XNFA sttes my elong to oth F nd F r. The SV-ondition for XNFA implies tht if stte in the SV-XDFA of n SV- XNFA N ontins n odd numer of sttes from F, it my lso ontin n

5 5 even numer of sttes from F r, nd hene elong to FD, nd vie vers. An SV-XDFA stte my ontin ny numer of neutrl sttes from N. The hoie of F nd F r for given SV-XNFA N is lled n SV-ssignment of N. An SV-ssignment where either F or F r is empty, is lled trivil SVssignment. Otherwise, if oth F nd F r re nonempty, the SV-ssignment is non-trivil. 3 XNFA nd liner feedk shift registers In [9] it is shown tht unry XNFA re equivlent to liner feedk shift registers (LFSRs). Speifilly, mtrix M with hrteristi polynomil (X) is ssoited with ertin yle struture of sets of XNFA sttes (or of XDFA sttes), nd the hoie of Q 0 determines whih yle represents the ehviour of speifi unry XNFA. The yle struture is indued y (X), so ny mtrix tht hs (X) s its hrteristi polynomil hs the sme yle struture, lthough the sttes ourring in the yles differ ording to eh speifi mtrix. For the n-ry se, the trnsition mtrix for eh symol is ssoited with its own yle struture, nd the hoie of Q 0 determines whih yle is relised in the n-ry XNFA for eh symol. There re 2 n 1 possile hoies for Q 0 (we exlude the empty set). Evidently, the yles ssoited with eh symol might overlp, nd so the struture of the n-ry XNFA would not e yli itself, lthough the trnsitions for eh symol would exhiit yli ehviour. Speifilly, for n n-ry XNFA N nd some symol σ Σ, we refer to the yle struture of N on σ s the yle struture resulting from onsidering only trnsitions on σ. Our min results will e derived from exmining the yle struture indued y eh symol of the lphet of the utomton, s well s the wys in whih the yles overlp. For ny (X) = X n + n 1 X n X + 0 there is ompnion mtrix M of the form given elow, suh tht (X) = det(xm I), where I is the identity mtrix. We sy tht M is in nonil form. M = n 2 n 1 In the next lemm, it will e onvenient to represent XDFA sttes d s Q s s = s n 1, s n 2,..., s 1, s 0, where s i = 1 if q i d s nd 0 otherwise. The lemm is dpted from [10] on the sis of the equivlene etween unry XNFA nd LFSRs. Lemm 1. Let M σ e trnsition mtrix representing trnsitions on σ for some XNFA N, with hrteristi polynomil σ (X), nd let M σ e in nonil form. Let f e ijetion of the sttes of the equivlent XDFA N D onto polynomils of degree n 1, suh tht f mps the stte s = s n 1, s n 2,..., s 1, s 0 into the

6 6 polynomil f(s) = s n 1 X n 1 + s n 2 X n s 1 X + s 0. Then f mps the stte M σ s into the polynomil Xf(s) mod σ (X). For ny (X) over GF(2) with degree n, the polynomil lger modulo (X) is representtion of GF(2 n ), the finite field of 2 n elements. Lemm 1 provides mpping etween these elements nd the sttes of XDFA. Furthermore, the XDFA stte rrived t fter trnsition from stte s on σ orresponds to the polynomil whih results from multipying f(s) y X within this representtion of GF(2 n ). The non-zero elements of GF(2 n ) form yli multiplitive group [10]. Exmple 1. Let N e inry XNFA (shown in Fig. 1), where M is the ompnion mtrix of (X) = X 4 + X 2 + X + 1 nd M is the ompnion mtrix of (X) = X 4 + X 3 + X + 1. M nd M re given in Fig.?? nd Fig.??, respetively. The resulting XDFA is shown in Fig. 2, while some exmples ompring stte trnsitions nd polynomil multiplition re shown in Tle 1. Note tht, for now, the fous is on the yli ehviour of the equivlent XDFA, nd so we do not refer to ny finl sttes M = M = , q 1, strt q 0, strt q 0, q 0,, q 1,, q 0, q 1,, Fig. 1. Exmple 1: N q 1,,,, q 0, q 1, Fig. 2. Exmple 1: N D

7 7 Tle 1. Trnsitions on δ orrespond to multiplition y X δ(σ, s) Xf(s) mod σ(x) δ({q 0}, ) = {q 1} X(1) = X δ({}, ) = {q 0, q 1, } X(X 3 ) = X 4 mod (X) = X 3 + X δ({q 0,, }, ) = {q 0,, } X(X 3 + X 2 + 1) = X 4 + X 3 + X mod (X) = X 3 + X δ({q 1}, ) = {} X(X) = X 2 δ({q 0, q 1, }, ) = {q 0,, } X(X 3 + X + 1) = X 4 + X 3 + X mod (X) = X 3 + X 2 + X δ({q 1,, }, ) = {q 0, q 1, } X(X 3 + X 2 + X) = X 4 + X 3 + X mod (X) = X 2 + X Non-unry SV-XNFA The upper ound on stte omplexity is simply 2 n 1, sine this is the numer of non-empty susets for ny set of n XNFA sttes. We now work towrds estlishing lower ound on stte omplexity. First, we restte the following lemm from [1] for the unry se. Lemm 2. Let (X) = (X + 1)φ(X) e polynomil of degree n with nonsingulr ompnion mtrix M, nd let N e n XNFA with trnsition mtrix M nd Q 0 = {q 0 }. Then the equivlent XDFA N D hs the following properties: 1. Q D > n 2. d is odd for d Q D 3. [q 0 ], [q 1 ],..., [q n 1 ] Q D d is the numer of XNFA sttes in the XDFA stte d Q, or the numer of one s in the representtion of d s s n 1, s n 2,..., s 1, s 0 where s i = 1 if q i d nd 0 otherwise. Theorem 1. Let M σ1, M σ2,..., M σr e the ompnion mtries of r polynomils σ1 (X) = (X + 1)φ σ1 (X), σ2 (X) = (X + 1)φ σ2 (X),..., σr (X) = (X + 1)φ σr (X), respetively, nd let M σ1, M σ2,..., M σr e the trnsition mtries of some n-ry XNFA N with Σ = {σ 1, σ 2,..., σ r } nd Q 0 = {q 0 }. Then the numer of sttes in the equivlent XDFA N D does not exeed 2 n 1. Furthermore, N hs n SV-ssignment. Proof. See Appendix A. The following lemm provides further informtion on the yle struture indued y polynomils with X + 1 s ftor. Lemm 3. Let σ (X) = (X + 1)φ(X). Then, in the ompnion mtrix M σ of σ (X), whih is the trnsition mtrix on some symol σ for n XNFA, the stte mpped to φ(x) s desried in Lemm 1, i.e. d φ, is the stte ontined in the yle of length one, when onsidering only trnsitions on σ.

8 8 Proof. Consider the following: (X + 1)φ(X) = σ (X) Xφ(X) + φ(x) = σ (X) Xφ(X) = φ(x) + σ (X) Therefore, Xφ(X) = φ(x) in the representtion of GF (2 n ) s polynomils over GF(2) modulo σ (X). By Lemm 1, this orresponds to δ(d φ, σ) = d φ. We now present witness lnguge for ny n to show tht 2 n 1 is lower ound on the stte omplexity of SV-XNFA with non-unry lphets. Lemm 4. Let φ(x) = X n 1 + φ n 2 X n φ 1 X + φ 0 e ny primitive polynomil of degree n 1. Let N e inry XNFA, nd let the trnsition mtrix on e the ompnion mtrix of (X) = (X +1)φ(X) nd the trnsition mtrix on e the ompnion mtrix of (X) = X n +φ(x). Then the equivlent XDFA of the XNFA with Q 0 = {q 0 } ontins extly 2 n 1 odd-sized sttes. Proof. We write (X) nd (X) in the following wy: (X) = X n + n 1 X n X + 0 (X) = X n + φ n 1 X n 1 + φ n 2 X n φ 1 X + φ 0 Sine φ(x) is primitive, it hs no roots in GF(2), inluding 1, so it must hve n odd numer of non-zero terms. Therefore, y Lemm 1, d φ is odd. Furthermore, (X) hs n even numer of non-zero terms, nd so hs 1 s root. Consequently, (X) hs X + 1 s ftor. The trnsition mtries M nd M re given elow. Let Q 0 = {q 0 }. Then y Theorem 6 of [1], the yle struture on is equivlent to n XDFA yle with 2 n 1 1 sttes, ll of whih, y Lemm 2, hve odd size. Also, y Lemm 3, d φ is not ontined in this yle. This mens tht on, every odd-sized stte in the XDFA is rehed exept for d φ. Now, from M it follows diretly tht M = n 2 n M = φ 0 φ 1... φ n 2 φ n 1 δ({q n 1 }, ) = d φ. Furthermore, sine X + 1 is ftor of, every trnsition from n odd-sized stte on is to n odd-sized stte. Consequently, the inry XNFA N is equivlent to n XDFA tht rehes ll 2 n 1 odd-sized sttes nd none other.

9 9 Theorem 2. For ny n 2, there is lnguge L n so tht some n-stte inry SV-XNFA epts L n nd the miniml SV-XDFA tht epts L n hs 2 n 1 sttes. Proof. Let (X) = (X +1)φ(X) nd = X n +φ(x), where φ(x) is primitive polynomil nd let (X) nd (X) hve degree n. We onstrut n SV-XNFA N with n sttes whose equivlent N D hs 2 n 1 sttes s in Lemm 4, nd let F = {q 0 } nd F r = Q \ F. Let L 1 n = (2n 1 1)i+j for i 0 nd j J, where J is some set of integers, represents suset of the lnguge epted y N tht onsists only of strings ontining. Now, from the trnsition mtrix of N it follows tht 0, n J, while 1, 2,..., n 1 / J, sine q 0 δ(q 0, n ) nd q 0 / δ(q 0, m ) for m < n. If there is n N D with fewer thn 2n 1 1 sttes tht epts L 1 n, then there must e some d j {q 0 } Q D suh tht q 0 d j, q 0 δ(d j, n ) nd there is no m < n so tht q 0 δ(d j, m ). Let d k e ny stte in N D suh tht d k {q 0 }. Let mx(d k ) e the lrgest susript of ny SV-XNFA stte in d k. Then mx(d k ) > 0. Let m = n mx(d k ), so m < n. Then, from the trnsition mtrix of N, it follows tht q 0 δ(d k, m ). Tht is, for ny d k there is n m < n so tht q 0 δ(d k, m ). Therefore, there is no N D with fewer thn 2n 1 1 sttes tht epts L 1 n. Now, let L 2 n = n, whih is lso suset of the lnguge epted y N. In order to ept this lnguge, fter reding n, stte must hve een rehed wherefter every trnsition on must result in n ept stte, i.e. n XDFA stte ontining q 0. But there is only one suh stte, nd tht is d φ, sine δ(d φ, ) = d φ, whih is exluded from the yle needed to ept L 1 n. Therefore, ll 2 n 1 odd-sized sttes re neessry to ept L 1 L 2. Let L n e the lnguge epted y N, then sine L 1 n L 2 n L n, t lest 2 n 1 sttes re neessry to ept L n. Theorem 3. For ny n 2, there is lnguge L n so tht some n-stte n- ry SV-XNFA epts L n nd the miniml SV-XDFA tht epts L n hs 2 n 1 sttes. Proof. See Appendix A. The following theorem shows tht ny given SV-XNFA n e used to otin nother one vi so-lled hnge of sis. Theorem 4. Given ny SV-XNFA N = (Q, Σ, δ, Q 0, F, F r ) with n sttes nd trnsition mtries M σ1, M σ2,..., M σr, nd ny non-singulr n n mtrix A, we enode Q 0 s vetor v(q 0 ) of length n over GF(2) nd F nd F r s vetors v(f ) nd v(f r ) respetively. Then there is n SV-XNFA N = (Q, Σ, δ, Q 0, F, F r ) where M σ i = A 1 M σi A for 0 i r, v(q 0) = v(q 0 )A, v(f ) T = A 1 v(f ) T nd v(f r ) T = A 1 v(f r ) T, nd N epts the sme lnguge s N. Proof. In the disussion in Setion 2.1 we showed tht for XNFA, the hnge of sis desried on n XNFA N tht results in N, (w) = (w). We extend

10 10 this to SV-XNFA y defining two new funtions. Rell tht M w represents the sequene of mtrix multiplitions for some w of length k, nd tht M w = A 1 M w A. Then, let ept(w) = v(q 0 )M w v(f ) T rejet(w) = v(q 0 )M w v(f r ) T. The SV-ondition is tht ept(w) rejet(w) for ny w Σ. Similr to (w), we hve nd ept (w) = v(q 0)M wv(f ) T = v(q 0 )A(A 1 M w A)A 1 v(f ) = v(q 0 )M w v(f ) = ept(w) rejet (w) = v(q 0)M wv(f r ) T = v(q 0 )A(A 1 M w A)A 1 v(f r ) = v(q 0 )M w v(f r ) = rejet(w) Clerly, the SV-ondition is met y ept nd rejet, nd so N is n SV- XNFA tht epts the sme lnguge s N. The numer of non-singulr n n mtries over GF(2) (inluding the identity mtrix) is GL(n, Z 2 ) = n 1 k=0 (2n 2 k ), nd so for ny SV-XNFA nother GL(n, Z 2 ) 1 equivlent SV-XNFA n e found. Exmple 2. Let N e n SV-XNFA with lphet Σ = {,, }, nd the following trnsition mtries: M is the ompnion mtrix of (X) = X 4 +X 3 +X 2 +1, M is the ompnion mtrix of X 4 +X 3 +X +1, nd M is the ompnion mtrix of (X) = X 4 + X 2 + X + 1. Let Q 0 = {q 0 }, F = {q 0, } nd F r = {q 1, }. Fig. 3 shows N nd the equivlent XDFA N D is given in Fig. 5, where doule edge indites n ept stte nd thik edge indites rejet stte. Consider the following mtrix A: A = We use A to mke hnge of sis from N to N. Let N e n XNFA with Σ = {,, }, where M = A 1 M A, M = A 1 M A nd M = A 1 M A. Furthermore, let v(q 0) = v(q 0 )A, i.e. Q 0 = {q 1,, }. Finlly, let v(f ) T = A 1 v(f ) T nd v(f r ) T = A 1 v(f r ) T, i.e. F = {q 0, } nd F r = {, }. Fig. 4, shows N, with doule edge inditing n ept stte, thik edge

11 11 inditing rejet stte nd thik doule edge inditing stte tht is oth n ept stte nd rejet stte. Fig. 6 gives the equivlent XDFA N D. It is worth noting tht, lthough N hs different struture thn N, N D hs the sme struture s N D, nd epts the sme lnguge. Also, note tht in N D, the stte {q 0, q 1, } is rejet stte, euse it ontins n even numer of ept sttes, nmely q 0 nd, ut n odd numer of rejet sttes, nmely.,, q 1,,, q 1 strt q 0,,,,, strt q 0,,,,,,,,, Fig. 3. Exmple 2: N,, Fig. 4. Exmple 2: N 5 Conlusion We hve given n upper ound of 2 n 1 on the stte omplexity of SV-XNFA with lphets lrger thn one, nd lower ound of 2 n 1. We hve lso shown tht, given ny SV-XNFA with n sttes, it is possile to find nother GL(n, Z 2 ) 1 equivlent SV-XNFA vi hnge of sis. Referenes 1. Mris, L., vn Zijl, L.: Unry Self-verifying Symmetri Differene Automt. In: Proeedings of Desriptionl Complexity of Forml Systems: 18th IFIP WG 1.2 Interntionl Conferene, DCFS 2016, Buhrest, Romni, July 5-8, Springer Interntionl Pulishing (2016) Mris, L., Vn Zijl, L.: Stte omplexity of Unry SV-XNFA with Different Aeptne Conditions. Sumitted for pulition 3. Hoproft, J.E., Ullmn, J.D.: Introdution to Automt Theory, Lnguges, nd Computtion. 1st edn. Addison-Wesley Longmn Pulishing Co., In., Boston, MA, USA (1990)

12 12 strt q 0,, strt q 1,,,, q 0, q 1, q 1 q 0 q 0,,,,, q 1,,,, q 0, q 1,,,,,,,, q 0, q 1, q 1, q 0,, q 0, q 1, Fig. 5. Exmple 2: N D Fig. 6. Exmple 2: N D 4. Vuillemin, J., Gm, N.: Compt Norml Form for Regulr Lnguges s Xor Automt. In: Proeedings of the 14th Interntionl Conferene on the Implementtion nd Applition of Automt (CIAA 2009), Sydney, Austrli, July 14-17, Springer, Berlin, Heidelerg (2009) Vn der Merwe, B., Tmm, H., Vn Zijl, L.: Miniml DFA for Symmetri Differene NFA. In: Proeedings of the 14th Interntionl Conferene on the Desriptionl Complexity of Forml Systems (DCFS 2012), Brg, Portugl, July 23-25, Springer, Berlin, Heidelerg (2012) Assent, I., Seiert, S.: An upper ound for trnsforming self-verifying utomt into deterministi ones. RAIRO-Theoretil Informtis nd Applitions- Informtique Théorique et Applitions 41(3) (2007) Hromkovič, J., Shnitger, G.: On the Power of Ls Vegs II. Two-Wy Finite Automt. In: Proeedings of Automt, Lnguges nd Progrmming: 26th Interntionl Colloquium, ICALP 99 Prgue, Czeh Repuli, July 11 15, Springer, Berlin, Heidelerg (1999) Jirásková, G., Pighizzini, G.: Optiml simultion of self-verifying utomt y deterministi utomt. Informtion nd Computtion 209(3) (2011) Speil Issue: 3rd Interntionl Conferene on Lnguge nd Automt Theory nd Applitions (LATA 2009). 9. Vn Zijl, L., Hrper, J.P., Olivier, F.: The MERLin Environment Applied to -NFAs. In: Implementtion nd Applition of Automt: 5th Interntionl Conferene, CIAA 2000 London, Ontrio, Cnd, July 24 25, 2000 Revised Ppers. Springer, Berlin, Heidelerg (2001)

13 Stone, H.S.: Disrete Mthemtil Strutures nd their Applitions. Siene Reserh Assoites Chigo (1973) A Appendix Theorem 1. Let M σ1, M σ2,..., M σr e the ompnion mtries of r polynomils σ1 (X) = (X+1)φ σ1 (X), σ2 (X) = (X+1)φ σ2 (X),..., σr (X) = (X+1)φ σr (X), respetively, nd let M σ1, M σ2,..., M σr e the trnsition mtries of some n- ry XNFA N with Σ = {σ 1, σ 2,..., σ r } nd Q 0 = {q 0 }. Then the numer of sttes in the equivlent XDFA N D does not exeed 2 n 1. Furthermore, N hs n SV-ssignment. Proof. By Lemm 2, d is odd for d Q D in the unry se. Tht is, for ny symol with trnsition mtrix whose polynomil hs X + 1 s ftor, trnsition from n odd-sized XDFA stte is to nother odd-sized XDFA stte. Sine Q 0 = {q 0 } nd {q 0 } is odd, nd σ1 (X), σ2 (X),... σr (X), hve X + 1 s ftor, only odd-sized sttes re rehle on ny trnsition. The numer of XDFA sttes d suh tht d is odd is 2 n /2 = 2 n 1, nd so N D n hve t most 2 n 1 sttes. Sine every XDFA stte ontins n odd numer of XNFA sttes, ny hoie of F nd F r suh tht F F r = Q nd F F r = is n SV-ssignment. Theorem 3. For ny n 2, there is lnguge L n so tht some n-stte n- ry SV-XNFA epts L n nd the miniml SV-XDFA tht epts L n hs 2 n 1 sttes. Proof. In the proof of Theorem 2, lnguge L n for inry SV-XNFA is presented tht rehes 2 n 1 sttes. We onvert the inry SV-XNFA N into n n-ry SV-XNFA N in the following wy: for every σ Σ \ {, }, let M σ e the ompnion mtrix of some σ (X) = (X + 1)φ σ (X) with degree n. Then only odd-sized sttes re rehed on ny input. Let L n e the lnguge epted y N. L n requires 2 n 1 sttes, nd sine L n L n, so does L n.

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

= state, a = reading and q j

= state, a = reading and q j 4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

Regular languages refresher

Regular languages refresher Regulr lnguges refresher 1 Regulr lnguges refresher Forml lnguges Alphet = finite set of letters Word = sequene of letter Lnguge = set of words Regulr lnguges defined equivlently y Regulr expressions Finite-stte

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

A Study on the Properties of Rational Triangles

A Study on the Properties of Rational Triangles Interntionl Journl of Mthemtis Reserh. ISSN 0976-5840 Volume 6, Numer (04), pp. 8-9 Interntionl Reserh Pulition House http://www.irphouse.om Study on the Properties of Rtionl Tringles M. Q. lm, M.R. Hssn

More information

State Complexity of Union and Intersection of Binary Suffix-Free Languages

State Complexity of Union and Intersection of Binary Suffix-Free Languages Stte Complexity of Union nd Intersetion of Binry Suffix-Free Lnguges Glin Jirásková nd Pvol Olejár Slovk Ademy of Sienes nd Šfárik University, Košie 0000 1111 0000 1111 Glin Jirásková nd Pvol Olejár Binry

More information

Prefix-Free Regular-Expression Matching

Prefix-Free Regular-Expression Matching Prefix-Free Regulr-Expression Mthing Yo-Su Hn, Yjun Wng nd Derik Wood Deprtment of Computer Siene HKUST Prefix-Free Regulr-Expression Mthing p.1/15 Pttern Mthing Given pttern P nd text T, find ll sustrings

More information

Running an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/

Running an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/ Running n NFA & the suset lgorithm (NFA->DFA) CS 350 Fll 2018 gilry.org/lsses/fll2018/s350/ 1 NFAs operte y simultneously exploring ll pths nd epting if ny pth termintes t n ept stte.!2 Try n exmple: L

More information

NFA and regex. the Boolean algebra of languages. non-deterministic machines. regular expressions

NFA and regex. the Boolean algebra of languages. non-deterministic machines. regular expressions NFA nd regex l the Boolen lger of lnguges non-deterministi mhines regulr expressions Informtis The intersetion of two regulr lnguges is regulr Run oth mhines in prllel? Build one mhine tht simultes two

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

More information

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS #A42 INTEGERS 11 (2011 ON THE CONDITIONED BINOMIAL COEFFICIENTS Liqun To Shool of Mthemtil Sienes, Luoyng Norml University, Luoyng, Chin lqto@lynuedun Reeived: 12/24/10, Revised: 5/11/11, Aepted: 5/16/11,

More information

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd

More information

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Siene Deprtment Compiler Design Spring 7 Lexil Anlysis Smple Exerises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sienes Institute 47 Admirlty Wy, Suite

More information

CONTROLLABILITY and observability are the central

CONTROLLABILITY and observability are the central 1 Complexity of Infiml Oservle Superlnguges Tomáš Msopust Astrt The infiml prefix-losed, ontrollle nd oservle superlnguge plys n essentil role in the reltionship etween ontrollility, oservility nd o-oservility

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

Worked out examples Finite Automata

Worked out examples Finite Automata Worked out exmples Finite Automt Exmple Design Finite Stte Automton which reds inry string nd ccepts only those tht end with. Since we re in the topic of Non Deterministic Finite Automt (NFA), we will

More information

TOPIC: LINEAR ALGEBRA MATRICES

TOPIC: LINEAR ALGEBRA MATRICES Interntionl Blurete LECTUE NOTES for FUTHE MATHEMATICS Dr TOPIC: LINEA ALGEBA MATICES. DEFINITION OF A MATIX MATIX OPEATIONS.. THE DETEMINANT deta THE INVESE A -... SYSTEMS OF LINEA EQUATIONS. 8. THE AUGMENTED

More information

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages 5//6 Grmmr Automt nd Lnguges Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Regulr Lnguges Context Free Lnguges Context Sensitive

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras Glol Journl of Mthemtil Sienes: Theory nd Prtil. ISSN 974-32 Volume 9, Numer 3 (27), pp. 387-397 Interntionl Reserh Pulition House http://www.irphouse.om On Implitive nd Strong Implitive Filters of Lttie

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

Lecture 09: Myhill-Nerode Theorem

Lecture 09: Myhill-Nerode Theorem CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018 CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic Chpter 3 Vetor Spes In Chpter 2, we sw tht the set of imges possessed numer of onvenient properties. It turns out tht ny set tht possesses similr onvenient properties n e nlyzed in similr wy. In liner

More information

1 From NFA to regular expression

1 From NFA to regular expression Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work

More information

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering Petri Nets Ree Alreht Seminr: Automt Theory Chir of Softwre Engeneering Overview 1. Motivtion: Why not just using finite utomt for everything? Wht re Petri Nets nd when do we use them? 2. Introdution:

More information

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Converting Regular Expressions to Discrete Finite Automata: A Tutorial Converting Regulr Expressions to Discrete Finite Automt: A Tutoril Dvid Christinsen 2013-01-03 This is tutoril on how to convert regulr expressions to nondeterministic finite utomt (NFA) nd how to convert

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon LIP Lortoire de l Informtique du Prllélisme Eole Normle Supérieure de Lyon Institut IMAG Unité de reherhe ssoiée u CNRS n 1398 One-wy Cellulr Automt on Cyley Grphs Zsuzsnn Rok Mrs 1993 Reserh Report N

More information

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α Disrete Strutures, Test 2 Mondy, Mrh 28, 2016 SOLUTIONS, VERSION α α 1. (18 pts) Short nswer. Put your nswer in the ox. No prtil redit. () Consider the reltion R on {,,, d with mtrix digrph of R.. Drw

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Some Theory of Computation Exercises Week 1

Some Theory of Computation Exercises Week 1 Some Theory of Computtion Exercises Week 1 Section 1 Deterministic Finite Automt Question 1.3 d d d d u q 1 q 2 q 3 q 4 q 5 d u u u u Question 1.4 Prt c - {w w hs even s nd one or two s} First we sk whether

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

More information

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont. NFA DFA Exmple 3 CMSC 330: Orgniztion of Progrmming Lnguges NFA {B,D,E {A,E {C,D {E Finite Automt, con't. R = { {A,E, {B,D,E, {C,D, {E 2 Equivlence of DFAs nd NFAs Any string from {A to either {D or {CD

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

Lecture Notes No. 10

Lecture Notes No. 10 2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite

More information

@#? Text Search ] { "!" Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata

@#? Text Search ] { ! Nondeterministic Finite Automata. Transformation NFA to DFA and Simulation of NFA. Text Search Using Automata g Text Serh @#? ~ Mrko Berezovský Rdek Mřík PAL 0 Nondeterministi Finite Automt n Trnsformtion NFA to DFA nd Simultion of NFA f Text Serh Using Automt A B R Power of Nondeterministi Approh u j Regulr Expression

More information

Let's start with an example:

Let's start with an example: Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More information

CSE 401 Compilers. Today s Agenda

CSE 401 Compilers. Today s Agenda CSE 401 Compilers Leture 3: Regulr Expressions & Snning, on?nued Mihel Ringenurg Tody s Agend Lst?me we reviewed lnguges nd grmmrs, nd riefly strted disussing regulr expressions. Tody I ll restrt the regulr

More information

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

Linear Algebra Introduction

Linear Algebra Introduction Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +

More information

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

More information

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51 Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices

More information

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

Transition systems (motivation)

Transition systems (motivation) Trnsition systems (motivtion) Course Modelling of Conurrent Systems ( Modellierung neenläufiger Systeme ) Winter Semester 2009/0 University of Duisurg-Essen Brr König Tehing ssistnt: Christoph Blume In

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tle of Contents: Week 1: Preliminries (set lger, reltions, functions) (red Chpters 1-4) Weeks

More information

Line Integrals and Entire Functions

Line Integrals and Entire Functions Line Integrls nd Entire Funtions Defining n Integrl for omplex Vlued Funtions In the following setions, our min gol is to show tht every entire funtion n be represented s n everywhere onvergent power series

More information

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version A Lower Bound for the Length of Prtil Trnsversl in Ltin Squre, Revised Version Pooy Htmi nd Peter W. Shor Deprtment of Mthemtil Sienes, Shrif University of Tehnology, P.O.Bo 11365-9415, Tehrn, Irn Deprtment

More information

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

The Word Problem in Quandles

The Word Problem in Quandles The Word Prolem in Qundles Benjmin Fish Advisor: Ren Levitt April 5, 2013 1 1 Introdution A word over n lger A is finite sequene of elements of A, prentheses, nd opertions of A defined reursively: Given

More information

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix tries Definition of tri mtri is regulr rry of numers enlosed inside rkets SCHOOL OF ENGINEERING & UIL ENVIRONEN Emple he following re ll mtries: ), ) 9, themtis ), d) tries Definition of tri Size of tri

More information

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-*

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-* Regulr Expressions (RE) Regulr Expressions (RE) Empty set F A RE denotes the empty set Opertion Nottion Lnguge UNIX Empty string A RE denotes the set {} Alterntion R +r L(r ) L(r ) r r Symol Alterntion

More information

Finite-State Automata: Recap

Finite-State Automata: Recap Finite-Stte Automt: Recp Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 09 August 2016 Outline 1 Introduction 2 Forml Definitions nd Nottion 3 Closure under

More information

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Science Deprtment Compiler Design Fll Lexicl Anlysis Smple Exercises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sciences Institute 4676 Admirlty Wy, Suite

More information

ANALYSIS AND MODELLING OF RAINFALL EVENTS

ANALYSIS AND MODELLING OF RAINFALL EVENTS Proeedings of the 14 th Interntionl Conferene on Environmentl Siene nd Tehnology Athens, Greee, 3-5 Septemer 215 ANALYSIS AND MODELLING OF RAINFALL EVENTS IOANNIDIS K., KARAGRIGORIOU A. nd LEKKAS D.F.

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

Lecture 1 - Introduction and Basic Facts about PDEs

Lecture 1 - Introduction and Basic Facts about PDEs * 18.15 - Introdution to PDEs, Fll 004 Prof. Gigliol Stffilni Leture 1 - Introdution nd Bsi Fts bout PDEs The Content of the Course Definition of Prtil Differentil Eqution (PDE) Liner PDEs VVVVVVVVVVVVVVVVVVVV

More information

Model Reduction of Finite State Machines by Contraction

Model Reduction of Finite State Machines by Contraction Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

Deterministic Finite Automata

Deterministic Finite Automata Finite Automt Deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion Sciences Version: fll 2016 J. Rot Version: fll 2016 Tlen en Automten 1 / 21 Outline Finite Automt Finite

More information

Abstraction of Nondeterministic Automata Rong Su

Abstraction of Nondeterministic Automata Rong Su Astrtion of Nondeterministi Automt Rong Su My 6, 2010 TU/e Mehnil Engineering, Systems Engineering Group 1 Outline Motivtion Automton Astrtion Relevnt Properties Conlusions My 6, 2010 TU/e Mehnil Engineering,

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Forml Lnguge nd Automt Forml Lnguge nd Automt Theory (CS21004) Khrgpur Khrgpur Khrgpur Forml Lnguge nd Automt Tle of Contents Forml Lnguge nd Automt Khrgpur 1 2 3 Khrgpur Forml Lnguge nd Automt Forml Lnguge

More information

CS241 Week 6 Tutorial Solutions

CS241 Week 6 Tutorial Solutions 241 Week 6 Tutoril olutions Lnguges: nning & ontext-free Grmmrs Winter 2018 1 nning Exerises 1. 0x0x0xd HEXINT 0x0 I x0xd 2. 0xend--- HEXINT 0xe I nd ER -- MINU - 3. 1234-120x INT 1234 INT -120 I x 4.

More information