Nondeterministic Biautomata and Their Descriptional Complexity

Size: px
Start display at page:

Download "Nondeterministic Biautomata and Their Descriptional Complexity"

Transcription

1 Nondeterministic Biutomt nd Their Descriptionl Complexity Mrkus Holzer nd Sestin Jkoi Institut für Informtik Justus-Lieig-Universität Arndtstr. 2, Gießen, Germny 23. Theorietg Automten und Formle Sprchen Ilmenu, Septemer 2013

2 1 Biutomt Nondeterministic Biutomt Structurl Properties of Biutomt 2 Descriptionl Complexity Complexity of the -Property Conversion Prolems for -F-Biutomt Complexity of the F-Property 3 Conclusion M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

3 1 Biutomt Nondeterministic Biutomt Structurl Properties of Biutomt 2 Descriptionl Complexity Complexity of the -Property Conversion Prolems for -F-Biutomt Complexity of the F-Property 3 Conclusion M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

4 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 0 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

5 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 1 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

6 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 3 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

7 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 3 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

8 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 2 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

9 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 3 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

10 Biutomt...s introduced in [Kĺım, Polák, 2011] A iutomton A = (Q,Σ,,,q 0,F) is deterministic finite utomton with two reding heds (left-to-right nd right-to-left)... q 2 q 4 q 0 q 1 q 3 q 4... tht stisfies the following two restrictions:,, 1 heds move independently: (q ) = (q ) ( -property) 2 forwrd/ckwrd cceptnce: q F q F (F-property) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

11 Results on Biutomt [Kĺım, Polák, 2011/12] Similrities to ordinry deterministic finite utomt: iutomt ccept regulr lnguges hve unique miniml utomt Simple chrcteriztions of regulr lnguge clsses vi iutomt: prefix-suffix testle lnguges piecewise testle nd k-piecewise testle lnguges M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

12 Results on Biutomt [Kĺım, Polák, 2011/12] Similrities to ordinry deterministic finite utomt: iutomt ccept regulr lnguges hve unique miniml utomt Simple chrcteriztions of regulr lnguge clsses vi iutomt: prefix-suffix testle lnguges piecewise testle nd k-piecewise testle lnguges [Jirásková, Kĺım, 2012] Descriptionl Complexity: NFA/DFA/syntctic monoid iutomton M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

13 Results on Biutomt [Kĺım, Polák, 2011/12] Similrities to ordinry deterministic finite utomt: iutomt ccept regulr lnguges hve unique miniml utomt Simple chrcteriztions of regulr lnguge clsses vi iutomt: prefix-suffix testle lnguges piecewise testle nd k-piecewise testle lnguges [Jirásková, Kĺım, 2012] Descriptionl Complexity: NFA/DFA/syntctic monoid iutomton [H., J., 2013] Brzozowski-like minimiztion of iutomt Chrcteriztions of cyclic nd commuttive regulr lnguges M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

14 Biutomt...more generl nondeterministic iutomton (NBiA) A = (Q,Σ,,,I,F): Q finite set of sttes Σ input lphet : Q Σ 2 Q forwrd trnsition function : Q Σ 2 Q ckwrd trnsition function I Q set of initil sttes F Q set of finl or ccepting sttes A ccepts w Σ if w = u 1 u 2...u k v k...v 2 v 1 (u i,v i Σ ), nd [((...((((I u 1 ) v 1 ) u 2 ) v 2 )...) u k ) v k ] F deterministic iutomton (DBiA): I = 1 q = 1 nd q = 1 for ll q Q, Σ M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

15 Biutomt...more generl nondeterministic iutomton (NBiA) A = (Q,Σ,,,I,F): Q finite set of sttes Σ input lphet : Q Σ 2 Q forwrd trnsition function : Q Σ 2 Q ckwrd trnsition function I Q set of initil sttes F Q set of finl or ccepting sttes A ccepts w Σ if w = u 1 u 2...u k v k...v 2 v 1 (u i,v i Σ ), nd [((...((((I u 1 ) v 1 ) u 2 ) v 2 )...) u k ) v k ] F deterministic iutomton (DBiA): I = 1 q = 1 nd q = 1 for ll q Q, Σ M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

