A NOTE ON STAR-FREE EVENTS. Albert R. Meyer. Carnegie-Mellon University Pittsburg _, Pennsylvania February, ]968

Size: px
Start display at page:

Download "A NOTE ON STAR-FREE EVENTS. Albert R. Meyer. Carnegie-Mellon University Pittsburg _, Pennsylvania February, ]968"

Transcription

1 A NOTE ON STAR-FREE EVENTS By Albert R. Meyer Carnegie-Mellon University Pittsburg _, Pennsylvania February, ]968 This work was supported by the Advanced Research Projects Agency of the Office of the Secretary of Defense (SD-]46) and is monitored by the Air Force Office of Scientific Research. Distribution of this document is unlimited.

2 ABSTRACT A short proof of the equivalence of star-free and group-free regular events is possible if one is willing to appeal to the Krohn-Rhodes machine decomposition theorem.

3 ]. INTRODUCTION The star-free events are the family of regular events expressible in the extended language of regular expressions (using intersection and complementation, as well as union and concatenation of events) without the use of the Kleene star (closure) operator. The equivalence of the star-free and group-free events was first proved by Sch'dtzenberger []966]. Papert and McNaughton []966] show that the star-free events are precisely the events definable in McNaughton's L-language, and are thereby able to establish the above equivalence without extensive use of the properties of finite semigroups. However, if one is willing to appeal to the machine decomposition theorem of Krohn and Rhodes,the equivalence of star-free, group-free, and also noncounting regular events can be proved more simply. We present such a proof in this note. 2. PRELIMINARIES We assume the reader is already familiar with regular events and finite automata. Our notation follows Yoeli []965] and Ginzburg []968]. In particular, if f and g are functions from a set S into itself, arguments are written on the left (so that sf = f(s)), and the composition f o g means that f is applied first (so that s(f o g) = (sf)g). A semiautomaton is a triple A = <QA, E A, M A> with QA a finite set A A (of states), _ a finite set (of _), and M a set of functions MA: QA_>QAindexe d by o E 7_A. The mapping 5_ is abbreviated,, A,,. The o element q A 6 QA is the next state of q 6 QA under input _ C A. For A A > A A x E (_A), the mapping x" Q- QAis defined inductively: is the

