1 Turing Machines There are languages that are not context-free. What can we say about the most powerful automata and the limits of computation?. Alan.

Slides:



Advertisements
Similar presentations
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Advertisements

Variants of Turing machines
Programming Languages Wrap-up. Your Toolkit Object-oriented Imperative Functional Logic.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Based on Slides by Zeph Grunschlag from Columbia University www1.cs.columbia.edu/~zeph/3261/L14/L14.ppt Basic Computability Reading Material: J. Savage,
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Programming the TM qa  (,q) (,q) q1q1 0q1q1 R q1q1 1q1q1 R q1q1  h  Qa  (,q) (,q) q1q1 0q2q2  q1q1 1q3q3  q1q1  h  q2q2 0q4q4 R q2q2 1q4q4.
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
Homework #9 Solutions.
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines CS 105: Introduction to Computer Science.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Turing Machines A more powerful computation model than a PDA ?
Ding-Zhu Du Office: ECSS 3-611, M 3:15-4:30 Lecture: ECSS 2.311, MW 12:30-1:45.
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Halting Problem Introduction to Computing Science and Programming I.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
Theory of computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
1 IDT Open Seminar ALAN TURING AND HIS LEGACY 100 Years Turing celebration Gordana Dodig Crnkovic, Computer Science and Network Department Mälardalen University.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
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 Introduction to Turing Machines
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 April 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
CS 3240 – Chapter 9.  Turing Machines  From Alan Turing, 1936  Turns out to be the LAST machine  The only machine you'll ever need  The Church-Turing.
1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
Turing Machines. The next level of Machine… PDAs improved on FSAs by adding memory. We make the memory more flexible to do more complicated tasks.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
Theory of Computation Automata Theory Dr. Ayman Srour.
CS 154 Formal Languages and Computability April 7 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Computability. Turing Machines Read input letter & tape letter, write tape letter, move left or right.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Chapters 11 and 12 Decision Problems and Undecidability.
Introduction to Computing Science and Programming I
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Turing Machines
Pumping Lemma Revisited
Turing Machines 2nd 2017 Lecture 9.
CSE 105 theory of computation
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
Chapter 3: The CHURCH-Turing thesis
Computing Functions with Turing Machines
Chapter 3 Turing Machines.
CSE 105 theory of computation
Instructor: Aaron Roth
Formal Definitions for Turing Machines
More Undecidable Problems
Hopcroft, Motawi, Ullman, Chap 8
CSE 105 theory of computation
Presentation transcript:

1 Turing Machines There are languages that are not context-free. What can we say about the most powerful automata and the limits of computation?. Alan Turing ( ).

2 Standard Turing Machine Control unit q 0 Tape Read-write head

3 Standard Turing Machine M = (Q, , , , q 0, , F) Q: finite set of internal states  : finite set of symbols - tape alphabet    : blank     {}: finite set of symbols - input alphabet  : Q    Q    {L, R}transition function q 0  Q: initial state F  Q: set of final states

4 Standard Turing Machine  : Q    Q    {L, R} current symbol head move direction replacing symbol

5 Example  (q 0, a) = (q 1, d, R) current symbol head move to the right replacing symbol

6 Halt State A state for which  is not defined. Assume that all final states are halt states.

7 Example M = (Q, , , , q 0, , F) Q = {q 0, q 1 }  (q 0, a) = (q 0, b, R)  = {a, b}  (q 0, b) = (q 0, b, R)  = {a, b,  }  (q 0,  ) = (q 1, , L) F = {q 1 }

8 Example M = (Q, , , , q 0, , F) Q = {q 0, q 1 }  (q 0, a) = (q 1, a, R)  = {a, b}  (q 0, b) = (q 1, b, R)  = {a, b,  }  (q 0,  ) = (q 1, , R) F =  (q 1, a) = (q 0, a, L)  (q 1, b) = (q 0, b, L)  (q 1,  ) = (q 0, , L)

9 Instantaneous Description a 1 a 2... a k-1 qa k a k+1... a n current state current symbol

10 Instantaneous Description move: abq 1 cd  abeq 2 d if  (q 1, c)  (q 2, e, R)

11 Instantaneous Description x1qix2 y1qjy2x1qix2 y1qjy2x1qix2 y1qjy2x1qix2 y1qjy2

12 Turing Machines as Language Accepters Let M = (Q, , , , q 0, , F) be a TM. L(M) = {w   + | q 0 w     x 1 q f x 2 where q f  F and x 1, x 2   * }

13 Example L = 0* M = (Q, , , , q 0, , F) ?

14 Example L = { a n b n | n  1 } M = (Q, , , , q 0, , F) ?

15 Example L = { a n b n c n | n  1 } M = (Q, , , , q 0, , F) ?

16 Turing Machines as Language Transducers q 0 w     q f w^ function: w^ = f(w)

17 Turing Machines as Language Transducers A function f with domain D is said to be Turing-computable if there exists some Turing machine M = (Q, , , , q 0, , F) such that: q 0 w     q f f(w) q f  F for all w  D.

18 Example f(x, y) = x + y M = (Q, , , , q 0, , F) ?

19 Example f(w) = www  {1} + M = (Q, , , , q 0, , F) ?

20 Example f(x, y) = true if x  y or f(x, y) = false otherwise M = (Q, , , , q 0, , F) ?

21 Combining Turing Machines x + y if x  y f(x, y) = 0 if x  y M = (Q, , , , q 0, , F) ?

22 Combining Turing Machines Comparer C Adder A Eraser E x  y x  y x, yf(x, y) x + y 0

23 Combining Turing Machines q c w(x)0w(y)     q A w(x)0w(y) if x  y q c w(x)0w(y)     q E w(x)0w(y) if x  y q A w(x)0w(y)     q Af w(x + y)0 q E w(x)0w(y)     q Ef 0

24 Macroinstructions if a then q j else q k  (q i, a) = (q j0, a, R)  (q i, b) = (q k0, b, R)  (q j0, c) = (q j, c, L)  (q k0, c) = (q k, c, L)

25 Subprograms Region separator Workspace for A ## Workspace for B

26 Example f(x, y) = x  y For each 1 in x, create a 1-string of length y.

27 Turing's Thesis Turing machine appears to be simple. Turing seems to approach a typical digital computer.

28 Turing's Thesis Any computation that can be carried out by mechanical means can be performed by some Turing machine.

29 Turing's Thesis Anything done by existing digital computers can be done by a Turing machine. No problem solvable by an algorithm cannot be solved by a Turing machine. No alternative mechanical computation model is more powerful than the Turing machine model.

30 Homework Exercises: 2, 5, 8, 9, 16, 19 of Section 9.1. Exercises: 1, 2, 3, 4, 9 of Section 9.2. Presentations: Section 12.1: Computability and Decidability + Halting Problem Section 13.1: Recursive Functions Post Systems + Church's Thesis Section 13.2: Measures of Complexity + Complexity Classes