16 Biutomt...more generl nondeterministic iutomton (NBiA) A = (Q,Σ,,,I,F): Q finite set of sttes Σ input lphet : Q Σ 2 Q forwrd trnsition function : Q Σ 2 Q ckwrd trnsition function I Q set of initil sttes F Q set of finl or ccepting sttes A ccepts w Σ if w = u 1 u 2...u k v k...v 2 v 1 (u i,v i Σ ), nd [((...((((I u 1 ) v 1 ) u 2 ) v 2 )...) u k ) v k ] F deterministic iutomton (DBiA): I = 1 q = 1 nd q = 1 for ll q Q, Σ M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

17 Structurl Properties of Biutomt -property: for ll q Q,, Σ: (q ) = (q ) F-property: for ll q Q, Σ: (q ) F (q ) F -F-DBiA re iutomt s introduced in [Kĺım, Polák, 2011] M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

18 Structurl Properties of Biutomt -property: for ll q Q,, Σ: (q ) = (q ) F-property: for ll q Q, Σ: (q ) F (q ) F -F-DBiA re iutomt s introduced in [Kĺım, Polák, 2011] Simpler cceptnce conditions generl: A ccepts w if w = u 1 u 2...u k v k...v 2 v 1 (u i,v i Σ ) nd [((...((((I u 1 ) v 1 ) u 2 ) v 2 )...) u k ) v k ] F with : A ccepts w if w = uv (u,v Σ ) nd [(I u) v] F (equivlent: [(I v) u] F ) with, F: A ccepts w if [I w] F (equivlent: [I w] F ) M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

19 1 Biutomt Nondeterministic Biutomt Structurl Properties of Biutomt 2 Descriptionl Complexity Complexity of the -Property Conversion Prolems for -F-Biutomt Complexity of the F-Property 3 Conclusion M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

20 Complexity of the -Property Lemm For ny given n-stte -NBiA A one cn construct n equivlent NFA tht hs O(n 2 ) sttes. In prticulr L(A) is regulr. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

21 Complexity of the -Property Lemm For ny given n-stte -NBiA A one cn construct n equivlent NFA tht hs O(n 2 ) sttes. In prticulr L(A) is regulr. Lemm 1 Let G = (N,T,P,S) e liner context-free grmmr in normlform. Then one cn construct n equivlent ( N +1)-stte NiBA A. Automton A my stisfy the F-property. 2 Let A e n n-stte NBiA. Then one cn construct n equivlent liner context-free grmmr G in normlform with (n + 1) nonterminls. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

22 Complexity of the -Property Lemm For ny given n-stte -NBiA A one cn construct n equivlent NFA tht hs O(n 2 ) sttes. In prticulr L(A) is regulr. Lemm 1 Let G = (N,T,P,S) e liner context-free grmmr in normlform. Then one cn construct n equivlent ( N +1)-stte NiBA A. Automton A my stisfy the F-property. 2 Let A e n n-stte NBiA. Then one cn construct n equivlent liner context-free grmmr G in normlform with (n + 1) nonterminls. Theorem The trde-off etween NBiAs nd -NBiAs is non-recursive. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

23 n2 n 2(n 1) Conversions to -F-DBiA From [Jirásková, Kĺım 2012]: 1 NFA -F-DBiA 2 DFA -F-DBiA 3 SynMon -F-DBiA SynMon n 2 -F-DBiA 2 2n 2(2 n 1) NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

24 n2 n 2(n 1) Conversions to -F-DBiA Theorem For ny given n-stte NBiA one cn construct n equivlent DBiA tht hs 2 n sttes. Further, this construction preserves the - nd F-properties. Proof Ide: Power-set construction. -F-NBiA SynMon n 2 -F-DBiA 2 n 2 2n 2(2 n 1) NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

