Cs3102: Theory of Computation Class 14: Turing Machines Spring 2010 University of Virginia David Evans.

Slides:



Advertisements
Similar presentations
Turing Machines Memory = an infinitely long tape Persistent storage A read/write tape head that can move around the tape Initially, the tape contains only.
Advertisements

David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 13: Turing Machines.
Cs3102: Theory of Computation Class 22: Introducing Complexity Spring 2010 University of Virginia David Evans Exam 2: due now Read Chapter 7 (we skip Ch.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
David Evans CS200: Computer Science University of Virginia Computer Science Class 30: Models of Computation.
Class 39: Universality cs1120 Fall 2009 David Evans University of Virginia.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
Recap CS605: The Mathematics and Theory of Computer Science.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Variants.
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.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
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.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Turing Machines CS 105: Introduction to Computer Science.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 2: Modeling Computers.
Class 19: Undecidability in Theory and Practice David Evans cs302: Theory of Computation University of Virginia Computer.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
Cs3102: Theory of Computation Class 20: Busy Beavers Spring 2010 University of Virginia David Evans Office hours: I am not able to hold my Thursday morning.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Lecture 14: Church-Turing Thesis Alonzo Church ( ) Alan Turing ( )
Cs3102: Theory of Computation Class 17: Undecidable Languages Spring 2010 University of Virginia David Evans.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Cs3102: Theory of Computation Class 10: DFAs in Practice Spring 2010 University of Virginia David Evans.
Turing Machines A more powerful computation model than a PDA ?
Complexity and Computability Theory I Lecture #13 Instructor: Rina Zviel-Girshin Lea Epstein Yael Moses.
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
CS490 Presentation: Automata & Language Theory Thong Lam Ran Shi.
CSE202: Introduction to Formal Languages and Automata Theory Chapter 9 The Turing Machine These class notes are based on material from our textbook, An.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Cs3102: Theory of Computation Class 6: Pushdown Automata Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint manual.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
Class 21: Introducing Complexity David Evans cs302: Theory of Computation University of Virginia Computer Science.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 16: Universality and Undecidability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 154 Formal Languages and Computability March 15 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
FORMAL LANGUAGES, AUTOMATA, AND COMPUTABILITY * Read chapter 4 of the book for next time * Lecture9x.ppt.
CS 154 Formal Languages and Computability April 5 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Class 30: Models of Computation CS200: Computer Science
CS21 Decidability and Tractability
Pumping Lemma Revisited
CSE 105 theory of computation
CSE 105 theory of computation
Summary.
Chapter 3: The CHURCH-Turing thesis
Jaya Krishna, M.Tech, Assistant Professor
Theory of Computation Turing Machines.
8. Introduction to Turing Machines
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Decidability and Tractability
Class 34: Models of Computation CS200: Computer Science
CSE 105 theory of computation
The Church-Turing Thesis and Turing-completeness
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

cs3102: Theory of Computation Class 14: Turing Machines Spring 2010 University of Virginia David Evans

The Story So Far s All Languages Regular Languages a a Finite Languages Context-Free Languages w anan anbncnanbncn ww anbnanbn ww R Add a stack: Described by CFG or NPDA Described by RG, DFA, NFA, RE These sets are inclusive: All regular languages are context-free All finite languages are regular and context-free

s a a This Week: Computability Languages that can be recognized by any mechanical computing machine All Languages

Next Week: Decidability Undecidable Problems Decidable Languages Recognizable Languages

Decidability  Complexity (April) Decidable Problems Problems that can be solved by some mechanical computer (eventually). Problems that can be solved by some mechanical computer in a reasonable time. NP P Note: not known if P  NP or P = NP

Recognizable Languages s All Languages Regular Languages a a Finite Languages Context-Free Languages w anan anbncnanbncn ww anbnanbn ww R Add a stack: Is a n b n c n recognizable by some computing machine?

2-Stack DPDA Recognizing {a n b n c n } Start Count a s ,  /  $/$ a,  /  +/+ Count b s b, +/   /  Count c s c,  /+   /  Accept , $/$   / 

Recognizing w#w w  {0, 1}*

Recognizing ww w  {0, 1}*

Can it be done with a 2-Stack DPDA?

Simulating 3-DPDA with 2-DPDA # # A B ,  /  /a   /  /b

Simulating 3-DPDA with 2-DPDA 3-DPDA # # push B ($) push B (pop A ())... push B (pop A (#)) push B (pop A ())... push B (pop A (#)) pop A (a) pop B (b) push A (pop B (#)) push A (pop B ())... pop B ($) [need to flip each returning stack ] A B $ + ,  /  /a   /  /b

L (2-DPDA) = L (3-DPDA) A B Need to do lots of stack manipulation to simulate 3-DPDA on one transition, but possible to simulate every 3- DPDA with a 2-DPDA! # # $

Is there any computing machine we can’t simulate with a 2-DPDA?

What about an NDPDA? A B Use one stack to simulate the NDPDA’s stack. Use the other stack to keep track of nondeterminism points: copy of stack and decisions left to make.

Turing Machine? A B Tape Head

Turing Machine... Infinite tape: Γ* Tape head: like DFA, except: input is symbol read from tape transition outputs: state + symbol to write on tape direction (left/right) to move final accepting and rejecting states FSM Next class: we’ll talk about Alan Turing and why he invented this model

Turing Machine Formal Description... FSM

Turing Machine Configuration... ____ blanks x0x0 x1x1 x2x2 x3x3...x n-2 x n-1 x  FSM

Turing Machine Configuration... ____ blanks x0x0 x1x1 x2x2 x3x3...x n-2 x n-1 x  FSM TM Configuration: tape contents left of head tape contents head and right current FSM state

Turing Machine Configuration... q0q0 input ____ blanks Initial configuration: x0x0 x1x1 x2x2 x3x3...x n-2 x n-1 x  Initial Configuration: FSM TM Configuration:

TM Computing Model... FSM

TM Computing Model... FSM

Defining  *... FSM TM stops when it enters one of these states!

Defining  *... FSM

Defining  *... FSM

Defining  *... a u b v FSM

Defining  *... a u b v FSM Have we covered everything?

... b v FSM Defining

... b v FSM

Defining a u b FSM This is no right edge! Can always add blanks.

Defining a u b FSM This is no right edge! Can always add blanks.

TM Computing Model... FSM Initial Configuration:

Thursday’s Class Alan Turing and why he invented the TM model Alan Turing and why he invented the TM model Robustness of TM model Robustness of TM model Church-Turing Thesis Church-Turing Thesis Before Thursday: Read Chapter 3 It contains the most bogus sentence in the whole book. Post your guesses and explanations on course site. First to correctly identify most bogus sentence gets +25 bonus points (only 1 guess allowed!)