Turing’s Thesis Costas Busch - RPI.

Slides:



Advertisements
Similar presentations
Variations of the Turing Machine
Advertisements

Variants of Turing machines
CS605 – The Mathematics and Theory of Computer Science Turing Machines.
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Turing’s Thesis Fall 2006 Costas Busch - RPI.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Recursively Enumerable and Recursive Languages
Courtesy Costas Busch - RPI1 Turing’s Thesis. Courtesy Costas Busch - RPI2 Turing’s thesis: Any computation carried out by mechanical means can be performed.
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Variations of the Turing Machine part2. 2 Standard Machine--Multiple Track Tape track 1 track 2 one symbol.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Fall 2006Costas Busch - RPI1 PDAs Accept Context-Free Languages.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Fall 2004COMP 3351 Turing’s Thesis. Fall 2004COMP 3352 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output.
A Universal Turing Machine
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
Costas Busch - LSU1 Turing’s Thesis. Costas Busch - LSU2 Turing’s thesis (1930): Any computation carried out by mechanical means can be performed by a.
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 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 ? ?
The Church-Turing Thesis
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Turing’s Thesis.
Turing’s Thesis Costas Busch - LSU.
A Universal Turing Machine
Recursively Enumerable and Recursive Languages
CSCI 2670 Introduction to Theory of Computing
Time complexity Here we will consider elements of computational complexity theory – an investigation of the time (or other resources) required for solving.
Non Deterministic Automata
Busch Complexity Lectures: Turing Machines
Busch Complexity Lectures: Reductions
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
Pushdown Automata PDAs
CSCI 2670 Introduction to Theory of Computing
Extensions and Restrictions of Turing Machines
OTHER MODELS OF TURING MACHINES
CSE 105 theory of computation
NPDAs Accept Context-Free Languages
Turing acceptable languages and Enumerators
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Non-Deterministic Finite Automata
Decidable Languages Costas Busch - LSU.
Non Deterministic Automata
A Universal Turing Machine
The Off-Line Machine Input File read-only (once) Input string
Undecidable problems:
Variations of the Turing Machine
Recall last lecture and Nondeterministic TMs
Variants of Turing machines
Formal Definitions for Turing Machines
CSE 105 theory of computation
Presentation transcript:

Turing’s Thesis Costas Busch - RPI

Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930) Costas Busch - RPI

A computation is mechanical if and only if Computer Science Law: A computation is mechanical if and only if it can be performed by a Turing Machine There is no known model of computation more powerful than Turing Machines Costas Busch - RPI

Definition of Algorithm: An algorithm for function is a Turing Machine which computes Costas Busch - RPI

Algorithms are Turing Machines When we say: There exists an algorithm We mean: There exists a Turing Machine that executes the algorithm Costas Busch - RPI

Variations of the Turing Machine Costas Busch - RPI

The Standard Model Infinite Tape Read-Write Head (Left or Right) Control Unit Deterministic Costas Busch - RPI

Variations of the Standard Model Turing machines with: Stay-Option Semi-Infinite Tape Off-Line Multitape Multidimensional Nondeterministic Costas Busch - RPI

The variations form different Turing Machine Classes We want to prove: Each Class has the same power with the Standard Model Costas Busch - RPI

Same Power of two classes means: Both classes of Turing machines accept the same languages Costas Busch - RPI

Same Power of two classes means: For any machine of first class there is a machine of second class such that: And vice-versa Costas Busch - RPI

a technique to prove same power Simulation: a technique to prove same power Simulate the machine of one class with a machine of the other class Second Class Simulation Machine First Class Original Machine Costas Busch - RPI

Configurations in the Original Machine correspond to configurations in the Simulation Machine Original Machine: Simulation Machine: Costas Busch - RPI

The Simulation Machine and the Original Machine Final Configuration Original Machine: Simulation Machine: The Simulation Machine and the Original Machine accept the same language Costas Busch - RPI

Turing Machines with Stay-Option The head can stay in the same position Left, Right, Stay L,R,S: moves Costas Busch - RPI

Example: Time 1 Time 2 Costas Busch - RPI

have the same power with Standard Turing machines Theorem: Stay-Option Machines have the same power with Standard Turing machines Costas Busch - RPI

Part 1: Stay-Option Machines are at least as powerful as Proof: Part 1: Stay-Option Machines are at least as powerful as Standard machines Proof: a Standard machine is also a Stay-Option machine (that never uses the S move) Costas Busch - RPI

Part 2: Standard Machines are at least as powerful as Proof: Part 2: Standard Machines are at least as powerful as Stay-Option machines Proof: a standard machine can simulate a Stay-Option machine Costas Busch - RPI

Simulation in Standard Machine Stay-Option Machine Simulation in Standard Machine Similar for Right moves Costas Busch - RPI

Simulation in Standard Machine Stay-Option Machine Simulation in Standard Machine For every symbol Costas Busch - RPI

Simulation in Standard Machine: Example Stay-Option Machine: 1 2 Simulation in Standard Machine: 1 2 3 Costas Busch - RPI

Standard Machine--Multiple Track Tape one symbol Costas Busch - RPI

track 1 track 2 track 1 track 2 Costas Busch - RPI

Semi-Infinite Tape ......... Costas Busch - RPI

Standard Turing machines simulate Semi-infinite tape machines: Trivial Costas Busch - RPI

Semi-infinite tape machines simulate Standard Turing machines: Standard machine ......... ......... Semi-infinite tape machine ......... Costas Busch - RPI