4 -2- identity map on QAwhere A is the null word in (_A),, and if x = y(_ (_A)* A A A oa. xy)a= A A for y C and o _, then x is y o Hence, ( x o y for all x, y E ( A),. For x 6 (EA)* and integers k >- 0, xk is the 0 concatenation of x with itself k times; x = A by convention. Clearly, (xk) A = (xa) k = the composition of xa with itself k times. The (necessarily finite) set of distinct mappings xa for x E (_A) * form a semigroup GA under composition. GA is called the semigrou_ of A. Let A and B be semiat,tomata. B is a subsemiautomaton of A providing _B c A, QB c QA and the mapping o B is the restriction of _ A to QB for each (_ E _B. B is a homomorphic ima$_e of A providing that A QA QB B Ao = _B and there is an onto mapping I]: -> such that I] o o = o I] A for each _ E _ The mapping TI is called a homomorphism of A onto B. A covers B, in symbols "A _ B" if and only if B is a homomorphic image of a subsemiautomaton of A. An automaton is a quintuple i = <QA, A, sa, FA, MA> where A = <QA, _]A, M_ is a semiautomaton, called the semiautomaton of _,s A is an element of QA called the start state, and FA is a subset of QA (A) A A 1 called the final states, The event accepted b i is Ix E * I s x E F A This definition of automaton is merely a notational variant of the usual finite state acceptor (cf. Rabin and Scott []959]), and the events accepted by such automata are precisely the regular events. 3. STAR-F_IEE AND NONCOUNTING EVENTS The star-free events are defined inductively as follows: Definition 1. Let _ be a finite set (of inputs). %he singleton [_ is a star-free event over _. If U, V * are star-free events over _,

5 -3- then U [J V, U (the complement of U relative to _*), and UV (the concatenation of U and V) are star-free events over _. An event is star-free over _ only by implication from the preceding clauses. By DeMorgan's law, U n V = U U _ and so star-free events are also closed under intersection. Since the regular events over _ include the singletons and are closed under union, relative complementation, and concatenation, it follows that every star-free event is regular. Definition 2. (Papert-McNaughton) A regular event U c E* is a noncountin_ regular event over _ if and only if there is an integer ku _. 0 such that for all x, y, z E _* k U ku+1 x y z E U _ x y z 6 U. Intuitively, an automaton accepting a noncounting event U need never count (even modulo any integer greater than one) the number of consecutive occurrences of any word y once ku consecutive y's have occurred in an input word. Lemma I. (Paper-McNaughton) Every star-free event is a noncounting regular event. Proo ff. The singleton [.ul is trivially a noncounting regular event for every a 6 _ (choose k[_ = 2), so it is sufficient to show that if U and V are noncounting regular events over _, then so are U [J V, U, and UV. Let k = max[ku,kvi. Then for any x, y, z 6 _*, xy kz6uuv xy ku (yk-ku z ) 6 U or xy kv(y k-kv z) E V _ xy ku+] (yk-k U z) U or

6 -4- xy kv+l (yk-kv z) E V _ xy k+l z E U U V. Thus, U U V is a noncounting regular event with kuuv= max[ku, kv_. k U k U ku+l ku+l Similarly, xy z 6 U _ xy z _ U _ xy z _ U = xy z 6 D, so that U is a noncounting regular event with k_ = ku. k Finally, let k = 2 max [ku,k V _+ ] and suppose xy z E U V. Then k xy z = uv for some u E U, v E V, and it must be the case that either u = xyk/2w for some w C _*, or that v = w'yk/2z for some w'e _*. In the first case, u = xyk/2w- = xyku(y k/2-ku- w) E U implies that xy ku+1 (yk/2-k U w) = xyk/2 +1 w E U since U is noncounting. In the second case, v w'y k/2z E V similarly implies that w'y k/2 +1 = zev. k+l k+l Hence, in either case xy z C UV. Conversely, if xy z E UV the k arglunent can clearly be reversed to show that xy z E UV. Thus, UV is a noncounting regular event with kuv = 2'ma X[ku,kv!+1. Q.E.D. ku If U is a noncounting regular event over _ and o E _, then o E U implies that U contains all words in o* of length at least k U. Therefore, either U N c_* or U N c_* is a finite event. The regular event (c_c_)*is neither finite nor has finite complement, which proves: Corollary I. The noncounting (and hence the star-free) regular events are a proper subfamily of the regular events. 4. GROUP-FREE EVENTS Associated with any event U c_,* is a congruence relation,--_ (rood U), on E* defined for w, y E E* by: w- y (mod U) _ (Vx, z E _*)[x w z E U _ x y z E U].

7 -5- Noncounting regular events are thus those regular events U such that ku ku+1 y - y (rood U) for all y 6 _*. The relation between this congruence and automata is an immediate consequence of the familiar theorems of Nerode and Myhil] (of. Rabin and Scott []959]): if U is a regular event, then there is an automaton accepting U (viz., the reduced automaton accepting U) such that A A x-= y (rood U) _ x = y. Definition 3. A_ of S is a subsemigroup of S whose elements form an abstract group under multiplication in S. A semigroup is group-free if and only if all its subgroups are isomorphic to the trivial group with one element. A semiautomaton is group-free if and Dnly if the semigroup of the semiautomaton is group-free. A regular set U is group-free if and only if there is an automaton i accepting U such that the semiautomaton A of i is group-free. Lemma 2. Let S be a semigroup. If there is an integer k _ 0 such that k k+] s = s for all s E S, then S is group-free. Proof. Let G be a subgroup of S, and let g be an element of G. Then g k = gk+] implies e = g k (g")] k = gk+] (g-)] k= g where g-i is the inverse of g in G and e is the identity of G. Hence, G = [e I is the trivial group. Q.E.D. C0rol!ary 2. Every noncounting regular event is a group-free regular event. k u ku+1 Proof. If U is a noncounting regular event, then y m y (mod U)

8 -6- implies that (yk U)A = (yku+l) A in the reduced automaton _ accepting U. k U ku+1 Hence, (ya) = (ya) for every element ya E GA, and GA is group-free by lemma 2. Q.E.D. 5. DECOMPOSITION INTO RESETS The machine decomposition theorem of Krohn and Rhodes supplies the key step in the proof that group-free events are star-free. Definition 4. Let A and B be semiautomata and tu: QA _ A B. The cas cade product A _ B of A and B with mapping _0 is the semiautomaton C with QC= QA QB C A oc EC, E = _ and for ct E defined for all sa E QA, sb C QB by: C B <s A, sb> c) = <sac)a, s (<sa,c_>00)b>. A cascade product of three or more automata is defined by association to the left, e.g., a cascade product of semiautomata A, B, and C J is any semiautomaton (A $1B) c02c for any mappings cui and cv2 with appropriate domain and range. Definition 5. A semiautomaton R is a reset providing QR= _1,2_, and R R R _R is the union of three mutually exclusive sets E], E 2, E 1 such that: R R R o E E] = range (c_r) = f1_; c) E E 2 = range (c_r) = _2_; and cy E _I _ a R = the identity on QR. The following weak form of the decomposition theorem is sufficient for our purposes (for a constructive proof of the general theorem see Ginzburg [1968]): Theorem. (Krohn-Rhodes) Every semiautomaton A is covered by a cascade product of seiniautomata AI, A2,..., An such that for 1 i < n, Ai