25 n2 n 2(n 1) Conversions to -F-DBiA Lemm For ll m 1 there is lnguge L m ccepted y -F-NBiA with 3m+2 sttes nd for which every -F-DBiA needs t lest 2 2m +1 sttes. Proof Ide: L m = Σ Σ m 1 Σ -F-NBiA SynMon 2 Θ(n) n 2 2 2n 2(2 n 1) -F-DBiA NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

26 n2 n 2(n 1) Conversions to -F-NBiA SynMon n 2 -F-NBiA 2 Θ(n) -F-DBiA 2 2n 2(2 n 1) NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

27 n2 n 2(n 1) Conversions to -F-NBiA Theorem For ny given n-stte NFA one cn construct n equivlent -F-NBiA tht hs n 2 sttes. Proof Ide: Construct product of forwrd nd ckwrd utomt. -F-NBiA n 2 SynMon 2 Θ(n) n 2 n 2 2 2n 2(2 n 1) -F-DBiA NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

28 A Lower Bound Technique for -F-NBiA Lemm A set S = {(x i,y i,z i ) x i,y i,z i Σ,1 i n} is i-fooling set for L Σ if 1 for 1 i n it is x i y i z i L, nd 2 for 1 i,j n, with i j, it is x i y j z i / L or x j y i z j / L. Then ny -F-NBiA for L hs t lest S sttes. Proof Ide: Let A = (Q,Σ,,,I,F) e -F-NBiA for L. If x i y i z i L then there is q i [(I x i ) z i ] such tht (q i y i ) F. If Q < S then there re i j with q i = q j. Then x i y j z i L nd x j y i z j L, contrdiction. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

29 Lower Bound for DFA -F-NBiA Theorem For every n 1 there is lnguge L n ccepted y n n-stte DFA, such tht ny -F-NBiA needs n 2 sttes to ccept L n. Sketch of Proof: Consider A n,,, n 1 with the i-fooling set S = {(x i,j,y i,j,z i,j ) 0 i,j n 1}, where x i,j = i, y i,j = n i n 2 j+2, z i,j = n j. Note tht x i,j y i,j z i,j = n n 2 n+2 L(A). Consider (i,j) (i,j ): i = i : Word x i,j y i,j z i,j = n n 2 n+2+j j L(A). i i : Assume (j j) mod n n 1, then x i,j y i,j z i,j = n i +i n 2 n+2+j j L(A). Cse (j j) mod n = n 1 similr. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

30 Lower Bound for DFA -F-NBiA Theorem For every n 1 there is lnguge L n ccepted y n n-stte DFA, such tht ny -F-NBiA needs n 2 sttes to ccept L n. Sketch of Proof: Consider A n,,, n 1 with the i-fooling set S = {(x i,j,y i,j,z i,j ) 0 i,j n 1}, where x i,j = i, y i,j = n i n 2 j+2, z i,j = n j. Note tht x i,j y i,j z i,j = n n 2 n+2 L(A). Consider (i,j) (i,j ): i = i : Word x i,j y i,j z i,j = n n 2 n+2+j j L(A). i i : Assume (j j) mod n n 1, then x i,j y i,j z i,j = n i +i n 2 n+2+j j L(A). Cse (j j) mod n = n 1 similr. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

31 Conversions to -F-NBiA SynMon -F-NBiA -F-DBiA n 2 n2 n 2(n 1) n 2 2 Θ(n) n 2 2 2n 2(2 n 1) NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

32 Conversions to -F-NBiA Theorem Let L e regulr lnguge given y syntctic monoid of size n. Then one cn construct -F-NBiA for L tht hs t most n sttes. This ound cn e reched for every n 1. n2 n 2(n 1) -F-NBiA n 2 n SynMon 2 Θ(n) n 2 n 2 2 2n 2(2 n 1) -F-DBiA NFA 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

33 Conversions to -F-NBiA Theorem For ny given regulr expression of lphetic width n one cn construct n equivlent -F-NBiA tht hs (n+1) 2 sttes. n2 n 2(n 1) RegExp Θ(n 2 ) n -F-NBiA SynMon 2 Θ(n) n 2 -F-DBiA Lemm For ll n 1 there is regulr lnguge L n with lphetic width n, such tht ny -F-NBiA needs n 2 sttes to ccept L n. n 2 NFA n 2 2 2n 2(2 n 1) 2 n DFA M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

