Turing machines Sipser 2.3 and 3.1 (pages 123-144)

Slides:



Advertisements
Similar presentations
Algorithms Sipser 3.3 (pages ). CS 311 Fall Computability Hilbert's Tenth Problem: Find a process according to which it can be determined.
Advertisements

David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 13: Turing Machines.
CFGs and PDAs Sipser 2 (pages ). Long long ago…
CS 3240: Languages and Computation Properties of Context-Free Languages.
CS21 Decidability and Tractability
NFAs Sipser 1.2 (pages 47–54). CS 311 Fall Recall… Last time we showed that the class of regular languages is closed under: –Complement –Union.
Algorithms Sipser 3.3 (pages ). CS 311 Mount Holyoke College 2 Computability Hilbert's Tenth Problem: Find “a process according to which it can.
CFGs and PDAs Sipser 2 (pages ). Last time…
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Turing machines Sipser 2.3 and 3.1 (pages )
CFG => PDA Sipser 2 (pages ).
The Halting Problem Sipser 4.2 (pages ). CS 311 Mount Holyoke College 2 Taking stock All languages Turing-recognizable Turing-decidable Context-free.
The Halting Problem Sipser 4.2 (pages ).
NFAs Sipser 1.2 (pages 47–54). CS 311 Mount Holyoke College 2 Recall… Last time we showed that the class of regular languages is closed under: –Complement.
Regular operations Sipser 1.2 (pages 47-63). First… a sample proof
CFG => PDA Sipser 2 (pages ). CS 311 Fall Formally… A pushdown automaton is a sextuple M = (Q, Σ, Γ, δ, q 0, F), where – Q is a finite set.
Mapping Reducibility Sipser 5.3 (pages ). CS 311 Fall Computable functions Definition 5.17: A function f:Σ*→Σ* is a computable function.
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
Nonregular languages Sipser 1.4 (pages 77-82). CS 311 Fall Nonregular languages? We now know: –Regular languages may be specified either by regular.
Lecture 15UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 15.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
Chap 2 Context-Free Languages. Context-free Grammars is not regular Context-free grammar : eg. G 1 : A  0A1substitution rules A  Bproduction rules B.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 4 Context-free grammars Jan Maluszynski, IDA, 2007
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Lecture 5 Turing Machines
Turing Machines.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Regular expressions Sipser 1.3 (pages 63-76). CS 311 Fall Looks familiar…
CS5371 Theory of Computation Lecture 9: Automata Theory VII (Pumping Lemma, Non-CFL)
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
January 23, 2015CS21 Lecture 81 CS21 Decidability and Tractability Lecture 8 January 23, 2015.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Homework #7 Solutions. #1. Use the pumping lemma for CFL’s to show L = {a i b j a i b j | i, j > 0} is not a CFL. Proof by contradiction using the Pumping.
Today Chapter 2: (Pushdown automata) Non-CF languages CFL pumping lemma Closure properties of CFL.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
INHERENT LIMITATIONS OF COMPUTER PROGAMS CSci 4011.
AUTOMATA THEORY VIII.
Complexity and Computability Theory I Lecture #13 Instructor: Rina Zviel-Girshin Lea Epstein Yael Moses.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
1 Properties of Context-Free Languages Is a certain language context-free? Is the family of CFLs closed under a certain operation?
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Context-free Languages
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
Cs3102: Theory of Computation Class 8: Non-Context-Free Languages Spring 2010 University of Virginia David Evans.
9.7: Chomsky Hierarchy.
Non-CF Languages The language L = { a n b n c n | n  0 } does not appear to be context-free. Informal: A PDA can compare #a’s with #b’s. But by the time.
Non-Context-Free Languages Section 2.3 CSC 4170 Theory of Computation.
Pumping Lemma for CFLs. Theorem 7.17: Let G be a CFG in CNF and w a string in L(G). Suppose we have a parse tree for w. If the length of the longest path.
January 20, 2016CS21 Lecture 71 CS21 Decidability and Tractability Lecture 7 January 20, 2016.
CS 3240: Languages and Computation
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
 2004 SDU Lecture8 NON-Context-free languages.  2004 SDU 2 Are all languages context free? Ans: No. # of PDAs on  < # of languages on  Pumping lemma:
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Lecture 23 Turing Machines Topics: Pumping Lemma for CFL Example Chomsky hierarchy What’s Computable ? Turing Machines November 24, 2008 CSCE 355 Foundations.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Busch Complexity Lectures: Turing Machines
CS21 Decidability and Tractability
Pumping Lemma Revisited
Context-free Languages
CSE 105 theory of computation
Context-Free Grammars
CS21 Decidability and Tractability
Decidability and Tractability
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Turing machines Sipser 2.3 and 3.1 (pages )

CS 311 Fall A Context-free Grammar for {a n b n c n | n ≥ 0} ? Theorem 2.34 (Pumping lemma for CFLs): If A is a CFL, then there is a number p where, if s is any string in A of length ≥ p, then s = uvxyz such that: 1.For each i ≥ 0, uv i xy i z ∈ A, 2.|vy| > 0, and 3.|vxy| ≤ p

CS 311 Fall Proof idea Surgery on parse trees

CS 311 Fall So… Is {a n b n c n | n ≥ 0} a CFL?

CS 311 Fall Chomsky hierarchy Context-free languages Regular languages 0n1n0n1n anbncnanbncn

CS 311 Fall Introducing… Turing machines a a b b a a b b Finite control Bi-directional read/write head Infinite tape

CS 311 Fall Formally… A Turing machine is a 7-tuple (Q, Σ, Γ, δ, q 0, q accept, q reject ), where – Q is a finite set called the states – Σ is a finite set not containing the blank symbol called the input alphabet – Γ is a finite set called the tape alphabet with ∈ Γ and Σ ⊆ Γ – δ:Q ×Γ → Q ×Γ ×{L,R} – q 0 ∈ Q is the start state – q accept ∈ Q is the accept state – q accept ∈ Q is the reject state

CS 311 Fall Recognizing {a n b n c n | n ≥ 0} b b b b c c c c Finite control Infinite tape a a a a

CS 311 Fall Configurations A configuration is –Current state –Current tape contents –Current head location u q v means –Current state is q –Current tape contents is uv –Current head points at first symbol of v Example – âaq 1 bbcc –In state q 1 –Tape contents are âabbcc –Tape head is on first b

CS 311 Fall Yields A configuration C 1 yields configuration C 2 if the Turing machine can legally go from C 1 to C 2 in a single step yields Written ⊢

CS 311 Fall Turing-recognizable languages A Turing machine accepts input w if a sequence of configurations C 1,C 2,...,C k exists where 1.C 1 is the start configuration of M on input w 2.Each C i yields C i+1 3.C k is an accepting configuration Defn 3.5: A language is Turing-recognizable if it is accepted by some Turing machine.

CS 311 Fall Recognizing.