Special Factors and Suffix and Factor Automata

Size: px
Start display at page:

Download "Special Factors and Suffix and Factor Automata"

Transcription

1 Special Factors and Suffix and Factor Automata LIAFA, Paris 5 November 2010

2 Finite Words Let Σ be a finite alphabet, e.g. Σ = {a, n, b, c}. A word over Σ is finite concatenation of symbols of Σ, that is, an element w Σ. If w = uv, u is called a prefix of w, and v a suffix of w. A factor of w is a prefix of a suffix of w (or, equiv. a suffix of a prefix). The empty word ε has length 0 and is factor of any word. A right infinite word is a non-ending concatenation of symbols of Σ.

3 Combinatorics of Finite Words Some examples of classes of finite words: palindromes: w R = w. Ex. radar, elle, ε.

4 Combinatorics of Finite Words Some examples of classes of finite words: palindromes: w R = w. Ex. radar, elle, ε. balanced words: for every a Σ, all the factors of the same length have the same number of a s up to 1. Ex. abaababaabaab.

5 Combinatorics of Finite Words Some examples of classes of finite words: palindromes: w R = w. Ex. radar, elle, ε. balanced words: for every a Σ, all the factors of the same length have the same number of a s up to 1. Ex. abaababaabaab. differentiable words: words over Σ such that their Run-Length Encoding is still a word over Σ. Ex over Σ = {1, 2}

6 Combinatorics of Finite Words Some examples of classes of finite words: palindromes: w R = w. Ex. radar, elle, ε. balanced words: for every a Σ, all the factors of the same length have the same number of a s up to 1. Ex. abaababaabaab. differentiable words: words over Σ such that their Run-Length Encoding is still a word over Σ. Ex over Σ = {1, 2} central, mechanical, rich, trapezoidal, etc.

7 Combinatorics of Finite Words Some examples of classes of finite words: palindromes: w R = w. Ex. radar, elle, ε. balanced words: for every a Σ, all the factors of the same length have the same number of a s up to 1. Ex. abaababaabaab. differentiable words: words over Σ such that their Run-Length Encoding is still a word over Σ. Ex over Σ = {1, 2} central, mechanical, rich, trapezoidal, etc. finite factors of infinite words: Sturmian and Episturmian words, smooth words, etc.

8 The Suffix Automaton Definition (A. Blumer et al. 85 M. Crochemore 86) The Suffix Automaton (or suffix DAWG) of the word w is the minimal deterministic automaton recognizing the suffixes of w. Example The SA of w = aabbabb: a a b b a b b b b 3 b 4 b a a 3

9 Algorithmic construction The SA allows the search of a pattern v in a text w in time and space O( v ). Theorem (A. Blumer et al. 85 M. Crochemore 86) The SA of a word w over a fixed alphabet Σ can be built in time and space O( w ).

10 One way to build the SA Build a naif non-deterministic automaton: w = aabbabb a a b b a b b

11 One way to build the SA Build a naif non-deterministic automaton: w = aabbabb a a b b a b b Determinize by subset construction: a a b b a b b {0, 1, 2,...,7} {1, 2, 5} {2} {3} {4} {5} {6} {7} b b b {3, 6} {4, 7} b a a {3, 4, 6, 7}

12 Ending Positions We associate to each factor v of w the set of ending positions of v in w. It is noted Endset w (v). Example w = a a b b a b b Endset w (ba) = {5}, Endset w (abb) = Endset w (bb) = {4, 7}.

13 Ending Positions We associate to each factor v of w the set of ending positions of v in w. It is noted Endset w (v). Example w = a a b b a b b Endset w (ba) = {5}, Endset w (abb) = Endset w (bb) = {4, 7}. Define on Fact(w) the equivalence: u SA v Endset w (u) = Endset w (v)

14 Ending Positions u SA v Endset w (u) = Endset w (v) Remark u SA v if and only if for any z Σ one has uz Suff(w) vz Suff(w) Remark Fact(w)/ SA is in bijection with the set of states of the SA of w.

15 The number of states of SA The number of states (classes) of the SA of w is therefore SA(w) = Fact(w)/ SA

16 The number of states of SA The number of states (classes) of the SA of w is therefore SA(w) = Fact(w)/ SA The bounds are well known: w + 1 SA(w) 2 w 1

17 The number of states of SA The number of states (classes) of the SA of w is therefore SA(w) = Fact(w)/ SA The bounds are well known: w + 1 SA(w) 2 w 1 The upper bound is reached for w = ab w 1, with a b.

18 The number of states of SA The number of states (classes) of the SA of w is therefore SA(w) = Fact(w)/ SA The bounds are well known: w + 1 SA(w) 2 w 1 The upper bound is reached for w = ab w 1, with a b. And for the lower bound?

19 The number of states of SA The number of states (classes) of the SA of w is therefore SA(w) = Fact(w)/ SA The bounds are well known: w + 1 SA(w) 2 w 1 The upper bound is reached for w = ab w 1, with a b. And for the lower bound? Problem (J. Berstel and M. Crochemore) Characterize the language L SA of words such that SA(w) = w + 1.

20 Special Factors Definition v is a left special factor of w if there exist a b such that av and bv are factors of w. v is a right special factor of w if there exist a b such that va and vb are factors of w. v is a bispecial factor of w if it is both left and right special.

21 Special Factors Definition v is a left special factor of w if there exist a b such that av and bv are factors of w. v is a right special factor of w if there exist a b such that va and vb are factors of w. v is a bispecial factor of w if it is both left and right special. Example ab is left special w = aabbabb

22 Special Factors Definition v is a left special factor of w if there exist a b such that av and bv are factors of w. v is a right special factor of w if there exist a b such that va and vb are factors of w. v is a bispecial factor of w if it is both left and right special. Example ab is left special b is right special w = aabbabb

