Regular realizability problems and context-free languages

Size: px
Start display at page:

Download "Regular realizability problems and context-free languages"

Transcription

1 Regular realizability problems and context-free languages Alexander Rubtsov 23 Mikhail Vyalyi Computing Centre of Russian Academy of Sciences 2 Moscow Institute of Physics and Technology 3 National Research University Higher School of Economics 26 June 2015

2 1 Regular realizability problems Definition Examples Properties 2 Relation with -theory Rational cones Complexity of RR-Problems 3 Rational index

3 Regular realizability problems Relation with -theory Rational index Definition of the problems Filter We fix language F Σ called filter. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

4 Regular realizability problems Relation with -theory Rational index Definition of the problems Filter We fix language F Σ called filter. L(A) REG input of the problem, where A is NFA. Regular realizability problem NRR(F) = {A A NFA, L(A) F } A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

5 Regular realizability problems Relation with -theory Rational index Examples Periodic filters Per 1 = {(1 k #) n k, n N} 111#111# #111# Per 1 A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

6 Regular realizability problems Relation with -theory Rational index Examples Periodic filters Per 1 = {(1 k #) n k, n N} 111#111# #111# Per 1 The problem NRR(Per 1 ) is NP-complete A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

7 Regular realizability problems Relation with -theory Rational index Examples Periodic filters Per 1 = {(1 k #) n k, n N} 111#111# #111# Per 1 The problem NRR(Per 1 ) is NP-complete Per 2 = {(w#) n w Σ, Σ = 2, n N} w # w # # w # Per 2 A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

8 Regular realizability problems Relation with -theory Rational index Examples Periodic filters Per 1 = {(1 k #) n k, n N} 111#111# #111# Per 1 The problem NRR(Per 1 ) is NP-complete Per 2 = {(w#) n w Σ, Σ = 2, n N} w # w # # w # Per 2 The problem NRR(Per 2 ) is PSPACE-complete A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

9 Regular realizability problems Relation with -theory Rational index Examples Periodic filters Per 1 = {(1 k #) n k, n N} 111#111# #111# Per 1 The problem NRR(Per 1 ) is NP-complete Per 2 = {(w#) n w Σ, Σ = 2, n N} w # w # # w # Per 2 The problem NRR(Per 2 ) is PSPACE-complete Anderson T., Loftus J., Rampersad N., Santean N., Shallit J. Detecting palindromes, patterns and borders in regular languages. Information and Computation. Vol. 207, P M.V. Paper in Russian, A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

10 Regular realizability problems Relation with -theory Rational index Rational dominance Definition A language L A is rationally dominated by L B if there exists a rational relation R such that L = {u A v L (v, u) R} L rat L A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

11 Regular realizability problems Relation with -theory Rational index Rational transductions Definition A finite state transducer (FST) T(x) : Γ is a (nondeterministic) automaton with output tape T = (, Γ, Q, q 0, δ, F), where input alphabet; Γ output alphabet; Q set of states; δ : Q {ε} Γ {ε} Q transitions relation; q 0 initial state; F set of accepting states. If transducer T on input x has no path to accepting state, then T(x) =. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

12 Regular realizability problems Relation with -theory Rational index Rational transductions In other words L rat L T FST : L = T(L ) A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

13 Regular realizability problems Relation with -theory Rational index Reduction on filters Proposition F 1 rat F 2 NRR(F 1 ) log NRR(F 2 ) A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

14 1 Regular realizability problems Definition Examples Properties 2 Relation with -theory Rational cones Complexity of RR-Problems 3 Rational index

15 Regular realizability problems Relation with -theory Rational index Rational cone Definition A rational cone is a class of languages closed under rational dominance. Denote by T (L) the least rational cone that includes language L and call it rational cone generated by L. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

16 Regular realizability problems Relation with -theory Rational index Rational cone Definition A rational cone is a class of languages closed under rational dominance. Denote by T (L) the least rational cone that includes language L and call it rational cone generated by L. Theorem (Chomsky, Schützenberger) T (D 2 ) = D n = S SS a 1 Sā 1 a nsā n ε. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

17 Regular realizability problems Relation with -theory Rational index J. Berstel s book cover A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

18 D 2 GRE QRT FCL S D 1 LIN ROCL REG

19 D 2 REG

20 D 2 T (D 2 ) = REG

21 D 2 T (D 2 ) = NRR(D 2 ) is P-complete REG

22 D 2 T (D 2 ) = NRR(D 2 ) is P-complete L NRR(L) P P REG

23 D 2 T (Σ ) = REG P REG

24 D 2 T (Σ ) = REG NRR(Σ ) is -complete P REG

25 D 2 T (Σ ) = REG NRR(Σ ) is -complete L REG NRR(L) P REG

26 D 2 P GRE QRT FCL S D 1 LIN ROCL REG

27 D 2 P GRE QRT FCL S D 1 LIN ROCL

28 D 2 LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε P GRE QRT FCL S D 1 LIN ROCL

29 D 2 LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε NRR(S) P GRE QRT FCL S D 1 LIN ROCL

30 Th. (Anderson, Loftus, Rampersad, Santean, Shallit, 2009) Similar theorem about palindromes: NRR(PAL). D 2 P LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε NRR(S) GRE QRT FCL S D 1 LIN ROCL

31 D 2 P LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε NRR(S) QRT = T σ (LIN) GRE S QRT FCL D 1 LIN ROCL

32 Lemma If L, L a for all a A, are easy languages then σ(l) is also easy. D 2 P LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε NRR(S) QRT = T σ (LIN) GRE S QRT FCL D 1 LIN ROCL

33 D 2 P LIN is generated by Symmetric language S a 1 Sā 1 a nsā n ε NRR(S) QRT = T σ (LIN) GRE S QRT FCL D 1 LIN ROCL

34 D 2 ROCL is generated by D 1 P GRE QRT FCL S D 1 LIN ROCL

35 Lemma If L c recognizable by a counter automaton, then NRR(L c). Thanks to Abuzer Yakaryilmaz for the key-lemma. D 2 P ROCL is generated by D 1 NRR(D 1 ) GRE QRT FCL S D 1 LIN ROCL

36 D 2 ROCL is generated by D 1 NRR(D 1 ) FCL = T σ (ROCL) P GRE S QRT FCL D 1 LIN ROCL

37 D 2 ROCL is generated by D 1 NRR(D 1 ) FCL = T σ (ROCL) P GRE S LIN QRT FCL D 1 ROCL

38 D 2 NRR(FCL) P GRE S LIN QRT FCL D 1 ROCL

39 D 2 NRR(FCL) NRR(QRT) P GRE S LIN QRT FCL D 1 ROCL

40 D 2 NRR(FCL) NRR(QRT) GRE = T σ (LIN ROCL) P GRE QRT FCL S LIN D 1 ROCL

41 D 2 P NRR(FCL) NRR(QRT) GRE = T σ (LIN ROCL) NRR(GRE) GRE S QRT FCL D 1 LIN ROCL

42 D 2 P GRE S QRT FCL D 1 LIN ROCL

43 D 2 S # P GRE S QRT FCL D 1 LIN ROCL

44 D 2 Theorem NRR(S ) is P-complete under # deterministic log space reductions. S # P GRE S QRT FCL D 1 LIN ROCL

45 1 Regular realizability problems Definition Examples Properties 2 Relation with -theory Rational cones Complexity of RR-Problems 3 Rational index

46 Regular realizability problems Relation with -theory Rational index Rational index Definition The rational index ρ L (n) of a language L is a function that returns the maximum length of the shortest word from the intersection of the language L and a language L(A) recognizing by an automaton A with n states provided L(A) L : ρ L (n) = max (min{ w : w L(A) L }) A: Q A =n w A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

47 Regular realizability problems Relation with -theory Rational index Rational index Definition The rational index ρ L (n) of a language L is a function that returns the maximum length of the shortest word from the intersection of the language L and a language L(A) recognizing by an automaton A with n states provided L(A) L : ρ L (n) = max (min{ w : w L(A) L }) A: Q A =n w Theorem (Boasson, Courcelle, Nivat, 1981) If L rat L then there exists a constant c such that ρ L (n) cn(ρ L (cn) + 1). A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

48 Regular realizability problems Relation with -theory Rational index Properties of rational index Proposition Rational index of an arbitrary context-free language is bounded from below by a linear function. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

49 Regular realizability problems Relation with -theory Rational index Properties of rational index Proposition Rational index of an arbitrary context-free language is bounded from below by a linear function. Theorem (Pierre 1992) The rational index of any generator of the rational cone of belongs to exp(θ(n 2 / log n)). A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

50 Regular realizability problems Relation with -theory Rational index Properties of rational index Proposition Rational index of an arbitrary context-free language is bounded from below by a linear function. Theorem (Pierre 1992) The rational index of any generator of the rational cone of belongs to exp(θ(n 2 / log n)). Theorem (Pierre, Farrinone, 1990) For a positive algebraic number γ > 1 there exists a context-free language with the rational index Θ(n γ ). A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

51 Regular realizability problems Relation with -theory Rational index Complexity of RR problems Theorem Let F be a context-free filter with polynomially bounded rational index, then the problem NRR(F) belongs to NSPACE(log 2 n). A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

52 Regular realizability problems Relation with -theory Rational index Complexity of RR problems Theorem Let F be a context-free filter with polynomially bounded rational index, then the problem NRR(F) belongs to NSPACE(log 2 n). Conjecture Let F be a context-free filter with polynomially bounded rational index, then the problem NRR(F) belongs to. A. Rubtsov, M. Vyalyi RR-problems and 26 June / 16

53 Thank You!

54 D 2 S # P GRE S QRT FCL D 1 LIN ROCL REG

55 1 Regular realizability problems Definition Examples Properties 2 Relation with -theory Rational cones Complexity of RR-Problems 3 Rational index

arxiv: v1 [cs.fl] 19 Mar 2015

arxiv: v1 [cs.fl] 19 Mar 2015 Regular realizability problems and regular languages A. Rubtsov arxiv:1503.05879v1 [cs.fl] 19 Mar 2015 1 Moscow Institute of Physics and Technology 2 National Research University Higher School of Economics

More information

arxiv: v2 [cs.fl] 27 Oct 2017

arxiv: v2 [cs.fl] 27 Oct 2017 On Computational Complexity of Set Automata A. Rubtsov 12 and M. Vyalyi 312 1 National Research University Higher School of Economics 2 Moscow Institute of Physics and Technology 3 Dorodnicyn Computing

More information

Finite Automata, Palindromes, Powers, and Patterns

Finite Automata, Palindromes, Powers, and Patterns Finite Automata, Palindromes, Powers, and Patterns Terry Anderson, Narad Rampersad, Nicolae Santean, Jeffrey Shallit School of Computer Science University of Waterloo 19 March 2008 Anderson et al. (University

More information

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP CS 301 - Lecture 29 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of

More information

Closure under the Regular Operations

Closure under the Regular Operations September 7, 2013 Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have shown this closure

More information

Finite Automata, Palindromes, Patterns, and Borders

Finite Automata, Palindromes, Patterns, and Borders Finite Automata, Palindromes, Patterns, and Borders arxiv:0711.3183v1 [cs.dm] 20 Nov 2007 Terry Anderson, Narad Rampersad, Nicolae Santean, and Jeffrey Shallit School of Computer Science University of

More information

Classes and conversions

Classes and conversions Classes and conversions Regular expressions Syntax: r = ε a r r r + r r Semantics: The language L r of a regular expression r is inductively defined as follows: L =, L ε = {ε}, L a = a L r r = L r L r

More information

Deciding whether a regular language is power-closed is PSPACE-complete

Deciding whether a regular language is power-closed is PSPACE-complete Deciding whether a regular language is power-closed is PSPACE-complete Yuval Filmus September 2, 2012 Abstract A regular language L is power-closed if whenever x L, also x k L for all k 1. We show that

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

Monoidal Categories, Bialgebras, and Automata

Monoidal Categories, Bialgebras, and Automata Monoidal Categories, Bialgebras, and Automata James Worthington Mathematics Department Cornell University Binghamton University Geometry/Topology Seminar October 29, 2009 Background: Automata Finite automata

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

On the Accepting Power of 2-Tape Büchi Automata

On the Accepting Power of 2-Tape Büchi Automata On the Accepting Power of 2-Tape Büchi Automata Equipe de Logique Mathématique Université Paris 7 STACS 2006 Acceptance of infinite words In the sixties, Acceptance of infinite words by finite automata

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation 1/19/2016 LECTURE 3 Last time: DFAs and NFAs Operations on languages Today: Nondeterminism Equivalence of NFAs and DFAs Closure properties of regular languages Sofya Raskhodnikova

More information

Exam Computability and Complexity

Exam Computability and Complexity Total number of points:... Number of extra sheets of paper:... Exam Computability and Complexity by Jiri Srba, January 2009 Student s full name CPR number Study number Before you start, fill in the three

More information

Complexity Theory 112. Space Complexity

Complexity Theory 112. Space Complexity Complexity Theory 112 Space Complexity We ve already seen the definition SPACE(f(n)): the languages accepted by a machine which uses O(f(n)) tape cells on inputs of length n. Counting only work space NSPACE(f(n))

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

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

More information

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and education use, including for instruction at the authors institution

More information

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,

More information

AFFINE AUTOMATA. Power and Stability. Etienne Moutot. September 6, Supervised by Mika Hirvensalo, University of Turku

AFFINE AUTOMATA. Power and Stability. Etienne Moutot. September 6, Supervised by Mika Hirvensalo, University of Turku AFFINE AUTOMATA Power and Stability September 6, 2016 Etienne Moutot Supervised by Mika Hirvensalo, University of Turku OUTLINE 1. Definitions 2. Comparison to Other Models 3. Stability Results 2 DEFINITIONS

More information

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand

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

Theory of Computation (I) Yijia Chen Fudan University

Theory of Computation (I) Yijia Chen Fudan University Theory of Computation (I) Yijia Chen Fudan University Instructor Yijia Chen Homepage: http://basics.sjtu.edu.cn/~chen Email: yijiachen@fudan.edu.cn Textbook Introduction to the Theory of Computation Michael

More information

BIMACHINES AND STRUCTURALLY-REVERSED AUTOMATA

BIMACHINES AND STRUCTURALLY-REVERSED AUTOMATA Journal of Automata, Languages and Combinatorics 9 (2004) 1, 121 146 c Otto-von-Guericke-Universität Magdeburg BIMACHINES AND STRUCTURALLY-REVERSED AUTOMATA Nicolae Santean Department of Computer Science,

More information

Representation and uniformization of algebraic transductions

Representation and uniformization of algebraic transductions Acta Informatica DOI 10.1007/s00236-006-0027-7 ORIGINAL ARTICLE Representation and uniformization of algebraic transductions Stavros Konstantinidis Nicolae Santean Sheng Yu Received: 17 June 2006 / Accepted:

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

Fooling Sets and. Lecture 5

Fooling Sets and. Lecture 5 Fooling Sets and Introduction to Nondeterministic Finite Automata Lecture 5 Proving that a language is not regular Given a language, we saw how to prove it is regular (union, intersection, concatenation,

More information

IAENG International Journal of Applied Mathematics, 46:2, IJAM_46_2_08. A Solution to Yamakami s Problem on Non-uniform Context-free Languages

IAENG International Journal of Applied Mathematics, 46:2, IJAM_46_2_08. A Solution to Yamakami s Problem on Non-uniform Context-free Languages A Solution to Yamakami s Problem on Non-uniform Context-free Languages Toshio Suzuki, Member, IAENG Abstract Yamakami (Theoret. Comput. Sci., 2011) studies non-uniform context-free languages. Here, the

More information

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages COMP/MATH 300 Topics for Spring 2017 June 5, 2017 Review and Regular Languages Exam I I. Introductory and review information from Chapter 0 II. Problems and Languages A. Computable problems can be expressed

More information

Boolean Circuit Complexity of Regular Languages

Boolean Circuit Complexity of Regular Languages Boolean Circuit Complexity of Regular Languages Maris Valdats University of Latvia Faculty of Computing Riga, Raiņa Bulv. 19, Latvia d20416@lanet.lv In this paper we define a new descriptional complexity

More information

Open Problems in Automata Theory: An Idiosyncratic View

Open Problems in Automata Theory: An Idiosyncratic View Open Problems in Automata Theory: An Idiosyncratic View Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~shallit

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

More information

Computability and Complexity CISC462, Fall 2018, Space complexity 1

Computability and Complexity CISC462, Fall 2018, Space complexity 1 Computability and Complexity CISC462, Fall 2018, Space complexity 1 SPACE COMPLEXITY This material is covered in Chapter 8 of the textbook. For simplicity, we define the space used by a Turing machine

More information

Non-emptiness Testing for TMs

Non-emptiness Testing for TMs 180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to

More information

Computation Histories

Computation Histories 208 Computation Histories The computation history for a Turing machine on an input is simply the sequence of configurations that the machine goes through as it processes the input. An accepting computation

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

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

Finite Universes. L is a fixed-length language if it has length n for some

Finite Universes. L is a fixed-length language if it has length n for some Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of

More information

NFA and regex. the Boolean algebra of languages. regular expressions. Informatics 1 School of Informatics, University of Edinburgh

NFA and regex. the Boolean algebra of languages. regular expressions. Informatics 1 School of Informatics, University of Edinburgh NFA and regex cl the Boolean algebra of languages regular expressions Informatics The intersection of two regular languages is regular L = even numbers L = odd numbers L = mod L = mod Informatics The intersection

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described

More information

CS 154 Introduction to Automata and Complexity Theory

CS 154 Introduction to Automata and Complexity Theory CS 154 Introduction to Automata and Complexity Theory cs154.stanford.edu 1 INSTRUCTORS & TAs Ryan Williams Cody Murray Lera Nikolaenko Sunny Rajan 2 Textbook 3 Homework / Problem Sets Homework will be

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

CSCE 551 Final Exam, Spring 2004 Answer Key

CSCE 551 Final Exam, Spring 2004 Answer Key CSCE 551 Final Exam, Spring 2004 Answer Key 1. (10 points) Using any method you like (including intuition), give the unique minimal DFA equivalent to the following NFA: 0 1 2 0 5 1 3 4 If your answer is

More information

Inf2A: Converting from NFAs to DFAs and Closure Properties

Inf2A: Converting from NFAs to DFAs and Closure Properties 1/43 Inf2A: Converting from NFAs to DFAs and Stuart Anderson School of Informatics University of Edinburgh October 13, 2009 Starter Questions 2/43 1 Can you devise a way of testing for any FSM M whether

More information

Part 4 out of 5 DFA NFA REX. Automata & languages. A primer on the Theory of Computation. Last week, we showed the equivalence of DFA, NFA and REX

Part 4 out of 5 DFA NFA REX. Automata & languages. A primer on the Theory of Computation. Last week, we showed the equivalence of DFA, NFA and REX Automata & languages A primer on the Theory of Computation Laurent Vanbever www.vanbever.eu Part 4 out of 5 ETH Zürich (D-ITET) October, 12 2017 Last week, we showed the equivalence of DFA, NFA and REX

More information

Theory of Computation (IX) Yijia Chen Fudan University

Theory of Computation (IX) Yijia Chen Fudan University Theory of Computation (IX) Yijia Chen Fudan University Review The Definition of Algorithm Polynomials and their roots A polynomial is a sum of terms, where each term is a product of certain variables and

More information

6.045 Final Exam Solutions

6.045 Final Exam Solutions 6.045J/18.400J: Automata, Computability and Complexity Prof. Nancy Lynch, Nati Srebro 6.045 Final Exam Solutions May 18, 2004 Susan Hohenberger Name: Please write your name on each page. This exam is open

More information

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand

More information

A Uniformization Theorem for Nested Word to Word Transductions

A Uniformization Theorem for Nested Word to Word Transductions A Uniformization Theorem for Nested Word to Word Transductions Dmitry Chistikov and Rupak Majumdar Max Planck Institute for Software Systems (MPI-SWS) Kaiserslautern and Saarbrücken, Germany {dch,rupak}@mpi-sws.org

More information

Closure under the Regular Operations

Closure under the Regular Operations Closure under the Regular Operations Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have

More information

Inf2A: The Pumping Lemma

Inf2A: The Pumping Lemma Inf2A: Stuart Anderson School of Informatics University of Edinburgh October 8, 2009 Outline 1 Deterministic Finite State Machines and Regular Languages 2 3 4 The language of a DFA ( M = Q, Σ, q 0, F,

More information

Finite-state Machines: Theory and Applications

Finite-state Machines: Theory and Applications Finite-state Machines: Theory and Applications Unweighted Finite-state Automata Thomas Hanneforth Institut für Linguistik Universität Potsdam December 10, 2008 Thomas Hanneforth (Universität Potsdam) Finite-state

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

Finite Automata, Palindromes, Powers, and Patterns

Finite Automata, Palindromes, Powers, and Patterns Finite Automata, Palindromes, Powers, and Patterns Terry Anderson, Narad Rampersad, Nicolae Santean, and Jeffrey Shallit David R. Cheriton School of Computer Science University of Waterloo Waterloo, Ontario

More information

State Complexity Advantages of Ultrametric Automata

State Complexity Advantages of Ultrametric Automata State Complexity Advantages of Ultrametric Automata Maksims Dimitrijevs University of Latvia Faculty of Computing, Raiņa bulvāris 19, Riga, LV-1586, Latvia Abstract. Ultrametric automata have properties

More information

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam ECS 120: Theory of Computation Handout MT UC Davis Phillip Rogaway February 16, 2012 Midterm Exam Instructions: The exam has six pages, including this cover page, printed out two-sided (no more wasted

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with

More information

CS481F01 Prelim 2 Solutions

CS481F01 Prelim 2 Solutions CS481F01 Prelim 2 Solutions A. Demers 7 Nov 2001 1 (30 pts = 4 pts each part + 2 free points). For this question we use the following notation: x y means x is a prefix of y m k n means m n k For each of

More information

I have read and understand all of the instructions below, and I will obey the University Code on Academic Integrity.

I have read and understand all of the instructions below, and I will obey the University Code on Academic Integrity. Midterm Exam CS 341-451: Foundations of Computer Science II Fall 2016, elearning section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand all

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism, CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for

More information

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear:

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: ω-automata ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: in verification, as encodings of non-terminating executions of a program. in arithmetic,

More information

INF Introduction and Regular Languages. Daniel Lupp. 18th January University of Oslo. Department of Informatics. Universitetet i Oslo

INF Introduction and Regular Languages. Daniel Lupp. 18th January University of Oslo. Department of Informatics. Universitetet i Oslo INF28 1. Introduction and Regular Languages Daniel Lupp Universitetet i Oslo 18th January 218 Department of Informatics University of Oslo INF28 Lecture :: 18th January 1 / 33 Details on the Course consists

More information

Graph Logics with Rational Relations: The Role of Word Combinatorics

Graph Logics with Rational Relations: The Role of Word Combinatorics Graph Logics with Rational Relations: The Role of Word Combinatorics PABLO BARCELÓ and PABLO MUÑOZ, Center for Semantic Web Research & Dept. of Computer Science, University of Chile Graph databases make

More information

CS Lecture 28 P, NP, and NP-Completeness. Fall 2008

CS Lecture 28 P, NP, and NP-Completeness. Fall 2008 CS 301 - Lecture 28 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of

More information

Theory of Computation (II) Yijia Chen Fudan University

Theory of Computation (II) Yijia Chen Fudan University Theory of Computation (II) Yijia Chen Fudan University Review A language L is a subset of strings over an alphabet Σ. Our goal is to identify those languages that can be recognized by one of the simplest

More information

Additive Number Theory and Automata

Additive Number Theory and Automata Additive Number Theory and Automata Jeffrey Shallit School of Computer Science, University of Waterloo Waterloo, ON N2L 3G1 Canada Joint work with Carlo Sanna Daniel Kane P. Madhusudan Dirk Nowotka Aayush

More information

Visibly Linear Dynamic Logic

Visibly Linear Dynamic Logic Visibly Linear Dynamic Logic Joint work with Alexander Weinert (Saarland University) Martin Zimmermann Saarland University September 8th, 2016 Highlights Conference, Brussels, Belgium Martin Zimmermann

More information

Remarks on Separating Words

Remarks on Separating Words Remarks on Separating Words Erik D. Demaine, Sarah Eisenstat, Jeffrey Shallit 2, and David A. Wilson MIT Computer Science and Artificial Intelligence Laboratory, 32 Vassar Street, Cambridge, MA 239, USA,

More information

Lecture 24: Randomized Complexity, Course Summary

Lecture 24: Randomized Complexity, Course Summary 6.045 Lecture 24: Randomized Complexity, Course Summary 1 1/4 1/16 1/4 1/4 1/32 1/16 1/32 Probabilistic TMs 1/16 A probabilistic TM M is a nondeterministic TM where: Each nondeterministic step is called

More information

September 7, Formal Definition of a Nondeterministic Finite Automaton

September 7, Formal Definition of a Nondeterministic Finite Automaton Formal Definition of a Nondeterministic Finite Automaton September 7, 2014 A comment first The formal definition of an NFA is similar to that of a DFA. Both have states, an alphabet, transition function,

More information

Lipschitz Robustness of Finite-state Transducers

Lipschitz Robustness of Finite-state Transducers Lipschitz Robustness of Finite-state Transducers Roopsha Samanta IST Austria Joint work with Tom Henzinger and Jan Otop December 16, 2014 Roopsha Samanta Lipschitz Robustness of Finite-state Transducers

More information

Partially Ordered Two-way Büchi Automata

Partially Ordered Two-way Büchi Automata Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially

More information

Kolmogorov structure functions for automatic complexity

Kolmogorov structure functions for automatic complexity Kolmogorov structure functions for automatic complexity Bjørn Kjos-Hanssen June 16, 2015 Varieties of Algorithmic Information, University of Heidelberg Internationales Wissenschaftssentrum History 1936:

More information

State complexity of the multiples of the Thue-Morse set

State complexity of the multiples of the Thue-Morse set State complexity of the multiples of the Thue-Morse set Adeline Massuir Joint work with Émilie Charlier and Célia Cisternino 17 th Mons Theorical Computer Science Days Bordeaux September 13 th 2018 Adeline

More information

Name: Student ID: Instructions:

Name: Student ID: Instructions: Instructions: Name: CSE 322 Autumn 2001: Midterm Exam (closed book, closed notes except for 1-page summary) Total: 100 points, 5 questions, 20 points each. Time: 50 minutes 1. Write your name and student

More information

Theoretical Computer Science. Complexity of multi-head finite automata: Origins and directions

Theoretical Computer Science. Complexity of multi-head finite automata: Origins and directions Theoretical Computer Science 412 (2011) 83 96 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Complexity of multi-head finite automata:

More information

The Separating Words Problem

The Separating Words Problem The Separating Words Problem Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~shallit 1 / 48 An Advertisement

More information

First-order definability of rational transductions: An algebraic approach

First-order definability of rational transductions: An algebraic approach First-order definability of rational transductions: An algebraic approach Emmanuel Filiot, Olivier Gauwin, Nathan Lhote To cite this version: Emmanuel Filiot, Olivier Gauwin, Nathan Lhote. First-order

More information

ACS2: Decidability Decidability

ACS2: Decidability Decidability Decidability Bernhard Nebel and Christian Becker-Asano 1 Overview An investigation into the solvable/decidable Decidable languages The halting problem (undecidable) 2 Decidable problems? Acceptance problem

More information

4.2 The Halting Problem

4.2 The Halting Problem 172 4.2 The Halting Problem The technique of diagonalization was discovered in 1873 by Georg Cantor who was concerned with the problem of measuring the sizes of infinite sets For finite sets we can simply

More information

Two-Way Automata Characterizations of L/poly versus NL

Two-Way Automata Characterizations of L/poly versus NL Two-Way Automata Characterizations of L/poly versus NL Christos A. Kapoutsis 1 Giovanni Pighizzini 2 1 LIAFA, Université Paris VII, France 2 DI, Università degli Studi di Milano, Italia CRS 2012 Nizhny

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

arxiv: v2 [cs.fl] 29 Nov 2013

arxiv: v2 [cs.fl] 29 Nov 2013 A Survey of Multi-Tape Automata Carlo A. Furia May 2012 arxiv:1205.0178v2 [cs.fl] 29 Nov 2013 Abstract This paper summarizes the fundamental expressiveness, closure, and decidability properties of various

More information

3.13. PUSHDOWN AUTOMATA Pushdown Automata

3.13. PUSHDOWN AUTOMATA Pushdown Automata 3.13. PUSHDOWN AUTOMATA 317 3.13 Pushdown Automata We have seen that the regular languages are exactly the languages accepted by DFA s or NFA s. The context-free languages are exactly the languages accepted

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

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

CS256 Applied Theory of Computation

CS256 Applied Theory of Computation CS256 Applied Theory of Computation Compleity Classes III John E Savage Overview Last lecture on time-bounded compleity classes Today we eamine space-bounded compleity classes We prove Savitch s Theorem,

More information

Succinctness of the Complement and Intersection of Regular Expressions

Succinctness of the Complement and Intersection of Regular Expressions Succinctness of the Complement and Intersection of Regular Expressions Wouter Gelade and Frank Neven Hasselt University and transnational University of Limburg February 21, 2008 W. Gelade (Hasselt University)

More information

Origin-equivalence of two-way word transducers is in PSPACE

Origin-equivalence of two-way word transducers is in PSPACE Origin-equivalence of two-way word transducers is in PSPACE Sougata Bose, Anca Muscholl, Vincent Penelle LaBRI, University of Bordeaux Gabriele Puppis CNRS, LaBRI Abstract We consider equivalence and containment

More information

The Separating Words Problem

The Separating Words Problem The Separating Words Problem Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca https://www.cs.uwaterloo.ca/~shallit 1/54 The Simplest

More information

Chapter 1 - Time and Space Complexity. deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE

Chapter 1 - Time and Space Complexity. deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE Chapter 1 - Time and Space Complexity deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE 1 / 41 Deterministic Turing machines Definition 1.1 A (deterministic

More information

Review of Complexity Theory

Review of Complexity Theory Review of Complexity Theory Breno de Medeiros Department of Computer Science Florida State University Review of Complexity Theory p.1 Turing Machines A traditional way to model a computer mathematically

More information

UNIT-VIII COMPUTABILITY THEORY

UNIT-VIII COMPUTABILITY THEORY CONTEXT SENSITIVE LANGUAGE UNIT-VIII COMPUTABILITY THEORY A Context Sensitive Grammar is a 4-tuple, G = (N, Σ P, S) where: N Set of non terminal symbols Σ Set of terminal symbols S Start symbol of the

More information

RATIONAL MONOID AND SEMIGROUP AUTOMATA

RATIONAL MONOID AND SEMIGROUP AUTOMATA RATIONAL MONOID AND SEMIGROUP AUTOMATA A thesis submitted to the University of Manchester for the degree of Doctor of Philosophy in the Faculty of Engineering and Physical Sciences 2010 Elaine L. Render

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2016 http://cseweb.ucsd.edu/classes/sp16/cse105-ab/ Today's learning goals Sipser Ch 3.3, 4.1 State and use the Church-Turing thesis. Give examples of decidable problems.

More information

Chomsky Normal Form and TURING MACHINES. TUESDAY Feb 4

Chomsky Normal Form and TURING MACHINES. TUESDAY Feb 4 Chomsky Normal Form and TURING MACHINES TUESDAY Feb 4 CHOMSKY NORMAL FORM A context-free grammar is in Chomsky normal form if every rule is of the form: A BC A a S ε B and C aren t start variables a is

More information

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY No part of this publication may be reproduced or distributed in any form or any means, electronic, mechanical, photocopying, or otherwise without the prior permission of the author. GATE SOLVED PAPER Computer

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