9 -7- Ai is a reset or else G is a non-trivial homomorphic image of a subgroup of GA. Since the trivial group has only itself as a homomorphic image, the following lemma is inmlediate: Lemma 3. Every group-free semiautomaton is covered by a cascade product of resets. Corollary 3. Every group-free regular event is accepted by an automaton whose semiautomaton is a cascade product of resets. Proof. Let i, with group-free semiautomaton A, be an automaton accepting a group-free regular event U. By lemma 3 and the definition of covering, A is the image under a homomorphism ]] of a subsemiautomaton of a cascade product C of resets. There is no loss of generality in assuming that _A = C, since the subsemiautomaton of C obtained by restricting _C to _A is also a cascade product of resets which covers A. Choose any sc E QC such that sc]] = s A (the start state of i) and define F C = {q E QC I q _] E FAI. Then for any x E ( A),, x E U saxa E FA _ scq] xa E F A _ scxc]] E FA _ scx C E FC. Hence, the automaton C with semiautomaton C, start state s, and final states F C is the required automaton accepting U. Q.E.D. 6. THE MAIN THEOREM. The behavior of cascades of resets can be described in terms of star-free events using

10 -8- Definition 6. For a semiautomaton A and states p, q E QA, the set A Pq of p-q-inputs is Ix E (_A)* I PxA = q l. Lemma 4. Let C = B _ R with B a semiautomaton, R a reset, and _: QB _B ER X -0. If B is a star-free event (over E B) for all p, q E QB, Pq then Cab is a star-free event (over _C = EB) for all a, b E QC. Proof. Write '_" for the (equal) sets E B and C. By the definition of cascade product, the first cc_nponent of <p, 1> yc is simply py B for any p E QB, Y E _". "" Since R is a reset, in order for the second component of <p, I> yc to be 2, R must receive an input <r, o> _ E _2 for some r EQB, oe_. Suppose x E C<p,]Xq,2 >. Then px = q and so x E Bpq, but also * B x must equal y o z for some y, z E _, o E E such that: py = r for some r E QB and <r, _> m E E2" R Choose tile shortest z such that x = y _ z for y and _ satisfying the preceding conditions. Then no prefix of z R (where s _ QB, 8 C _), i.e., causes R to receive an input <s, 6> _0 E _] B z _ BraB,s6 _. B R * Conversely, if py = r for <r ' o> w E _2 and z _ Bro B,S 6 _ for any <s,6> _ E _IR' then yc_z E C<p,1_q,2 > providing yoz E Bpq. Altogether, one has : C<p,iXq,2>= Bpq fl [U Bpr _ (U BroB,s 6 _*)] QB the lefthand union being over all r C, _ E _,such that <r,g_"ioe _2' and the righthand union being over all s E QB R, 6 E _ such that <s,6_ E _I" The unions in the expression for C<p,]>_q,2> are finite, and _ is a star-free event (_ = _ and _ = [o_n _-_), so that C<p,iXq,2> is a star-free event. The set of x E C<p,1>_q,1> is precisely the set of

11 -9- x 6 _ such that px B = q and x _ C<p,iXq,_, i.e., C<p,1><q,1> = Bpq rl C<p, IXq, 2>' and so C<p,l><q,l> is also a star-free event. Since the argument is symmetric in states 1 and 2 of QR, Ca b is a star-free event for all a, b E QC. Q.E.D. Lemma 5. If C is a cascade product of resets, then Cab is a star-free event for all a,b E QC. Proof. Let R be a reset and B a semiautomaton such that QB = [p_ and _B = 7R. For _ E _B, define 0J: QB X _B - R by the condition <p,_>0_ = o. In this trivial case of cascade product, Rij = (B R)<p,i><p, j> for QR. (_B * all i, j E Since B = ) is star-free, lemma 4 implies that PP Rij is star-free. The rest of the proof follows immediately by lemma 4 and induction on the number of resets in Co Q.E.D. Corollary 4. Every event accepted by an automaton i, whose semiautomaton A is a cascade product of resets, is a star-free event. Proof. Let a C QA be the start state of i, and FA the final states. The event accepted by i is U A Aab which is a star-free event since b6f the union is finite and Aab is star-free by lemma 5. Q.E.D. This completes the proof of the following Theorem. (Sch'dtzenberger, Papert-McNaughton) l_e following are equivalent for events U c _ : 1) U is a star-free event. 2) U is a noncounting regular event. 3) U is a group-free event. 4) U is accepted by a cascade product of resets.

12 -10- References I. Ginzburg, A., A!gebraic ]heoliy- o_fi Automata, t_ooappe#qr (1968). 2. Papert, S. and R. McNaughton, "On topological events", _ l_eory of Autc_nata, University of Michigan Engineering Summer Conferences (1966). 3. Rabin, M. O. and D. Scott, "Finite automata and their decision problems", IBM J. Re ss. and Dev., 3,2 (April, 1959),! Sch'dtzenberger, M. P_, "On a family of sets related to McNaughto_s L-language", Automata The0rx, Caianiello, E. R. (ed.), Academic Press, N. Y. (1966), _ 5. Yoeli, M., "Generalized Cascade Decompositions of Automata", JAC MM, 12, 3 (July, 1965), _

Aperiodic languages and generalizations

Aperiodic languages and generalizations Aperiodic languages and generalizations Lila Kari and Gabriel Thierrin Department of Mathematics University of Western Ontario London, Ontario, N6A 5B7 Canada June 18, 2010 Abstract For every integer k