23 Special Factors Definition v is a left special factor of w if there exist a b such that av and bv are factors of w. v is a right special factor of w if there exist a b such that va and vb are factors of w. v is a bispecial factor of w if it is both left and right special. Example ab is left special b is right special a and b are bispecial w = aabbabb

24 The number of states of SA Theorem (G. Fici 09) SA(w) = w S L w P w S L w = number of left special factors of w P w = length of the shortest prefix of w which is not left special

25 The number of states of SA Theorem (G. Fici 09) SA(w) = w S L w P w S L w = number of left special factors of w P w = length of the shortest prefix of w which is not left special Corollary (M. Sciortino and L.Q. Zamboni 07 G. Fici 09) w L SA if and only if every special factor of w is a prefix of w.

26 Example Example The SA of w = aabbabb: a a b b a b b b b 3 b 4 b a a 3 S L w = 5 since the left special factors of w are ɛ, a, b, ab, abb. P w = 2 since a is left special in w. SA(w) = w S L w P w = = 11.

27 Binary words Let f w denote the factor complexity of w, i.e. the function counting the number of distinct factors of w of each length. A binary word is a word w such that f w (1) = 2, i.e. having 2 distinct factors of length 1. Lemma Let w be a binary word. Then S L w = w H w. S L w = number of left special factors of w H w = length of the shortest unrepeated prefix of w

28 Binary words For binary words we thus have the formula: SA(w) = 2 w + 1 (H w + P w ) H w = length of the shortest unrepeated prefix of w P w = length of the shortest prefix of w which is not left special

29 Binary words For binary words we thus have the formula: SA(w) = 2 w + 1 (H w + P w ) H w = length of the shortest unrepeated prefix of w P w = length of the shortest prefix of w which is not left special As a corollary we obtain a new characterization of the set of prefixes of standard Sturmian words: Corollary A binary word w is a prefix of a standard Sturmian word if and only if w = H w + P w.

30 Example Example (w = aabbabb) a a b b a b b b b 3 b 4 b a a 3 H w = 2 since aa occurs only once in w. P w = 2 since a is left special in w. SA(w) = (2 + 2) = 11

31 The number of edges What about the number of edges E w?

32 The number of edges What about the number of edges E w? The bounds on E w are well known: w E w 3 w 4

33 The number of edges What about the number of edges E w? The bounds on E w are well known: w E w 3 w 4 For binary words we have the formula: Lemma E w = SA(w) + G(w) 1 G(w) is the union of the sets of bispecial factors and right special prefixes of w.

34 Example Example (w = aabbabb) a a b b a b b b b 3 b 4 b a a 3 G(w) = BIS(w) (Pref (w) RS(w)) = {ε, a, b} {ε, a} E w = SA(w) + G(w) 1 = = 13.

35 Standard Sturmian words A standard Sturmian word is the cutting sequence of a straight line of irrational slope and starting from the origin on the discrete plane. Lemma A right infinite word w is a standard Sturmian word if and only if the left special factors of w are prefixes of w.

36 The class of LSP words w L SA if and only if every special factor of w is a prefix of w.

37 The class of LSP words w L SA if and only if every special factor of w is a prefix of w. Corollary If Σ = 2, then w L SA if and only if w is prefix of a standard Sturmian word.

38 The class of LSP words w L SA if and only if every special factor of w is a prefix of w. Corollary If Σ = 2, then w L SA if and only if w is prefix of a standard Sturmian word. Corollary If Σ > 2, then: w is prefix of a standard Episturmian word w L SA. w is prefix of a standard ϑ-episturmian word w L SA (ϑ being any involutory antimorphism of Σ, i.e. such that ϑ(uv) = ϑ(v)ϑ(u) and ϑ ϑ = id).

39 The class of LSP words Definition A right infinite word w is LSP if the special factors of w are prefixes of w. So, if Σ = 2, LSP is the class of standard Sturmian words.

40 The class of LSP words Definition A right infinite word w is LSP if the special factors of w are prefixes of w. So, if Σ = 2, LSP is the class of standard Sturmian words. Problem Characterize the class of LSP words, over an arbitrary fixed alphabet Σ.

41 The class of LSP words Remark LSP words are, in general, not closed under reversal. Example Let φ be the morphism defined by a abcaab, b abc, and let w = φ(f ), the image of the Fibonacci word under φ. Then, for each n > 0, w has 1 l.s.f. but more than 1 r.s.f. of length n. Thus, the class of standard Episturmian words is strictly included in the class of LSP words.

42 The Factor Automaton Definition (A. Blumer et al. 85 M. Crochemore 86) The Factor Automaton (or factor DAWG) of the word w is the minimal deterministic automaton recognizing the factors of w. Example The FA of w = aabbabb: b a a b b a b b b 3 b a

43 Comparison between SA and FA Example (w=aabbabb) a a b b a b b b b 3 b 4 b a a 3 b a a b b a b b b 3 b a States 3 and 3 and states 4 and 4 have been identified.

44 Future Definition The future of v in w is what follows, in w, the occurrences of v: Fut w (v) = {z Σ : vz Fact(w)}

45 Future Definition The future of v in w is what follows, in w, the occurrences of v: Fut w (v) = {z Σ : vz Fact(w)} Example w = abbaabab Fut w (ba) = {ɛ, a, ab, aba, abab, b}.

46 Future Definition The future of v in w is what follows, in w, the occurrences of v: Fut w (v) = {z Σ : vz Fact(w)} Example w = abbaabab Fut w (ba) = {ɛ, a, ab, aba, abab, b}. Define on Fact(w) the equivalence: u FA v Fut w (u) = Fut w (v)

47 Future u FA v Fut w (u) = Fut w (v) Remark u FA v if and only if for any z Σ one has uz Fact(w) vz Fact(w) Remark Fact(w)/ FA is in bijection with the set of states of the FA of w.