Semi-infinite tape machine with two tracks Standard machine ......... ......... reference point Semi-infinite tape machine with two tracks Right part ......... Left part Costas Busch - RPI

Semi-infinite tape machine Standard machine Semi-infinite tape machine Left part Right part Costas Busch - RPI

Semi-infinite tape machine Standard machine Semi-infinite tape machine Right part Left part For all symbols Costas Busch - RPI

Semi-infinite tape machine Time 1 Standard machine ......... ......... Semi-infinite tape machine Right part ......... Left part Costas Busch - RPI

Semi-infinite tape machine Time 2 Standard machine ......... ......... Semi-infinite tape machine Right part ......... Left part Costas Busch - RPI

Semi-infinite tape machine At the border: Semi-infinite tape machine Right part Left part Costas Busch - RPI

Semi-infinite tape machine Time 1 Right part ......... Left part Time 2 Right part ......... Left part Costas Busch - RPI

Semi-infinite tape machines have the same power with Theorem: Semi-infinite tape machines have the same power with Standard Turing machines Costas Busch - RPI

The Off-Line Machine Input File read-only Control Unit read-write Tape Costas Busch - RPI

Off-line machines simulate Standard Turing Machines: 1. Copy input file to tape 2. Continue computation as in Standard Turing machine Costas Busch - RPI

Standard machine Off-line machine Tape Input File 1. Copy input file to tape Costas Busch - RPI

2. Do computations as in Turing machine Standard machine Off-line machine Tape Input File 2. Do computations as in Turing machine Costas Busch - RPI

Standard Turing machines simulate Off-line machines: Use a Standard machine with four track tape to keep track of the Off-line input file and tape contents Costas Busch - RPI

Four track tape -- Standard Machine Off-line Machine Tape Input File Four track tape -- Standard Machine Input File head position Tape head position Costas Busch - RPI

Repeat for each state transition: Return to reference point Input File head position Tape head position Repeat for each state transition: Return to reference point Find current input file symbol Find current tape symbol Make transition Costas Busch - RPI

have the same power with Stansard machines Theorem: Off-line machines have the same power with Stansard machines Costas Busch - RPI

Multitape Turing Machines Control unit Tape 1 Tape 2 Input Costas Busch - RPI

Tape 1 Time 1 Tape 2 Time 2 Costas Busch - RPI

Multitape machines simulate Standard Machines: Use just one tape Costas Busch - RPI

Standard machines simulate Multitape machines: Use a multi-track tape A tape of the Multiple tape machine corresponds to a pair of tracks Costas Busch - RPI

Standard machine with four track tape Multitape Machine Tape 1 Tape 2 Standard machine with four track tape Tape 1 head position Tape 2 head position Costas Busch - RPI

Repeat for each state transition: Return to reference point Tape 1 head position Tape 2 head position Repeat for each state transition: Return to reference point Find current symbol in Tape 1 Find current symbol in Tape 2 Make transition Costas Busch - RPI

have the same power with Standard Turing Machines Theorem: Multi-tape machines have the same power with Standard Turing Machines Costas Busch - RPI

Same power doesn’t imply same speed: Language Acceptance Time Standard machine Two-tape machine Costas Busch - RPI

Standard machine: Go back and forth times Two-tape machine: Copy to tape 2 ( steps) ( steps) Leave on tape 1 Compare tape 1 and tape 2 ( steps) Costas Busch - RPI

MultiDimensional Turing Machines Two-dimensional tape MOVES: L,R,U,D HEAD U: up D: down Position: +2, -1 Costas Busch - RPI

Multidimensional machines simulate Standard machines: Use one dimension Costas Busch - RPI

Standard machines simulate Multidimensional machines: Use a two track tape Store symbols in track 1 Store coordinates in track 2 Costas Busch - RPI

Two-dimensional machine Standard Machine symbols coordinates Costas Busch - RPI

Repeat for each transition Standard machine: Repeat for each transition Update current symbol Compute coordinates of next position Go to new position Costas Busch - RPI

MultiDimensional Machines have the same power Theorem: MultiDimensional Machines have the same power with Standard Turing Machines Costas Busch - RPI

NonDeterministic Turing Machines Non Deterministic Choice Costas Busch - RPI

Time 0 Time 1 Choice 1 Choice 2 Costas Busch - RPI

Input string is accepted if this a possible computation Initial configuration Final Configuration Final state Costas Busch - RPI

NonDeterministic Machines simulate Standard (deterministic) Machines: Every deterministic machine is also a nondeterministic machine Costas Busch - RPI

Deterministic machines simulate NonDeterministic machines: Keeps track of all possible computations Costas Busch - RPI

Non-Deterministic Choices Computation 1 Costas Busch - RPI

Non-Deterministic Choices Computation 2 Costas Busch - RPI

Simulation Deterministic machine: Keeps track of all possible computations Stores computations in a two-dimensional tape Costas Busch - RPI

NonDeterministic machine Time 0 Deterministic machine Computation 1 Costas Busch - RPI

NonDeterministic machine Time 1 Choice 1 Computation 1 Computation 2 Costas Busch - RPI

Execute a step in each computation: Repeat Execute a step in each computation: If there are two or more choices in current computation: 1. Replicate configuration 2. Change the state in the replica Costas Busch - RPI

Theorem: NonDeterministic Machines have the same power with Costas Busch - RPI

The simulation in the Deterministic machine Remark: The simulation in the Deterministic machine takes time exponential time compared to the NonDeterministic machine Costas Busch - RPI