More information

2. Syntactic Congruences and Monoids

2. Syntactic Congruences and Monoids IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 3: Algebra and Languages David Mix Barrington and Alexis Maciel July 19, 2000 1.

More information

Aperiodic languages p. 1/34. Aperiodic languages. Verimag, Grenoble

Aperiodic languages p. 1/34. Aperiodic languages. Verimag, Grenoble Aperiodic languages p. 1/34 Aperiodic languages Dejan Ničković Verimag, Grenoble Aperiodic languages p. 2/34 Table of Contents Introduction Aperiodic Sets Star-Free Regular Sets Schützenberger s theorem

More information

Before we show how languages can be proven not regular, first, how would we show a language is regular?

Before we show how languages can be proven not regular, first, how would we show a language is regular? CS35 Proving Languages not to be Regular Before we show how languages can be proven not regular, first, how would we show a language is regular? Although regular languages and automata are quite powerful

More information

NOTES ON AUTOMATA. Date: April 29,

NOTES ON AUTOMATA. Date: April 29, NOTES ON AUTOMATA 1. Monoids acting on sets We say that a monoid S with identity element ɛ acts on a set Q if q(st) = (qs)t and qɛ = q. As with groups, if we set s = t whenever qs = qt for all q Q, then

More information

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1 Properties of Regular Languages BBM 401 - Automata Theory and Formal Languages 1 Properties of Regular Languages Pumping Lemma: Every regular language satisfies the pumping lemma. A non-regular language

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

Remarks on Algebraic Decomposition of Automata

Remarks on Algebraic Decomposition of Automata Remarks on Algebraic Decomposition of Automata by A. R. MEYER and C. THOMPSON Carnegie-Mellon University ABSTRACT A version of the Krohn-Rhodes decomposition theorem for finite automata is proved in which

More information

Discrete Mathematics and Logic II. Regular Sets

Discrete Mathematics and Logic II. Regular Sets Discrete Mathematics and Logic II. Regular Sets SFWR ENG 2FA3 Ryszard Janicki Winter 24 Acknowledgments: Material based on Automata and Computability by Dexter C. Kozen (Chapter 4). Ryszard Janicki Discrete

More information

Uses of finite automata

Uses of finite automata Chapter 2 :Finite Automata 2.1 Finite Automata Automata are computational devices to solve language recognition problems. Language recognition problem is to determine whether a word belongs to a language.

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

Chapter 1. Sets and Mappings

Chapter 1. Sets and Mappings Chapter 1. Sets and Mappings 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

More information

SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS

SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS JITENDER KUMAR AND K. V. KRISHNA Abstract. The syntactic semigroup problem is to decide whether a given

More information

Theory of Computation 4 Non-Deterministic Finite Automata

Theory of Computation 4 Non-Deterministic Finite Automata Theory of Computation 4 Non-Deterministic Finite Automata Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Theory of Computation

More information

On Properties and State Complexity of Deterministic State-Partition Automata

On Properties and State Complexity of Deterministic State-Partition Automata On Properties and State Complexity of Deterministic State-Partition Automata Galina Jirásková 1, and Tomáš Masopust 2, 1 Mathematical Institute, Slovak Academy of Sciences Grešákova 6, 040 01 Košice, Slovak

More information

Grammars (part II) Prof. Dan A. Simovici UMB

Grammars (part II) Prof. Dan A. Simovici UMB rammars (part II) Prof. Dan A. Simovici UMB 1 / 1 Outline 2 / 1 Length-Increasing vs. Context-Sensitive rammars Theorem The class L 1 equals the class of length-increasing languages. 3 / 1 Length-Increasing

More information

The Pumping Lemma and Closure Properties

The Pumping Lemma and Closure Properties The Pumping Lemma and Closure Properties Mridul Aanjaneya Stanford University July 5, 2012 Mridul Aanjaneya Automata Theory 1/ 27 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Finite State Automata

Finite State Automata Trento 2005 p. 1/4 Finite State Automata Automata: Theory and Practice Paritosh K. Pandya (TIFR, Mumbai, India) Unversity of Trento 10-24 May 2005 Trento 2005 p. 2/4 Finite Word Langauges Alphabet Σ is

More information

CSE 105 Theory of Computation

CSE 105 Theory of Computation CSE 105 Theory of Computation http://www.jflap.org/jflaptmp/ Professor Jeanne Ferrante 1 Today s agenda Formal definition of DFA DFA design Regular languages Closure properties of the regular languages

More information

Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties

Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties Salil Vadhan September 13, 2012 Reading: Sipser, 1.2. How to simulate NFAs? NFA accepts w if there is at least one accepting computational

More information

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar Büchi Automata and their closure properties - Ajith S and Ankit Kumar Motivation Conventional programs accept input, compute, output result, then terminate Reactive program : not expected to terminate

More information

Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs

Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harry Lewis October 8, 2013 Reading: Sipser, pp. 119-128. Pushdown Automata (review) Pushdown Automata = Finite automaton