48 The number of states of FA The number of states (classes) of the FA of w is therefore FA(w) = Fact(w)/ FA

49 The number of states of FA The number of states (classes) of the FA of w is therefore FA(w) = Fact(w)/ FA The bounds are well known: w + 1 FA(w) 2 w 2

50 The number of states of FA The number of states (classes) of the FA of w is therefore FA(w) = Fact(w)/ FA The bounds are well known: w + 1 FA(w) 2 w 2 The upper bound is reached for w = ab w 2 c, with a b c.

51 The number of states of FA The number of states (classes) of the FA of w is therefore FA(w) = Fact(w)/ FA The bounds are well known: w + 1 FA(w) 2 w 2 The upper bound is reached for w = ab w 2 c, with a b c. And for the lower bound?

52 The number of states of FA The number of states (classes) of the FA of w is therefore FA(w) = Fact(w)/ FA The bounds are well known: w + 1 FA(w) 2 w 2 The upper bound is reached for w = ab w 2 c, with a b c. And for the lower bound? Problem (J. Berstel and M. Crochemore) Characterize the language L FA of words such that FA(w) = w + 1.

53 Inclusion Remark If u SA v then u FA v. The converse is not true: Example w = abcaca Fut w (bc) = Fut w (c) but c appears also in position 5.

54 Inclusion Remark If u SA v then u FA v. The converse is not true: Example w = abcaca Fut w (bc) = Fut w (c) but c appears also in position 5. Clearly: FA(w) SA(w) and so L SA L FA.

55 Inclusion L SA L FA Example w = abcc We have SA(w) = 6 > w + 1, so w / L SA. Nevertheless FA(w) = 5 = w + 1, so w L FA.

56 The number of states of FA Does a formula for FA(w) exist?

57 The number of states of FA Does a formula for FA(w) exist? Definition (A. Blumer et al. 84) The stem of w is the shortest non-empty prefix v of the longest repeated suffix k of w such that v appears as prefix of k preceded by letter b and all other occurrences of v in w are preceded by letter a b, whenever such a prefix exists; otherwise it is undefined.

58 The number of states of FA Does a formula for FA(w) exist? Definition (A. Blumer et al. 84) The stem of w is the shortest non-empty prefix v of the longest repeated suffix k of w such that v appears as prefix of k preceded by letter b and all other occurrences of v in w are preceded by letter a b, whenever such a prefix exists; otherwise it is undefined. Example stem(aabbab) = ab stem(abacbb) is undefined.

59 The number of states of FA Lemma (A. Blumer et al. 84) The SA-classes that are identified by the FA-equivalence correspond to the prefixes x of the longest repeated suffix of w such that x stem(w).

60 The number of states of FA So we can define a new parameter: Definition stem(w) SK w = K w if stem(w) is defined otherwise K w = length of the shortest unrepeated suffix of w

61 The number of states of FA So we can define a new parameter: Definition stem(w) SK w = K w if stem(w) is defined otherwise K w = length of the shortest unrepeated suffix of w This allows us to derive a formula for FA(w) : Theorem FA(w) = w Sw L P w K w + SK w Sw L = number of left special factors of w P w = length of the shortest prefix of w which is not left special

62 The language L FA Let k = uv be the longest repeated suffix of w, where u is the longest prefix of k that is also prefix of w. Then v is the characteristic suffix of w. Any word w can be uniquely factorized as w = w v.

63 The language L FA Let k = uv be the longest repeated suffix of w, where u is the longest prefix of k that is also prefix of w. Then v is the characteristic suffix of w. Any word w can be uniquely factorized as w = w v. w u k k u v u v w

64 The language L FA Let k = uv be the longest repeated suffix of w, where u is the longest prefix of k that is also prefix of w. Then v is the characteristic suffix of w. Any word w can be uniquely factorized as w = w v. w u k k u v u v w Theorem The word w L FA if and only if its prefix w L SA.

65 Examples Example Let w = abaacaaa. The longest repeated suffix of w is v = aa, and the longest prefix of aa which is also a prefix of w is a. Then v = a and w = abaacaa. We have w / L FA, and w / L SA.

66 Examples Example Let w = abaacaaa. The longest repeated suffix of w is v = aa, and the longest prefix of aa which is also a prefix of w is a. Then v = a and w = abaacaa. We have w / L FA, and w / L SA. Example Let w = abaababbaa. The longest repeated suffix of w is v = baa. Then w = abaabab L SA, so w L FA.

67 Remarks Take Σ = 2. Definition A word w is trapezoidal if the factor complexity of w verifies f w (n + 1) f w (n) + 1 for every n 0. Definition A word w is rich if it contains w + 1 palindromic factors. We have: Proposition (A. de Luca 99) w balanced w trapezoidal Proposition (A. de Luca, A. Glen and L.Q. Zamboni 08) w trapezoidal w rich

68 Remarks Example Let w = abaababbaa. The longest repeated suffix of w is v = baa. Then w = abaabab L SA, so w L FA. Remarks: w is not balanced, since aa, bb Fact(w), w is not trapezoidal, since it has four factors of length 2, w is not rich, since it has only w palindromic factors: ε, a, b, aa, bb, aba, bab, abba, baab, abaaba.

69 Conclusions and future work We characterized the words in L SA and L FA, solving thus the problem of Berstel and Crochemore. In agenda: Characterize the balanced (or the trapezoidal, or the rich) words in L FA. Investigate LSP words. Apply an analogous approach with other data structures, e.g. suffix tree, suffix array, etc.

70 Thank you!

Combinatorics on Finite Words and Data Structures

Combinatorics on Finite Words and Data Structures Combinatorics on Finite Words and Data Structures Dipartimento di Informatica ed Applicazioni Università di Salerno (Italy) Laboratoire I3S - Université de Nice-Sophia Antipolis 13 March 2009 Combinatorics

