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.

Slides:



Advertisements
Similar presentations
Deterministic Turing Machines
Advertisements

Turing Machine Read/Write – Move Left/Right BB Read/Write Head State Qi.
Variants of Turing machines
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 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
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:
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
CSE202: Introduction to Formal Languages and Automata Theory Chapter 9 The Turing Machine These class notes are based on material from our textbook, An.
 Computability Theory Turing Machines Professor MSc. Ivan A. Escobar
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.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
1 Turing Machines Reading: Chapter 8. 2 Turing Machines are… Very powerful (abstract) machines that could simulate any modern day computer (although very,
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 Turing machines Chapter 4, Smith and Kimber. A Turing machine is an abstraction of a human “computer”. Consists of - control, in the form of states -
CSCI 2670 Introduction to Theory of Computing October 7, 2004.
Turing Machines Lecture 26 Naveen Z Quazilbash. Overview Introduction Turing Machine Notation Turing Machine Formal Notation Transition Function Instantaneous.
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 ? ?
December 3, 2009Theory of Computation Lecture 21: Turing Machines III 1 Simulation of T in L Now the MIDDLE section of Q can be generated by replacing.
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 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 ? ?
CSCI 2670 Introduction to Theory of Computing September 29, 2005.
CS 154 Formal Languages and Computability April 7 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
TM Macro Language MA/CSSE 474 Theory of Computation.
Cpt S 317: Spring 2009 Reading: Chapter 8
TMs for {a2n | n  0} {a2n | n  0}
Busch Complexity Lectures: Turing Machines
Deterministic Turing Machines
Busch Complexity Lectures: Reductions
Reductions Costas Busch - LSU.
Pumping Lemma Revisited
Pushdown Automata PDAs
Cpt S 317: Spring 2009 Reading: Chapter 8
COSC 3340: Introduction to Theory of Computation
Computing Functions with Turing Machines
Turing Machines 2nd 2017 Lecture 9.
CSE 105 theory of computation
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
CSE 105 theory of computation
Computing Functions with Turing Machines
The Off-Line Machine Input File read-only (once) Input string
Recall last lecture and Nondeterministic TMs
CSE 105 theory of computation
Variants of Turing machines
Formal Definitions for Turing Machines
Hopcroft, Motawi, Ullman, Chap 8
CSE 105 theory of computation
Presentation transcript:

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 Machine Control Unit Read-Write Head Input/Output Tape

Computing with a TM Read-write head starts somewhere on the tape, and control unit is in the initial state. transition function takes state, tape symbol, and transitions to new state, writing a symbol on the tape, and moving one space left or right. a b c d b c State = q0 State = q1

Stopping the computation Since the tape (and therefore the input) is now unbounded, when do you stop? Stop in a halt state: any final or trap state

Standard TM The Standard Turing Machine that:  Has an unbounded tape in both directions  Is deterministic  Has no special input or output. The tape takes care of both.

Turing Machine that accepts a n b n : n>0 Idea: read an “a”, and replace it with “x” Then look for a “b” - replace the first “b” with a “y” Once a successful pair is made, go to next state. Go back to the next “a” and return to first state. If there aren’t any more a’s, check that there are also no more b’s. If that’s true, accept.

a n b n : n>0

Turing Machines as Transducers Input = initial tape that isn’t blank Output = final tape that isn’t blank A function is Turing-computable if there is a Turing machine that computes it. What kind of functions do you think are Turing-computable?

Computing x + y Suppose x and y are represented by some number of ones, and they are separated by a 0. RW head is at the start of x. At end, RW head is at the start of x+y. x+y is represented with ones, and there is a zero at the end of the input. How would you do it?

Design a TM that copies a string Start with the RW head at the beginning of a string of 1’s. Replace every 1 with an x. Replace the rightmost x with a 1. Go to the first blank and write a 1. Repeat 2 & 3 until there are no more x’s.

String copier (or times 2)

Design a Turing Machine that computes x >= y Start with unary notation, with 0 in between. Halt in qx if x >=y and qy if y >x. Use same idea as a n b n, but check if there are more on one side than another.