34 Complexity of the F-Property The F-property is esy for -NBiAs, Lemm For ny given n-stte -NBiA one cn construct n equivlent -F-NBiA tht hs O(n 4 ) sttes. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

35 Complexity of the F-Property The F-property is esy for -NBiAs, Lemm For ny given n-stte -NBiA one cn construct n equivlent -F-NBiA tht hs O(n 4 ) sttes....nd hrd for -DBiAs. Lemm For every n 1 there is regulr lnguge L n ccepted y -DBiA with O(n 2 ) sttes nd for which every -F-DBiA needs Ω(2 n ) sttes. M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

36 1 Biutomt Nondeterministic Biutomt Structurl Properties of Biutomt 2 Descriptionl Complexity Complexity of the -Property Conversion Prolems for -F-Biutomt Complexity of the F-Property 3 Conclusion M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

37 Conclusion Summry nondeterminism for iutomt structurl properties:, F descriptionl complexity of conversion prolems Further Reserch tight ound for determiniztion of -F-NBiAs tight ounds for -BiA -F-BiA nd -BiA NFA/DFA understnding the F-property (lso concerning minimiztion prolems) further chrcteriztions of suregulr lnguge clsses residul iutomt... M. Holzer, S. Jkoi (JLU Gießen) Nondeterministic Biutomt 23. Theorietg, Ilmenu, Septemer 2013

38 Thnk you for your ttention!

I F I G R e s e a r c h R e p o r t. Minimization, Characterizations, and Nondeterminism for Biautomata. IFIG Research Report 1301 April 2013

I F I G R e s e a r c h R e p o r t. Minimization, Characterizations, and Nondeterminism for Biautomata. IFIG Research Report 1301 April 2013 I F I G R e s e r c h R e p o r t Institut für Informtik Minimiztion, Chrcteriztions, nd Nondeterminism for Biutomt Mrkus Holzer Sestin Jkoi IFIG Reserch Report 1301 April 2013 Institut für Informtik JLU

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

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

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

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

Lecture 6 Regular Grammars

Lecture 6 Regular Grammars Lecture 6 Regulr Grmmrs COT 4420 Theory of Computtion Section 3.3 Grmmr A grmmr G is defined s qudruple G = (V, T, S, P) V is finite set of vribles T is finite set of terminl symbols S V is specil vrible

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

CS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa

CS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa CS:4330 Theory of Computtion Spring 208 Regulr Lnguges Equivlences between Finite utomt nd REs Hniel Brbos Redings for this lecture Chpter of [Sipser 996], 3rd edition. Section.3. Finite utomt nd regulr

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

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck. Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent

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

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

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

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt From Regulr Expressions to NFA- Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over

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

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

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd T. vn Lrhoven Institute for Computing nd Informtion Sciences Intelligent

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016 CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Non-Deterministic Finite Automata

Non-Deterministic Finite Automata Non-Deterministic Finite Automt http://users.comlb.ox.c.uk/luke. ong/teching/moc/nf2up.pdf 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q1 q2 2 Alphbet ={} Two choices q1 q2 3 Alphbet ={} Two choices

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

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

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

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

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014 CS125 Lecture 12 Fll 2014 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Regular Languages and Applications

Regular Languages and Applications Regulr Lnguges nd Applictions Yo-Su Hn Deprtment of Computer Science Yonsei University 1-1 SNU 4/14 Regulr Lnguges An old nd well-known topic in CS Kleene Theorem in 1959 FA (finite-stte utomton) constructions:

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

Non Deterministic Automata. Formal Languages and Automata - Yonsei CS 1

Non Deterministic Automata. Formal Languages and Automata - Yonsei CS 1 Non Deterministic Automt Forml Lnguges nd Automt - Yonsei CS 1 Nondeterministic Finite Accepter (NFA) We llow set of possible moves insted of A unique move. Alphbet = {} Two choices q 1 q2 Forml Lnguges

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

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

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

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