More information

Words with the Smallest Number of Closed Factors

Words with the Smallest Number of Closed Factors Words with the Smallest Number of Closed Factors Gabriele Fici Zsuzsanna Lipták Abstract A word is closed if it contains a factor that occurs both as a prefix and as a suffix but does not have internal

More information

Sturmian Words, Sturmian Trees and Sturmian Graphs

Sturmian Words, Sturmian Trees and Sturmian Graphs Sturmian Words, Sturmian Trees and Sturmian Graphs A Survey of Some Recent Results Jean Berstel Institut Gaspard-Monge, Université Paris-Est CAI 2007, Thessaloniki Jean Berstel (IGM) Survey on Sturm CAI

More information

ON THE LEAST NUMBER OF PALINDROMES IN AN INFINITE WORD

ON THE LEAST NUMBER OF PALINDROMES IN AN INFINITE WORD ON THE LEAST NUMBER OF PALINDROMES IN AN INFINITE WORD GABRIELE FICI AND LUCA Q. ZAMBONI ABSTRACT. We investigate the least number of palindromic factors in an infinite word. We first consider general

More information

Combinatorics On Sturmian Words. Amy Glen. Major Review Seminar. February 27, 2004 DISCIPLINE OF PURE MATHEMATICS

Combinatorics On Sturmian Words. Amy Glen. Major Review Seminar. February 27, 2004 DISCIPLINE OF PURE MATHEMATICS Combinatorics On Sturmian Words Amy Glen Major Review Seminar February 27, 2004 DISCIPLINE OF PURE MATHEMATICS OUTLINE Finite and Infinite Words Sturmian Words Mechanical Words and Cutting Sequences Infinite

More information

1 Alphabets and Languages