More information

Context Free Language Properties

Context Free Language Properties Context Free Language Properties Knowing that the context free languages are exactly those sets accepted by nondeterministic pushdown automata provides us a bit of information about them. We know that

More information

Warshall s algorithm

Warshall s algorithm Regular Expressions [1] Warshall s algorithm See Floyd-Warshall algorithm on Wikipedia The Floyd-Warshall algorithm is a graph analysis algorithm for finding shortest paths in a weigthed, directed graph

More information

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions?

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions? Before We Start The Pumping Lemma Any questions? The Lemma & Decision/ Languages Future Exam Question What is a language? What is a class of languages? Context Free Languages Context Free Languages(CFL)

More information

DM17. Beregnelighed. Jacob Aae Mikkelsen

DM17. Beregnelighed. Jacob Aae Mikkelsen DM17 Beregnelighed Jacob Aae Mikkelsen January 12, 2007 CONTENTS Contents 1 Introduction 2 1.1 Operations with languages...................... 2 2 Finite Automata 3 2.1 Regular expressions/languages....................

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

Regular Expressions and Language Properties

Regular Expressions and Language Properties Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Unit 6. Non Regular Languages The Pumping Lemma. Reading: Sipser, chapter 1

Unit 6. Non Regular Languages The Pumping Lemma. Reading: Sipser, chapter 1 Unit 6 Non Regular Languages The Pumping Lemma Reading: Sipser, chapter 1 1 Are all languages regular? No! Most of the languages are not regular! Why? A finite automaton has limited memory. How can we

More information

Jumping Finite Automata

Jumping Finite Automata Jumping Finite Automata Alexander Meduna and Petr Zemek Brno University of Technology, Faculty of Information Technology IT4Innovations Centre of Excellence Božetěchova 2, 612 00 Brno, Czech Republic http://www.fit.vutbr.cz/

More information

Properties of Context-Free Languages. Closure Properties Decision Properties

Properties of Context-Free Languages. Closure Properties Decision Properties Properties of Context-Free Languages Closure Properties Decision Properties 1 Closure Properties of CFL s CFL s are closed under union, concatenation, and Kleene closure. Also, under reversal, homomorphisms

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are

More information

Finite Automata and Regular Languages (part III)

Finite Automata and Regular Languages (part III) Finite Automata and Regular Languages (part III) Prof. Dan A. Simovici UMB 1 / 1 Outline 2 / 1 Nondeterministic finite automata can be further generalized by allowing transitions between states without

More information

Obtaining the syntactic monoid via duality

Obtaining the syntactic monoid via duality Radboud University Nijmegen MLNL Groningen May 19th, 2011 Formal languages An alphabet is a non-empty finite set of symbols. If Σ is an alphabet, then Σ denotes the set of all words over Σ. The set Σ forms

More information

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed HKN CS/ECE 374 Midterm 1 Review Nathan Bleier and Mahir Morshed For the most part, all about strings! String induction (to some extent) Regular languages Regular expressions (regexps) Deterministic finite

More information

Formal Languages, Automata and Models of Computation

Formal Languages, Automata and Models of Computation CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2011 1 Content - More Properties of Regular Languages (RL)

More information

Sri vidya college of engineering and technology

Sri vidya college of engineering and technology Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Theory (CS21004) Announcements The slide is just a short summary Follow the discussion and the boardwork Solve problems (apart from those we dish out in class) Table of Contents 1 2 3 Languages that are

More information

Automata Theory for Presburger Arithmetic Logic

Automata Theory for Presburger Arithmetic Logic Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood

More information

Automata extended to nominal sets

Automata extended to nominal sets Bachelor thesis Computer Science Radboud University Automata extended to nominal sets Author: Joep Veldhoven s4456556 First supervisor/assessor: Jurriaan Rot jrot@cs.ru.nl Second and third supervisor:

More information

Non-context-Free Languages. CS215, Lecture 5 c

Non-context-Free Languages. CS215, Lecture 5 c Non-context-Free Languages CS215, Lecture 5 c 2007 1 The Pumping Lemma Theorem. (Pumping Lemma) Let be context-free. There exists a positive integer divided into five pieces, Proof for for each, and..

More information

arxiv: v3 [cs.fl] 2 Jul 2018

arxiv: v3 [cs.fl] 2 Jul 2018 COMPLEXITY OF PREIMAGE PROBLEMS FOR DETERMINISTIC FINITE AUTOMATA MIKHAIL V. BERLINKOV arxiv:1704.08233v3 [cs.fl] 2 Jul 2018 Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg,

More information

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS GÁBOR HORVÁTH, CHRYSTOPHER L. NEHANIV, AND KÁROLY PODOSKI Dedicated to John Rhodes on the occasion of his 80th birthday.

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

ON THE STAR-HEIGHT OF SUBWORD COUNTING LANGUAGES AND THEIR RELATIONSHIP TO REES ZERO-MATRIX SEMIGROUPS