On Determinisation of History-Deterministic Automata.

On Determinisation of History-Deterministic Automata. On Deterministion of History-Deterministic Automt. Denis Kupererg Mich l Skrzypczk University of Wrsw YR-ICALP 2014 Copenhgen Introduction Deterministic utomt re centrl tool in utomt theory: Polynomil

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

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

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

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

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA Nondeterminism Nondeterministic Finite Automt Nondeterminism Subset Construction A nondeterministic finite utomton hs the bility to be in severl sttes t once. Trnsitions from stte on n input symbol cn

More information

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute Victor Admchik Dnny Sletor Gret Theoreticl Ides In Computer Science CS 5-25 Spring 2 Lecture 2 Mr 3, 2 Crnegie Mellon University Deterministic Finite Automt Finite Automt A mchine so simple tht you cn

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.

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

Synchronizing Automata with Random Inputs

Synchronizing Automata with Random Inputs Synchronizing Automt with Rndom Inputs Vldimir Gusev Url Federl University, Ekterinurg, Russi 9 August, 14 Vldimir Gusev (UrFU) Synchronizing Automt with Rndom Input 9 August, 14 1 / 13 Introduction Synchronizing

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

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

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

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

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

Introduction to ω-autamata

Introduction to ω-autamata Fridy 25 th Jnury, 2013 Outline From finite word utomt ω-regulr lnguge ω-utomt Nondeterministic Models Deterministic Models Two Lower Bounds Conclusion Discussion Synthesis Preliminry From finite word

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

The Magic Number Problem for Subregular Language Families

The Magic Number Problem for Subregular Language Families The Mgic Number Problem for Subregulr Lnguge Fmilies Mrkus Holzer Sebstin Jkobi Mrtin Kutrib Institut für Informtik, Universität Giessen, Arndtstr. 2, 35392 Giessen, Germny emil: {holzer,jkobi,kutrib}@informtik.uni-giessen.de

More information

Myhill-Nerode Theorem

Myhill-Nerode Theorem Overview Myhill-Nerode Theorem Correspondence etween DA s nd MN reltions Cnonicl DA for L Computing cnonicl DFA Myhill-Nerode Theorem Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute

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

Quotient Complexity of Ideal Languages

Quotient Complexity of Ideal Languages Quotient Complexity of Idel Lnguges Jnusz Brzozowski,1 Glin Jirásková Biyu Li Dvid R. Cheriton School of Computer Science, University of Wterloo, Wterloo, ON, Cnd N2L 3G1 Mthemticl Institute, Slovk Acdemy

More information

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints)

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints) C K Ngpl Forml Lnguges nd utomt Theory Chpter 4 Regulr Grmmr nd Regulr ets (olutions / Hints) ol. (),,,,,,,,,,,,,,,,,,,,,,,,,, (),, (c) c c, c c, c, c, c c, c, c, c, c, c, c, c c,c, c, c, c, c, c, c, c,

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

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

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

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Chapter 1, Part 1. Regular Languages. CSC527, Chapter 1, Part 1 c 2012 Mitsunori Ogihara 1

Chapter 1, Part 1. Regular Languages. CSC527, Chapter 1, Part 1 c 2012 Mitsunori Ogihara 1 Chpter 1, Prt 1 Regulr Lnguges CSC527, Chpter 1, Prt 1 c 2012 Mitsunori Ogihr 1 Finite Automt A finite utomton is system for processing ny finite sequence of symols, where the symols re chosen from finite

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

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

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

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

1.3 Regular Expressions

1.3 Regular Expressions 56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,

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

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy: Scnner Specifying ptterns source code tokens scnner prser IR A scnner must recognize the units of syntx Some prts re esy: errors mps chrcters into tokens the sic unit of syntx x = x + y; ecomes

More information

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!) CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All

More information

GNFA GNFA GNFA GNFA GNFA