1 Alphabets and Languages 1 Alphabets and Languages Look at handout 1 (inference rules for sets) and use the rules on some examples like {a} {{a}} {a} {a, b}, {a} {{a}}, {a} {{a}}, {a} {a, b}, a {{a}}, a {a, b}, a {{a}}, a {a,

More information

FABER Formal Languages, Automata. Lecture 2. Mälardalen University

FABER Formal Languages, Automata. Lecture 2. Mälardalen University CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2010 1 Content Languages, g Alphabets and Strings Strings & String Operations Languages & Language Operations

More information

Open and closed factors of Arnoux-Rauzy words arxiv: v1 [math.co] 12 Oct 2018 Olga Parshina 1,2 and Luca Zamboni 1

Open and closed factors of Arnoux-Rauzy words arxiv: v1 [math.co] 12 Oct 2018 Olga Parshina 1,2 and Luca Zamboni 1 Open and closed factors of Arnoux-Rauzy words arxiv:18.05472v1 [math.co] 12 Oct 2018 Olga Parshina 1,2 and Luca Zamboni 1 1 Université de Lyon, Université Lyon 1, CNRS UMR 5208, Institut Camille Jordan,

More information

On different generalizations of episturmian words

On different generalizations of episturmian words Theoretical Computer Science 393 (2008) 23 36 www.elsevier.com/locate/tcs On different generalizations of episturmian words Michelangelo Bucci a, Aldo de Luca a,, Alessandro De Luca a, Luca Q. Zamboni

More information

A Fine and Wilf s theorem for pseudoperiods and Justin s formula for generalized pseudostandard words

A Fine and Wilf s theorem for pseudoperiods and Justin s formula for generalized pseudostandard words A Fine and Wilf s theorem for pseudoperiods and Justin s formula for generalized pseudostandard words A. Blondin Massé 1,2, G. Paquin 2 and L. Vuillon 2 1 Laboratoire de Combinatoire et d Informatique

More information

FIXED POINTS OF MORPHISMS AMONG BINARY GENERALIZED PSEUDOSTANDARD WORDS

FIXED POINTS OF MORPHISMS AMONG BINARY GENERALIZED PSEUDOSTANDARD WORDS #A21 INTEGERS 18 (2018) FIXED POINTS OF MORPHISMS AMONG BINARY GENERALIZED PSEUDOSTANDARD WORDS Tereza Velká Department of Mathematics, Faculty of Nuclear Sciences and Physical Engineering, Czech Technical

More information

The free group F 2, the braid group B 3, and palindromes

The free group F 2, the braid group B 3, and palindromes The free group F 2, the braid group B 3, and palindromes Christian Kassel Université de Strasbourg Institut de Recherche Mathématique Avancée CNRS - Université Louis Pasteur Strasbourg, France Deuxième

More information

Semigroup presentations via boundaries in Cayley graphs 1

Semigroup presentations via boundaries in Cayley graphs 1 Semigroup presentations via boundaries in Cayley graphs 1 Robert Gray University of Leeds BMC, Newcastle 2006 1 (Research conducted while I was a research student at the University of St Andrews, under

More information

arxiv: v1 [math.co] 22 Jan 2013

arxiv: v1 [math.co] 22 Jan 2013 A Coloring Problem for Sturmian and Episturmian Words Aldo de Luca 1, Elena V. Pribavkina 2, and Luca Q. Zamboni 3 arxiv:1301.5263v1 [math.co] 22 Jan 2013 1 Dipartimento di Matematica Università di Napoli

More information

BOUNDS ON ZIMIN WORD AVOIDANCE

BOUNDS ON ZIMIN WORD AVOIDANCE BOUNDS ON ZIMIN WORD AVOIDANCE JOSHUA COOPER* AND DANNY RORABAUGH* Abstract. How long can a word be that avoids the unavoidable? Word W encounters word V provided there is a homomorphism φ defined by mapping

More information

arxiv: v2 [math.co] 24 Oct 2012

arxiv: v2 [math.co] 24 Oct 2012 On minimal factorizations of words as products of palindromes A. Frid, S. Puzynina, L. Zamboni June 23, 2018 Abstract arxiv:1210.6179v2 [math.co] 24 Oct 2012 Given a finite word u, we define its palindromic

More information

Conference on Diophantine Analysis and Related Fields 2006 in honor of Professor Iekata Shiokawa Keio University Yokohama March 8, 2006

Conference on Diophantine Analysis and Related Fields 2006 in honor of Professor Iekata Shiokawa Keio University Yokohama March 8, 2006 Diophantine analysis and words Institut de Mathématiques de Jussieu + CIMPA http://www.math.jussieu.fr/ miw/ March 8, 2006 Conference on Diophantine Analysis and Related Fields 2006 in honor of Professor

More information

CS 133 : Automata Theory and Computability

CS 133 : Automata Theory and Computability CS 133 : Automata Theory and Computability Lecture Slides 1 Regular Languages and Finite Automata Nestine Hope S. Hernandez Algorithms and Complexity Laboratory Department of Computer Science University

More information

6.8 The Post Correspondence Problem

6.8 The Post Correspondence Problem 6.8. THE POST CORRESPONDENCE PROBLEM 423 6.8 The Post Correspondence Problem The Post correspondence problem (due to Emil Post) is another undecidable problem that turns out to be a very helpful tool for

More information

FINE AND WILF WORDS FOR ANY PERIODS II. R. Tijdeman and L.Q. Zamboni

FINE AND WILF WORDS FOR ANY PERIODS II. R. Tijdeman and L.Q. Zamboni FINE AND WILF WORDS FOR ANY PERIODS II R. Tijdeman and L.Q. Zamboni Abstract. Given positive integers n, and p 1,..., p r, we define a fast word combinatorial algorithm for constructing a word w = w 1

More information

Dynamic Programming. Shuang Zhao. Microsoft Research Asia September 5, Dynamic Programming. Shuang Zhao. Outline. Introduction.

Dynamic Programming. Shuang Zhao. Microsoft Research Asia September 5, Dynamic Programming. Shuang Zhao. Outline. Introduction. Microsoft Research Asia September 5, 2005 1 2 3 4 Section I What is? Definition is a technique for efficiently recurrence computing by storing partial results. In this slides, I will NOT use too many formal

More information

Author: Vivek Kulkarni ( )

Author: Vivek Kulkarni ( ) Author: Vivek Kulkarni ( vivek_kulkarni@yahoo.com ) Chapter-3: Regular Expressions Solutions for Review Questions @ Oxford University Press 2013. All rights reserved. 1 Q.1 Define the following and give

More information

On Strong Alt-Induced Codes

On Strong Alt-Induced Codes Applied Mathematical Sciences, Vol. 12, 2018, no. 7, 327-336 HIKARI Ltd, www.m-hikari.com https://doi.org/10.12988/ams.2018.8113 On Strong Alt-Induced Codes Ngo Thi Hien Hanoi University of Science and

More information

FINE AND WILF WORDS FOR ANY PERIODS II. R. Tijdeman and L. Zamboni

FINE AND WILF WORDS FOR ANY PERIODS II. R. Tijdeman and L. Zamboni FINE AND WILF WORDS FOR ANY PERIODS II R. Tijdeman and L. Zamboni Abstract. In 2003 the authors introduced a fast algorithm to determine the word w = w 1...w n of maximal length n, and with a maximal number

More information

From p-adic numbers to p-adic words

From p-adic numbers to p-adic words From p-adic numbers to p-adic words Jean-Éric Pin1 1 January 2014, Lorentz Center, Leiden References I S. Eilenberg, Automata, Languages and Machines, Vol B, Acad. Press, New-York (1976). M. Lothaire,

More information

A Generalization of Sturmian Sequences; Combinatorial Structure and Transcendence

A Generalization of Sturmian Sequences; Combinatorial Structure and Transcendence A Generalization of Sturmian Sequences; Combinatorial Structure and Transcendence Rebecca N. Risley Department of Mathematics University of North Texas Denton, TX 76203-5116 rnr0002@jove.acs.unt.edu Luca

More information

DENSITY OF CRITICAL FACTORIZATIONS

DENSITY OF CRITICAL FACTORIZATIONS DENSITY OF CRITICAL FACTORIZATIONS TERO HARJU AND DIRK NOWOTKA Abstract. We investigate the density of critical factorizations of infinte sequences of words. The density of critical factorizations of a

More information

1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata.

1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata. Code No: R09220504 R09 Set No. 2 II B.Tech II Semester Examinations,December-January, 2011-2012 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 75 Answer

More information

A connection between palindromic and factor complexity using return words

A connection between palindromic and factor complexity using return words A connection between palindromic and factor complexity using return words Michelangelo Bucci Alessandro De Luca Amy Glen Luca Q. Zamboni June 8, 2008 Abstract In this paper we prove that for any infinite

More information

Theory of Computation

Theory of Computation Theory of Computation Lecture #2 Sarmad Abbasi Virtual University Sarmad Abbasi (Virtual University) Theory of Computation 1 / 1 Lecture 2: Overview Recall some basic definitions from Automata Theory.

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

How do regular expressions work? CMSC 330: Organization of Programming Languages

How do regular expressions work? CMSC 330: Organization of Programming Languages How do regular expressions work? CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata What we ve learned What regular expressions are What they can express, and cannot

More information

Theory of Computation

Theory of Computation Fall 2002 (YEN) Theory of Computation Midterm Exam. Name:... I.D.#:... 1. (30 pts) True or false (mark O for true ; X for false ). (Score=Max{0, Right- 1 2 Wrong}.) (1) X... If L 1 is regular and L 2 L

More information

European Journal of Combinatorics

European Journal of Combinatorics European Journal of Combinatorics 33 (202) 54 536 Contents lists available at SciVerse ScienceDirect European Journal of Combinatorics journal homepage: www.elsevier.com/locate/ejc A standard correspondence

More information

On the Average Complexity of Brzozowski s Algorithm for Deterministic Automata with a Small Number of Final States

On the Average Complexity of Brzozowski s Algorithm for Deterministic Automata with a Small Number of Final States On the Average Complexity of Brzozowski s Algorithm for Deterministic Automata with a Small Number of Final States Sven De Felice 1 and Cyril Nicaud 2 1 LIAFA, Université Paris Diderot - Paris 7 & CNRS

More information

Primitive partial words

Primitive partial words Discrete Applied Mathematics 148 (2005) 195 213 www.elsevier.com/locate/dam Primitive partial words F. Blanchet-Sadri 1 Department of Mathematical Sciences, University of North Carolina, P.O. Box 26170,

More information

CMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata

CMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC330 Spring 2018 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Theoretical Computer Science

Theoretical Computer Science Theoretical Computer Science Zdeněk Sawa Department of Computer Science, FEI, Technical University of Ostrava 17. listopadu 15, Ostrava-Poruba 708 33 Czech republic September 22, 2017 Z. Sawa (TU Ostrava)

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC 330 Spring 2017 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Theoretical Computer Science. From Nerode s congruence to suffix automata with mismatches

Theoretical Computer Science. From Nerode s congruence to suffix automata with mismatches Theoretical Computer Science 410 (2009) 3471 3480 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs From Nerode s congruence to suffix

More information

Generalized Thue-Morse words and palindromic richness

Generalized Thue-Morse words and palindromic richness Generalized Thue-Morse words and palindromic richness arxiv:1104.2476v3 [math.co] 10 Jul 2011 Štěpán Starosta Department of Mathematics, FNSPE, Czech Technical University in Prague, Trojanova 13, 120 00

More information

COM364 Automata Theory Lecture Note 2 - Nondeterminism

COM364 Automata Theory Lecture Note 2 - Nondeterminism COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly

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

SFWR ENG 2FA3. Solution to the Assignment #4

SFWR ENG 2FA3. Solution to the Assignment #4 SFWR ENG 2FA3. Solution to the Assignment #4 Total = 131, 100%= 115 The solutions below are often very detailed on purpose. Such level of details is not required from students solutions. Some questions

More information

Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries

Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries Harry Lewis September 5, 2013 Reading: Sipser, Chapter 0 Sets Sets are defined by their members A = B means that for every x, x A iff

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

Formal Definition of a Finite Automaton. August 26, 2013

Formal Definition of a Finite Automaton. August 26, 2013 August 26, 2013 Why a formal definition? A formal definition is precise: - It resolves any uncertainties about what is allowed in a finite automaton such as the number of accept states and number of transitions

More information

SUFFIX TREE. SYNONYMS Compact suffix trie

SUFFIX TREE. SYNONYMS Compact suffix trie SUFFIX TREE Maxime Crochemore King s College London and Université Paris-Est, http://www.dcs.kcl.ac.uk/staff/mac/ Thierry Lecroq Université de Rouen, http://monge.univ-mlv.fr/~lecroq SYNONYMS Compact suffix

More information

HW 3 Solutions. Tommy November 27, 2012

HW 3 Solutions. Tommy November 27, 2012 HW 3 Solutions Tommy November 27, 2012 5.1.1 (a) Online solution: S 0S1 ɛ. (b) Similar to online solution: S AY XC A aa ɛ b ɛ C cc ɛ X axb aa b Y by c b cc (c) S X A A A V AV a V V b V a b X V V X V (d)

More information

Pattern-Matching for Strings with Short Descriptions

Pattern-Matching for Strings with Short Descriptions Pattern-Matching for Strings with Short Descriptions Marek Karpinski marek@cs.uni-bonn.de Department of Computer Science, University of Bonn, 164 Römerstraße, 53117 Bonn, Germany Wojciech Rytter rytter@mimuw.edu.pl

More information

Generating DNA Code Words Using Forbidding and Enforcing Systems

Generating DNA Code Words Using Forbidding and Enforcing Systems Generating DNA Code Words Using Forbidding and Enforcing Systems Daniela Genova 1 and Kalpana Mahalingam 2 1 Department of Mathematics and Statistics University of North Florida Jacksonville, FL 32224,

More information

CS Automata, Computability and Formal Languages

CS Automata, Computability and Formal Languages Automata, Computability and Formal Languages Luc Longpré faculty.utep.edu/longpre 1 - Pg 1 Slides : version 3.1 version 1 A. Tapp version 2 P. McKenzie, L. Longpré version 2.1 D. Gehl version 2.2 M. Csűrös,

More information

Sturmian Trees. Jean Berstel Luc Boasson Olivier Carton Isabelle Fagnot

Sturmian Trees. Jean Berstel Luc Boasson Olivier Carton Isabelle Fagnot Theory Comput Syst (2010) 46: 443 478 DOI 10.1007/s00224-009-9228-0 Sturmian Trees Jean Berstel Luc Boasson Olivier Carton Isabelle Fagnot Published online: 24 July 2009 Springer Science+Business Media,

More information

Transducers for bidirectional decoding of prefix codes

Transducers for bidirectional decoding of prefix codes Transducers for bidirectional decoding of prefix codes Laura Giambruno a,1, Sabrina Mantaci a,1 a Dipartimento di Matematica ed Applicazioni - Università di Palermo - Italy Abstract We construct a transducer

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

Factorizations of the Fibonacci Infinite Word

Factorizations of the Fibonacci Infinite Word 2 3 47 6 23 Journal of Integer Sequences, Vol. 8 (205), Article 5.9.3 Factorizations of the Fibonacci Infinite Word Gabriele Fici Dipartimento di Matematica e Informatica Università di Palermo Via Archirafi

More information

Regularity-preserving letter selections

Regularity-preserving letter selections Regularity-preserving letter selections Armando B. Matos LIACC, Universidade do Porto Rua do Campo Alegre 823, 4150 Porto, Portugal 1 Introduction and definitions Seiferas and McNaughton gave in [SM76]

More information

Regular Expressions Kleene s Theorem Equation-based alternate construction. Regular Expressions. Deepak D Souza

Regular Expressions Kleene s Theorem Equation-based alternate construction. Regular Expressions. Deepak D Souza Regular Expressions Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 16 August 2012 Outline 1 Regular Expressions 2 Kleene s Theorem 3 Equation-based

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

Generalized Thue-Morse words and palindromic richness extended abstract

Generalized Thue-Morse words and palindromic richness extended abstract arxiv:1104.2476v2 [math.co] 26 Apr 2011 1 Introduction Generalized Thue-Morse words and palindromic richness extended abstract Štěpán Starosta Department of Mathematics, FNSPE, Czech Technical University

More information

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata.

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata. CMSC 330: Organization of Programming Languages Last Lecture Languages Sets of strings Operations on languages Finite Automata Regular expressions Constants Operators Precedence CMSC 330 2 Clarifications

More information

About Duval Extensions

About Duval Extensions About Duval Extensions Tero Harju Dirk Nowotka Turku Centre for Computer Science, TUCS Department of Mathematics, University of Turku June 2003 Abstract A word v = wu is a (nontrivial) Duval extension

More information

Chapter 6. Properties of Regular Languages

Chapter 6. Properties of Regular Languages Chapter 6 Properties of Regular Languages Regular Sets and Languages Claim(1). The family of languages accepted by FSAs consists of precisely the regular sets over a given alphabet. Every regular set is

More information

CS500 Homework #2 Solutions

CS500 Homework #2 Solutions CS500 Homework #2 Solutions 1. Consider the two languages Show that L 1 is context-free but L 2 is not. L 1 = {a i b j c k d l i = j k = l} L 2 = {a i b j c k d l i = k j = l} Answer. L 1 is the concatenation

More information

60-354, Theory of Computation Fall Asish Mukhopadhyay School of Computer Science University of Windsor

60-354, Theory of Computation Fall Asish Mukhopadhyay School of Computer Science University of Windsor 60-354, Theory of Computation Fall 2013 Asish Mukhopadhyay School of Computer Science University of Windsor Pushdown Automata (PDA) PDA = ε-nfa + stack Acceptance ε-nfa enters a final state or Stack is

More information

Automata: a short introduction

Automata: a short introduction ILIAS, University of Luxembourg Discrete Mathematics II May 2012 What is a computer? Real computers are complicated; We abstract up to an essential model of computation; We begin with the simplest possible

More information

Probabilistic Aspects of Computer Science: Probabilistic Automata

Probabilistic Aspects of Computer Science: Probabilistic Automata Probabilistic Aspects of Computer Science: Probabilistic Automata Serge Haddad LSV, ENS Paris-Saclay & CNRS & Inria M Jacques Herbrand Presentation 2 Properties of Stochastic Languages 3 Decidability Results

More information

Complexité palindromique des codages de rotations et conjectures

Complexité palindromique des codages de rotations et conjectures Complexité palindromique des codages de rotations et conjectures Sébastien Labbé Laboratoire d Informatique, de Robotique et de Microélectronique de Montpellier Université Montpellier 2 Laboratoire de

More information

Chapter 4. Regular Expressions. 4.1 Some Definitions

Chapter 4. Regular Expressions. 4.1 Some Definitions Chapter 4 Regular Expressions 4.1 Some Definitions Definition: If S and T are sets of strings of letters (whether they are finite or infinite sets), we define the product set of strings of letters to be

More information

Bourget-du-lac cedex, France. Extended Abstract

Bourget-du-lac cedex, France. Extended Abstract Codings of rotations on two intervals are full A. Blondin-Massé a, S. Brlek a, S. Labbé a, L. Vuillon b a Laboratoire de Combinatoire et d Informatique Mathématique, Un. du Québec à Montréal, CP 8888 Succ.

More information

CMSC 330: Organization of Programming Languages. Theory of Regular Expressions Finite Automata

CMSC 330: Organization of Programming Languages. Theory of Regular Expressions Finite Automata : Organization of Programming Languages Theory of Regular Expressions Finite Automata Previous Course Review {s s defined} means the set of string s such that s is chosen or defined as given s A means

More information

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

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compiler Design Spring 2011 Lexical Analysis Sample Exercises and Solutions Prof. Pedro C. Diniz USC / Information Sciences Institute 4676 Admiralty Way, Suite 1001 Marina del Rey, California 90292 pedro@isi.edu

More information

CSCI 2670 Introduction to Theory of Computing

CSCI 2670 Introduction to Theory of Computing CSCI 267 Introduction to Theory of Computing Agenda Last class Reviewed syllabus Reviewed material in Chapter of Sipser Assigned pages Chapter of Sipser Questions? This class Begin Chapter Goal for the

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science C1. Formal Languages and Grammars Malte Helmert University of Basel March 14, 2016 Introduction Example: Propositional Formulas from the logic part: Definition (Syntax of Propositional

More information

#A36 INTEGERS 12 (2012) FACTOR FREQUENCIES IN LANGUAGES INVARIANT UNDER SYMMETRIES PRESERVING FACTOR FREQUENCIES

#A36 INTEGERS 12 (2012) FACTOR FREQUENCIES IN LANGUAGES INVARIANT UNDER SYMMETRIES PRESERVING FACTOR FREQUENCIES #A36 INTEGERS 2 (202) FACTOR FREQUENCIES IN LANGUAGES INVARIANT UNDER SYMMETRIES PRESERVING FACTOR FREQUENCIES L ubomíra Balková Department of Mathematics, Faculty of Nuclear Sciences and Physical Engineering,

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

Author: Vivek Kulkarni ( )

Author: Vivek Kulkarni ( ) Author: Vivek Kulkarni ( vivek_kulkarni@yahoo.com ) Chapter-2: Finite State Machines Solutions for Review Questions @ Oxford University Press 2013. All rights reserved. 1 Q.1 Construct Mealy and Moore

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 4 Ana Bove March 23rd 2018 Recap: Formal Proofs How formal should a proof be? Depends on its purpose...... but should be convincing......

More information

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

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro Diniz Compiler Design Spring 2010 Lexical Analysis Sample Exercises and Solutions Prof. Pedro Diniz USC / Information Sciences Institute 4676 Admiralty Way, Suite 1001 Marina del Rey, California 90292 pedro@isi.edu

More information

Theoretical Computer Science

Theoretical Computer Science Theoretical Computer Science 411 (2010) 617 630 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs On a special class of primitive words

More information

Deletion operations: closure properties

Deletion operations: closure properties Deletion operations: closure properties Lila Kari Academy of Finland and Department of Mathematics 1 University of Turku 20500 Turku Finland June 3, 2010 KEY WORDS: right/left quotient, sequential deletion,

More information

Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages

Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages Fundamenta Informaticae 90 (2009) 93 106 93 DOI 10.3233/FI-2009-0008 IOS Press Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages Yo-Sub Han Intelligence and Interaction

More information

The wreath product principle for ordered semigroups

The wreath product principle for ordered semigroups The wreath product principle for ordered semigroups Jean-Eric Pin, Pascal Weil To cite this version: Jean-Eric Pin, Pascal Weil. The wreath product principle for ordered semigroups. Communications in Algebra,

More information

Finite Automata and Regular Languages

Finite Automata and Regular Languages Finite Automata and Regular Languages Topics to be covered in Chapters 1-4 include: deterministic vs. nondeterministic FA, regular expressions, one-way vs. two-way FA, minimization, pumping lemma for regular

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

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

One-relation languages and ω-code generators

One-relation languages and ω-code generators One-relation languages and ω-code generators Tran Vinh Duc, Igor Litovsky I3S Université de Nice - Sophia Antipolis France Journées Montoises d Informatique Théorique AMIENS, 2010 Infinite words Let A

More information

On Sturmian and Episturmian Words, and Related Topics

On Sturmian and Episturmian Words, and Related Topics On Sturmian and Episturmian Words, and Related Topics by Amy Glen Supervisors: Dr. Alison Wolff and Dr. Robert Clarke A thesis submitted in fulfilment of the requirements for the degree of Doctor of Philosophy

More information

arxiv: v1 [cs.dm] 16 Jan 2018

arxiv: v1 [cs.dm] 16 Jan 2018 Embedding a θ-invariant code into a complete one Jean Néraud, Carla Selmi Laboratoire d Informatique, de Traitemement de l Information et des Systèmes (LITIS), Université de Rouen Normandie, UFR Sciences

More information

10. The GNFA method is used to show that

10. The GNFA method is used to show that CSE 355 Midterm Examination 27 February 27 Last Name Sample ASU ID First Name(s) Ima Exam # Sample Regrading of Midterms If you believe that your grade has not been recorded correctly, return the entire

More information

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1)

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1) COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 1 September 4, 2017 1 / 9 Inductive Definitions Inductive definition (induction)

More information

Finite n-tape automata over possibly infinite alphabets: extending a Theorem of Eilenberg et al.

Finite n-tape automata over possibly infinite alphabets: extending a Theorem of Eilenberg et al. Finite n-tape automata over possibly infinite alphabets: extending a Theorem of Eilenberg et al. Christian Choffrut http://www.liafa.jussieu.fr/ cc cc@liafa.jussieu.fr Serge Grigorieff http://www.liafa.jussieu.fr/

More information

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3},

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3}, Code No: 07A50501 R07 Set No. 2 III B.Tech I Semester Examinations,MAY 2011 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All