ON THE STAR-HEIGHT OF SUBWORD COUNTING LANGUAGES AND THEIR RELATIONSHIP TO REES ZERO-MATRIX SEMIGROUPS ON THE STAR-HEIGHT OF SUBWORD COUNTING LANGUAGES AND THEIR RELATIONSHIP TO REES ZERO-MATRIX SEMIGROUPS TOM BOURNE AND NIK RUŠKUC Abstract. Given a word w over a finite alphabet, we consider, in three special

More information

V Honors Theory of Computation

V Honors Theory of Computation V22.0453-001 Honors Theory of Computation Problem Set 3 Solutions Problem 1 Solution: The class of languages recognized by these machines is the exactly the class of regular languages, thus this TM variant

More information

Formal Models in NLP

Formal Models in NLP Formal Models in NLP Finite-State Automata Nina Seemann Universität Stuttgart Institut für Maschinelle Sprachverarbeitung Pfaffenwaldring 5b 70569 Stuttgart May 15, 2012 Nina Seemann (IMS) Formal Models

More information

An algebraic view of topological -machines

An algebraic view of topological -machines An algebraic view of topological -machines Luke Grecki Graduate Group in Applied Mathematics lgrecki@math.ucdavis.edu June 8, 2010 1 Contents 1 Semigroups 3 2 Semigroups of automata 4 3 -machine words

More information

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is, Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

Advanced Automata Theory 2 Finite Automata

Advanced Automata Theory 2 Finite Automata Advanced Automata Theory 2 Finite Automata Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced Automata Theory 2 Finite

More information

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004

Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004 Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004 Completeness Here we continue the program begun in the previous lecture to show the completeness of Kleene algebra for the equational

More information

CS243, Logic and Computation Nondeterministic finite automata

CS243, Logic and Computation Nondeterministic finite automata CS243, Prof. Alvarez NONDETERMINISTIC FINITE AUTOMATA (NFA) Prof. Sergio A. Alvarez http://www.cs.bc.edu/ alvarez/ Maloney Hall, room 569 alvarez@cs.bc.edu Computer Science Department voice: (67) 552-4333

More information

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers.

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers. 1. For each of the following statements indicate whether it is true or false. For the false ones (if any), provide a counter example. For the true ones (if any) give a proof outline. (a) Union of two non-regular

More information

Notes on Monoids and Automata

Notes on Monoids and Automata Notes on Monoids and Automata Uday S. Reddy November 9, 1994 In this article, I define a semantics for Algol programs with Reynolds s syntactic control of interference?;? in terms of comonoids in coherent

More information

On closures of lexicographic star-free languages. E. Ochmański and K. Stawikowska

On closures of lexicographic star-free languages. E. Ochmański and K. Stawikowska On closures of lexicographic star-free languages E. Ochmański and K. Stawikowska Preprint No 7/2005 Version 1, posted on April 19, 2005 On closures of lexicographic star-free languages Edward Ochma ski

More information

UNIT II REGULAR LANGUAGES

UNIT II REGULAR LANGUAGES 1 UNIT II REGULAR LANGUAGES Introduction: A regular expression is a way of describing a regular language. The various operations are closure, union and concatenation. We can also find the equivalent regular

More information