GNFA GNFA GNFA GNFA GNFA DFA RE NFA DFA -NFA REX GNFA Definition GNFA A generlize noneterministic finite utomton (GNFA) is grph whose eges re lele y regulr expressions, with unique strt stte with in-egree, n unique finl stte with

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

Tutorial Automata and formal Languages

Tutorial Automata and formal Languages Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we

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

ɛ-closure, Kleene s Theorem,

ɛ-closure, Kleene s Theorem, DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene

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

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers 80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES 2.6 Finite Stte Automt With Output: Trnsducers So fr, we hve only considered utomt tht recognize lnguges, i.e., utomt tht do not produce ny output on ny input

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

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

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

CDM Automata on Infinite Words

CDM Automata on Infinite Words CDM Automt on Infinite Words 1 Infinite Words Klus Sutner Crnegie Mellon Universlity 60-omeg 2017/12/15 23:19 Deterministic Lnguges Muller nd Rin Automt Towrds Infinity 3 Infinite Words 4 As mtter of principle,

More information

Section: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language.

Section: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language. Section: Other Models of Turing Mchines Definition: Two utomt re equivlent if they ccept the sme lnguge. Turing Mchines with Sty Option Modify δ, Theorem Clss of stndrd TM s is equivlent to clss of TM

More information

Prefix-Free Subsets of Regular Languages and Descriptional Complexity

Prefix-Free Subsets of Regular Languages and Descriptional Complexity Prefix-Free Susets of Regulr Lnguges nd Descriptionl Complexity Jozef Jirásek Jurj Šeej DCFS 2015 Prefix-Free Susets of Regulr Lnguges nd Descriptionl Complexity Jozef Jirásek, Jurj Šeej 1/22 Outline Mximl

More information

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata CSC4510 AUTOMATA 5.1 Definitions nd Exmples 5.2 Deterministic Pushdown Automt Definitions nd Exmples A lnguge cn be generted by CFG if nd only if it cn be ccepted by pushdown utomton. A pushdown utomton

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

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probbilistic Model Checking Michelms Term 2011 Dr. Dve Prker Deprtment of Computer Science University of Oxford Long-run properties Lst lecture: regulr sfety properties e.g. messge filure never occurs

More information

The Cayley-Hamilton Theorem For Finite Automata. Radu Grosu SUNY at Stony Brook

The Cayley-Hamilton Theorem For Finite Automata. Radu Grosu SUNY at Stony Brook The Cyley-Hmilton Theorem For Finite Automt Rdu Grosu SUNY t Stony Brook How did I get interested in this topic? Convergence of Theories Hyrid Systems Computtion nd Control: - convergence etween control

More information

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive

More information

More on automata. Michael George. March 24 April 7, 2014

More on automata. Michael George. March 24 April 7, 2014 More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose

More information

From LTL to Symbolically Represented Deterministic Automata

From LTL to Symbolically Represented Deterministic Automata Motivtion nd Prolem Setting Determinizing Non-Confluent Automt Det. vi Automt Hierrchy From LTL to Symoliclly Represented Deterministic Automt Andres Morgenstern Klus Schneider Sven Lmerti Mnuel Gesell

More information

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 4 1. UsetheproceduredescriedinLemm1.55toconverttheregulrexpression(((00) (11)) 01) into n NFA. Answer: 0 0 1 1 00 0 0 11 1 1 01 0 1 (00)

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

The Degree of Irreversibility in Deterministic Finite Automata

The Degree of Irreversibility in Deterministic Finite Automata The Degree of Irreversiility in Deterministic Finite Automt Holger Bock Axelsen 1, Mrkus Holzer 2(B), nd Mrtin Kutri 2 1 Deprtment of Computer Science, University of Copenhgen, Universitetsprken 5, Copenhgen,

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

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

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

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 Ç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

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

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30 Tlen en Automten Test 1, Mon 7 th Dec, 2015 15h45 17h30 This test consists of four exercises over 5 pges. Explin your pproch, nd write your nswer to ech exercise on seprte pge. You cn score mximum of 100

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