More information

Section 1 (closed-book) Total points 30

Section 1 (closed-book) Total points 30 CS 454 Theory of Computation Fall 2011 Section 1 (closed-book) Total points 30 1. Which of the following are true? (a) a PDA can always be converted to an equivalent PDA that at each step pops or pushes

More information

Finite-State Machines (Automata) lecture 12

Finite-State Machines (Automata) lecture 12 Finite-State Machines (Automata) lecture 12 cl a simple form of computation used widely one way to find patterns 1 A current D B A B C D B C D A C next 2 Application Fields Industry real-time control,

More information

Crochemore factorization of Sturmian and other infinite words

Crochemore factorization of Sturmian and other infinite words WoWA,7june2006 1 Crochemore factorization of Sturmian and other infinite words Jean Berstel and Alessandra Savelli Institut Gaspard Monge Université de Marne la Vallée and CNRS(UMR 8049) Workshop on Words

More information

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission. CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this

More information

Avoiding Large Squares in Partial Words

Avoiding Large Squares in Partial Words Avoiding Large Squares in Partial Words F Blanchet-Sadri 1 Ilkyoo Choi 2 Robert Mercaş 3 April 5, 2011 Abstract Well-known results on the avoidance of large squares in (full) words include: (1) Fraenkel

More information

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I Internal Examination 2017-18 B.Tech III Year VI Semester Sub: Theory of Computation (6CS3A) Time: 1 Hour 30 min. Max Marks: 40 Note: Attempt all three

More information

Foundations of Informatics: a Bridging Course

Foundations of Informatics: a Bridging Course Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html

More information