L is finite or cofinite}, A + k+1 = { L A + L is a boolean combination of languages of the form L 1 L n (n 1) with L 1, L n A +

L is finite or cofinite}, A + k+1 = { L A + L is a boolean combination of languages of the form L 1 L n (n 1) with L 1, L n A + Some Logical Characterizations of the Dot-Depth Hierarchy and Applications By: Francine Blanchet-Sadri F. Blanchet-Sadri, "Some Logical Characterizations of the Dot-Depth Hierarchy and Applications." Journal

More information

Computational Theory

Computational Theory Computational Theory Finite Automata and Regular Languages Curtis Larsen Dixie State University Computing and Design Fall 2018 Adapted from notes by Russ Ross Adapted from notes by Harry Lewis Curtis Larsen

More information

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k. Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Theory Of Computation UNIT-II

Theory Of Computation UNIT-II Regular Expressions and Context Free Grammars: Regular expression formalism- equivalence with finite automata-regular sets and closure properties- pumping lemma for regular languages- decision algorithms

More information

DEPARTMENT OF MATHEMATIC EDUCATION MATHEMATIC AND NATURAL SCIENCE FACULTY

DEPARTMENT OF MATHEMATIC EDUCATION MATHEMATIC AND NATURAL SCIENCE FACULTY HANDOUT ABSTRACT ALGEBRA MUSTHOFA DEPARTMENT OF MATHEMATIC EDUCATION MATHEMATIC AND NATURAL SCIENCE FACULTY 2012 BINARY OPERATION We are all familiar with addition and multiplication of two numbers. Both

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2017

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2017 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2017 Lecture 4 Ana Bove March 24th 2017 Structural induction; Concepts of automata theory. Overview of today s lecture: Recap: Formal Proofs

More information

RIGHT GROUP CONGRUENCES ON A SEMIGROUP

RIGHT GROUP CONGRUENCES ON A SEMIGROUP PROCEEDINGS OF THE AMERICAN MATHEMATICAL SOCIETY Volume 50, July 1975 RIGHT GROUP CONGRUENCES ON A SEMIGROUP FRANCIS E. MAS AT ABSTRACT. This paper develops necessary and sufficient conditions on an algebraic

More information

Equivalence of DFAs and NFAs

Equivalence of DFAs and NFAs CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs

More information

Regular expressions. Regular expressions. Regular expressions. Regular expressions. Remark (FAs with initial set recognize the regular languages)

Regular expressions. Regular expressions. Regular expressions. Regular expressions. Remark (FAs with initial set recognize the regular languages) Definition (Finite automata with set of initial states) A finite automata with set of initial states, or FA with initial set for short, is a 5-tupel (Q, Σ, δ, S, F ) where Q, Σ, δ, and F are defined as

More information

Great Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2

Great Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2 5-25 Great Theoretical Ideas in Computer Science Lecture 4: Deterministic Finite Automaton (DFA), Part 2 January 26th, 27 Formal definition: DFA A deterministic finite automaton (DFA) M =(Q,,,q,F) M is

More information

Context-Free and Noncontext-Free Languages

Context-Free and Noncontext-Free Languages Examples: Context-Free and Noncontext-Free Languages a*b* is regular. A n B n = {a n b n : n 0} is context-free but not regular. A n B n C n = {a n b n c n : n 0} is not context-free The Regular and the

More information

CSE 468, Fall 2006 Homework solutions 1

CSE 468, Fall 2006 Homework solutions 1 CSE 468, Fall 2006 Homework solutions 1 Homework 1 Problem 1. (a) To accept digit strings that contain 481: Q ={λ,4,48, 481}, Σ ={0,1,...,9}, q 0 = λ, A ={481}. To define δ, weuse a for all letters (well,

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

CS 154. Finite Automata, Nondeterminism, Regular Expressions

CS 154. Finite Automata, Nondeterminism, Regular Expressions CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set

More information

Semi-simple Splicing Systems

Semi-simple Splicing Systems Semi-simple Splicing Systems Elizabeth Goode CIS, University of Delaare Neark, DE 19706 goode@mail.eecis.udel.edu Dennis Pixton Mathematics, Binghamton University Binghamton, NY 13902-6000 dennis@math.binghamton.edu

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages

More information

Theory of Computation p.1/?? Theory of Computation p.2/?? Unknown: Implicitly a Boolean variable: true if a word is

Theory of Computation p.1/?? Theory of Computation p.2/?? Unknown: Implicitly a Boolean variable: true if a word is Abstraction of Problems Data: abstracted as a word in a given alphabet. Σ: alphabet, a finite, non-empty set of symbols. Σ : all the words of finite length built up using Σ: Conditions: abstracted as a

More information

Properties of Regular Languages (2015/10/15)

Properties of Regular Languages (2015/10/15) Chapter 4 Properties of Regular Languages (25//5) Pasbag, Turkey Outline 4. Proving Languages Not to e Regular 4.2 Closure Properties of Regular Languages 4.3 Decision Properties of Regular Languages 4.4

More information

Finite Automata and Regular languages

Finite Automata and Regular languages Finite Automata and Regular languages Huan Long Shanghai Jiao Tong University Acknowledgements Part of the slides comes from a similar course in Fudan University given by Prof. Yijia Chen. http://basics.sjtu.edu.cn/

More information

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations D. R. Wilkins Academic Year 1996-7 1 Number Systems and Matrix Algebra Integers The whole numbers 0, ±1, ±2, ±3, ±4,...

More information

Regular Expressions. Definitions Equivalence to Finite Automata

Regular Expressions. Definitions Equivalence to Finite Automata Regular Expressions Definitions Equivalence to Finite Automata 1 RE s: Introduction Regular expressions are an algebraic way to describe languages. They describe exactly the regular languages. If E is

More information

More on Finite Automata and Regular Languages. (NTU EE) Regular Languages Fall / 41

More on Finite Automata and Regular Languages. (NTU EE) Regular Languages Fall / 41 More on Finite Automata and Regular Languages (NTU EE) Regular Languages Fall 2016 1 / 41 Pumping Lemma is not a Sufficient Condition Example 1 We know L = {b m c m m > 0} is not regular. Let us consider

More information

51 Kronecker's Theorem

51 Kronecker's Theorem 1 Kronecker's Theorem In this paragraph, we prove an important theorem due to L. Kronecker which states that any polynomial over a field has a root in some extension field. It can be regarded as the fundamental

More information

Lecture 6. s S} is a ring.

Lecture 6. s S} is a ring. Lecture 6 1 Localization Definition 1.1. Let A be a ring. A set S A is called multiplicative if x, y S implies xy S. We will assume that 1 S and 0 / S. (If 1 / S, then one can use Ŝ = {1} S instead of

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION IDENTIFYING NONREGULAR LANGUAGES PUMPING LEMMA Carnegie Mellon University in Qatar (CARNEGIE MELLON UNIVERSITY IN QATAR) SLIDES FOR 15-453 LECTURE 5 SPRING 2011

More information

CHAPTER 4. βs as a semigroup

CHAPTER 4. βs as a semigroup CHAPTER 4 βs as a semigroup In this chapter, we assume that (S, ) is an arbitrary semigroup, equipped with the discrete topology. As explained in Chapter 3, we will consider S as a (dense ) subset of its

More information

Duality and Automata Theory

Duality and Automata Theory Duality and Automata Theory Mai Gehrke Université Paris VII and CNRS Joint work with Serge Grigorieff and Jean-Éric Pin Elements of automata theory A finite automaton a 1 2 b b a 3 a, b The states are

More information

Finite State Automata Design

Finite State Automata Design Finite State Automata Design Nicholas Mainardi 1 Dipartimento di Elettronica e Informazione Politecnico di Milano nicholas.mainardi@polimi.it March 14, 2017 1 Mostly based on Alessandro Barenghi s material,

More information

Properties of Context-free Languages. Reading: Chapter 7

Properties of Context-free Languages. Reading: Chapter 7 Properties of Context-free Languages Reading: Chapter 7 1 Topics 1) Simplifying CFGs, Normal forms 2) Pumping lemma for CFLs 3) Closure and decision properties of CFLs 2 How to simplify CFGs? 3 Three ways

