CS 310 – Fall 2006 Pacific University CS310 Variants of Turing Machines Section 3.2 November 8, 2006.

Slides:



Advertisements
Similar presentations
Multi-tape Turing Machines: Informal Description
Advertisements

Variants of Turing machines
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
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.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
P and NP Sipser (pages ). CS 311 Fall Polynomial time P = ∪ k TIME(n k ) … P = ∪ k TIME(n k ) … TIME(n 3 ) TIME(n 2 ) TIME(n)
Turing machines Sipser 2.3 and 3.1 (pages )
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
More Turing Machines Sipser 3.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.
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
CS5371 Theory of Computation
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
1 … NPDAs continued. 2 Pushing Strings Input symbol Pop symbol Push string.
CS 310 – Fall 2006 Pacific University CS310 Pushdown Automata Sections: 2.2 page 109 October 9, 2006.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Lecture 5 Turing Machines
CS 310 – Fall 2006 Pacific University CS310 Decidability Section 4.1/4.2 November 10, 2006.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
January 23, 2015CS21 Lecture 81 CS21 Decidability and Tractability Lecture 8 January 23, 2015.
January 28, 2015CS21 Lecture 101 CS21 Decidability and Tractability Lecture 10 January 28, 2015.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
REGULAR LANGUAGES.
Pushdown Automata (PDAs)
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Summary of Previous Class There are languages that are not decidable –(we have not proved this yet) Why not extend Turing machines just as we did with.
The Church-Turing Thesis
1/29/02CSE460 - MSU1 Nondeterminism-NFA Section 4.1 of Martin Textbook CSE460 – Computability & Formal Language Theory Comp. Science & Engineering Michigan.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Non Deterministic Automata
COSC 3340: Introduction to Theory of Computation
Reductions Costas Busch - LSU.
CS21 Decidability and Tractability
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
COSC 3340: Introduction to Theory of Computation
CSE 105 theory of computation
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Intro to Theory of Computation
Non-Deterministic Finite Automata
Intro to Theory of Computation
Non-Deterministic Finite Automata
Non Deterministic Automata
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CS21 Decidability and Tractability
CS21 Decidability and Tractability
COSC 3340: Introduction to Theory of Computation
Decidability and Tractability
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
… NPDAs continued.
Chapter 1 Regular Language
Variants of Turing machines
Formal Definitions for Turing Machines
Automata, Grammars and Languages
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

CS 310 – Fall 2006 Pacific University CS310 Variants of Turing Machines Section 3.2 November 8, 2006

CS 310 – Fall 2006 Pacific University Homework Hints %nonassoc LOWER_THAN_ELSE %nonassoc ELSE You may need to mark the end of the sentence with some type of marker (\n) to parse the sentences and paragraphs correctly JFLAP will remove  rules from your grammar. We did that in class to get a grammar to CNF. We also removed unit rules. This must not be a nonterminal

CS 310 – Fall 2006 Pacific University Formal Definition (1 tape) 7-tuple {Q, Σ, , ,q 0, q accept, q reject } Q: set of states Σ: input alphabet, not containing the blank character:   : tape alphabet,    and Σ    : Q x   Q x  x {L, R} is the transition function q 0  Q : start state q accept  Q : accept state q reject  Q : reject state, q accept  q reject

CS 310 – Fall 2006 Pacific University Multiple Tape Turing Machine For k tapes –input string is on tape 1 Change  : Q x   Q x  x {L, R} to  : Q x  k  Q x  k x {L, R} k

CS 310 – Fall 2006 Pacific University Example Construct a two-tape Turing Machine to accept L={a n b n | n  1} Conceptually what do we want to do?

CS 310 – Fall 2006 Pacific University Theorem Every multi-tape Turing Machine has an equivalent single tape machine –adding extra tapes does not add power to the Turing Machine Proof Idea: Simulate multi-tape TM as single tape TM M abcd efgh zyxw S Abcd#efGh#zyXw

CS 310 – Fall 2006 Pacific University Nondeterministic TM Just like NFA, can take multiple transitions out of a state –often easier to design/understand Design a TM to accept strings containing a c that is either preceded or followed by ab We can think of this computation as a tree –each branch from a node (state) represents one nondeterministic decision (for a single input character)

CS 310 – Fall 2006 Pacific University Theorem Every nondeterministic TM, N, has an equivalent deterministic TM, D Proof Idea: –use a 3 tape TM (we can convert this to a one tape TM later) –tape 1: input tape (read-only) –tape 2: simulation input/output tape of the current branch of the n-d TM –tape 3: address tape (based on the tree) to keep track of where we are in the computation