More information

Context-Free Grammars (and Languages) Lecture 7

Context-Free Grammars (and Languages) Lecture 7 Context-Free Grammars (and Languages) Lecture 7 1 Today Beyond regular expressions: Context-Free Grammars (CFGs) What is a CFG? What is the language associated with a CFG? Creating CFGs. Reasoning about

More information

CS 154, Lecture 3: DFA NFA, Regular Expressions

CS 154, Lecture 3: DFA NFA, Regular Expressions CS 154, Lecture 3: DFA NFA, Regular Expressions Homework 1 is coming out Deterministic Finite Automata Computation with finite memory Non-Deterministic Finite Automata Computation with finite memory and

More information

Lecture 3: Nondeterministic Finite Automata

Lecture 3: Nondeterministic Finite Automata Lecture 3: Nondeterministic Finite Automata September 5, 206 CS 00 Theory of Computation As a recap of last lecture, recall that a deterministic finite automaton (DFA) consists of (Q, Σ, δ, q 0, F ) where

More information

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications What is discrete math? Propositional Logic The real numbers are continuous in the senses that: between any two real numbers there is a real number The integers do not share this property. In this sense

More information

Two questions on semigroup laws

Two questions on semigroup laws Two questions on semigroup laws O. Macedońska August 17, 2013 Abstract B. H. Neumann recently proved some implication for semigroup laws in groups. This may help in solution of a problem posed by G. M.

More information

NAME: Mathematics 205A, Fall 2008, Final Examination. Answer Key

NAME: Mathematics 205A, Fall 2008, Final Examination. Answer Key NAME: Mathematics 205A, Fall 2008, Final Examination Answer Key 1 1. [25 points] Let X be a set with 2 or more elements. Show that there are topologies U and V on X such that the identity map J : (X, U)

More information

CS 455/555: Mathematical preliminaries

CS 455/555: Mathematical preliminaries CS 455/555: Mathematical preliminaries Stefan D. Bruda Winter 2019 SETS AND RELATIONS Sets: Operations: intersection, union, difference, Cartesian product Big, powerset (2 A ) Partition (π 2 A, π, i j

More information

Properties of Context-Free Languages

Properties of Context-Free Languages Properties of Context-Free Languages Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr

More information

On non-hamiltonian circulant digraphs of outdegree three

On non-hamiltonian circulant digraphs of outdegree three On non-hamiltonian circulant digraphs of outdegree three Stephen C. Locke DEPARTMENT OF MATHEMATICAL SCIENCES, FLORIDA ATLANTIC UNIVERSITY, BOCA RATON, FL 33431 Dave Witte DEPARTMENT OF MATHEMATICS, OKLAHOMA

More information

SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC

SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC Logical Methods in Computer Science Vol. 12(1:5)2016, pp. 1 30 www.lmcs-online.org Submitted Jun. 4, 2014 Published Mar. 9, 2016 SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC THOMAS PLACE AND MARC

More information

F. Blanchet-Sadri and F.D. Gaddis, "On a Product of Finite Monoids." Semigroup Forum, Vol. 57, 1998, pp DOI: 10.

F. Blanchet-Sadri and F.D. Gaddis, On a Product of Finite Monoids. Semigroup Forum, Vol. 57, 1998, pp DOI: 10. On a Product of Finite Monoids By: F. Blanchet-Sadri and F. Dale Gaddis F. Blanchet-Sadri and F.D. Gaddis, "On a Product of Finite Monoids." Semigroup Forum, Vol. 57, 1998, pp 75-91. DOI: 10.1007/PL00005969

More information