Turings Thesis Fall 2004 COMP 335 1 Turings
- Slides: 71
Turing’s Thesis Fall 2004 COMP 335 1
Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930) Fall 2004 COMP 335 2
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 Fall 2004 COMP 335 3
Definition of Algorithm: An algorithm for function is a Turing Machine which computes Fall 2004 COMP 335 4
Algorithms are Turing Machines When we say: There exists an algorithm We mean: There exists a Turing Machine that executes the algorithm Fall 2004 COMP 335 5
Variations of the Turing Machine Fall 2004 COMP 335 6
The Standard Model Infinite Tape Read-Write Head (Left or Right) Control Unit Deterministic Fall 2004 COMP 335 7
Variations of the Standard Model Turing machines with: • Stay-Option • Semi-Infinite Tape • Off-Line • Multitape • Multidimensional • Nondeterministic Fall 2004 COMP 335 8
The variations form different Turing Machine Classes We want to prove: Each Class has the same power with the Standard Model Fall 2004 COMP 335 9
Same Power of two classes means: Both classes of Turing machines accept the same languages Fall 2004 COMP 335 10
Same Power of two classes means: For any machine of first class there is a machine of second class such that: And vice-versa Fall 2004 COMP 335 11
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 Fall 2004 COMP 335 12
Configurations in the Original Machine correspond to configurations in the Simulation Machine Original Machine: Simulation Machine: Fall 2004 COMP 335 13
Final Configuration Original Machine: Simulation Machine: The Simulation Machine and the Original Machine accept the same language Fall 2004 COMP 335 14
Turing Machines with Stay-Option The head can stay in the same position Left, Right, Stay L, R, S: moves Fall 2004 COMP 335 15
Example: Time 1 Time 2 Fall 2004 COMP 335 16
Theorem: Fall 2004 Stay-Option Machines have the same power with Standard Turing machines COMP 335 17
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) Fall 2004 COMP 335 18
Proof: Part 2: Standard Machines are at least as powerful as Stay-Option machines Proof: Fall 2004 a standard machine can simulate a Stay-Option machine COMP 335 19
Stay-Option Machine Simulation in Standard Machine Similar for Right moves Fall 2004 COMP 335 20
Stay-Option Machine Simulation in Standard Machine For every symbol Fall 2004 COMP 335 21
Example Stay-Option Machine: 1 2 Simulation in Standard Machine: 1 Fall 2004 2 COMP 335 3 22
Standard Machine--Multiple Track Tape track 1 track 2 one symbol Fall 2004 COMP 335 23
track 1 track 2 Fall 2004 COMP 335 24
Semi-Infinite Tape. . Fall 2004 COMP 335 25
Standard Turing machines simulate Semi-infinite tape machines: Trivial Fall 2004 COMP 335 26
Semi-infinite tape machines simulate Standard Turing machines: . . Standard machine . . Semi-infinite tape machine. . Fall 2004 COMP 335 27
. . Standard machine. . reference point Semi-infinite tape machine with two tracks Right part . . Left part Fall 2004 COMP 335 28
Standard machine Semi-infinite tape machine Left part Fall 2004 Right part COMP 335 29
Standard machine Semi-infinite tape machine Right part Left part For all symbols Fall 2004 COMP 335 30
Time 1 Standard machine . . . . Semi-infinite tape machine Right part . . Left part Fall 2004 COMP 335 31
Time 2 Standard machine . . . . Semi-infinite tape machine Right part . . Left part Fall 2004 COMP 335 32
At the border: Semi-infinite tape machine Right part Left part Fall 2004 COMP 335 33
Semi-infinite tape machine Right part Time 1 Left part Right part Time 2. . Left part Fall 2004 . . COMP 335 34
Theorem: Fall 2004 Semi-infinite tape machines have the same power with Standard Turing machines COMP 335 35
The Off-Line Machine Input File read-only Control Unit Tape Fall 2004 read-write COMP 335 36
Off-line machines simulate Standard Turing Machines: Off-line machine: 1. Copy input file to tape 2. Continue computation as in Standard Turing machine Fall 2004 COMP 335 37
Standard machine Off-line machine Tape Input File 1. Copy input file to tape Fall 2004 COMP 335 38
Standard machine Off-line machine Tape Input File 2. Do computations as in Turing machine Fall 2004 COMP 335 39
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 Fall 2004 COMP 335 40
Off-line Machine Tape Input File Four track tape -- Standard Machine Input File head position Tape head position Fall 2004 COMP 335 41
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 Fall 2004 COMP 335 42
Theorem: Fall 2004 Off-line machines have the same power with Stansard machines COMP 335 43
Multitape Turing Machines Control unit Tape 1 Tape 2 Input Fall 2004 COMP 335 44
Tape 1 Time 1 Tape 2 Time 2 Fall 2004 COMP 335 45
Multitape machines simulate Standard Machines: Use just one tape Fall 2004 COMP 335 46
Standard machines simulate Multitape machines: Standard machine: • Use a multi-track tape • A tape of the Multiple tape machine corresponds to a pair of tracks Fall 2004 COMP 335 47
Multitape Machine Tape 1 Tape 2 Standard machine with four track tape Tape 1 head position Tape 2 head position Fall 2004 COMP 335 48
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 Fall 2004 COMP 335 49
Theorem: Fall 2004 Multi-tape machines have the same power with Standard Turing Machines COMP 335 50
Same power doesn’t imply same speed: Language Acceptance Time Standard machine Two-tape machine Fall 2004 COMP 335 51
Standard machine: Go back and forth times Two-tape machine: Copy Leave to tape 2 ( steps) on tape 1 ( steps) Compare tape 1 and tape 2 Fall 2004 COMP 335 52
Multi. Dimensional Turing Machines Two-dimensional tape MOVES: L, R, U, D U: up D: down Fall 2004 HEAD Position: +2, -1 COMP 335 53
Multidimensional machines simulate Standard machines: Use one dimension Fall 2004 COMP 335 54
Standard machines simulate Multidimensional machines: Standard machine: • Use a two track tape • Store symbols in track 1 • Store coordinates in track 2 Fall 2004 COMP 335 55
Two-dimensional machine Standard Machine symbols coordinates Fall 2004 COMP 335 56
Standard machine: Repeat for each transition • Update current symbol • Compute coordinates of next position • Go to new position Fall 2004 COMP 335 57
Theorem: Fall 2004 Multi. Dimensional Machines have the same power with Standard Turing Machines COMP 335 58
Non. Deterministic Turing Machines Non Deterministic Choice Fall 2004 COMP 335 59
Time 0 Choice 1 Fall 2004 Time 1 COMP 335 Choice 2 60
Input string is accepted if this a possible computation Initial configuration Final Configuration Final state Fall 2004 COMP 335 61
Non. Deterministic Machines simulate Standard (deterministic) Machines: Every deterministic machine is also a nondeterministic machine Fall 2004 COMP 335 62
Deterministic machines simulate Non. Deterministic machines: Deterministic machine: Keeps track of all possible computations Fall 2004 COMP 335 63
Non-Deterministic Choices Computation 1 Fall 2004 COMP 335 64
Non-Deterministic Choices Computation 2 Fall 2004 COMP 335 65
Simulation Deterministic machine: • Keeps track of all possible computations • Stores computations in a 2 D tape Fall 2004 COMP 335 66
Non. Deterministic machine Time 0 Deterministic machine Computation 1 Fall 2004 COMP 335 67
Non. Deterministic machine Time 1 Choice 2 Deterministic machine Computation 1 Computation 2 Fall 2004 COMP 335 68
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 Fall 2004 COMP 335 69
Theorem: Non. Deterministic Machines have the same power with Deterministic machines Fall 2004 COMP 335 70
Remark: The simulation in the Deterministic machine takes time exponential time compared to the Non. Deterministic machine Fall 2004 COMP 335 71
- Compsci 335
- Builder design pattern uml diagram
- Cmsc 335
- 30 tac 335
- Csc 335
- Cpsc 335
- Cmsc 335
- Sim 335
- Cpsc 335
- 30 tac 335
- Psy 335 purdue
- Cpsc 335
- 30 tac 335
- Thesis statement things fall apart
- Ambiguity in the fall of the house of usher
- What is a closed thesis
- Xxix em algarismo romano xix
- Open house 2004
- Tabel rh
- Idea 97
- Chuck close photorealism
- 2004 aime 2
- Cultural dimensions ib psychology
- 09.02.2004 lunaf
- Copyright 2004
- Kid pix 4 download
- En 10204: 2004
- Lancaster 2004
- Gmb service exim 2004
- Anti discrimination act qld
- 2004
- Paano mawawala ang pagkamamamayang pilipino
- Deped order 35 s. 2004
- Copyright 2004
- 2004 tutulmalar
- Uu praktik kedokteran nomor 29 tahun 2004
- Tableau macrocible
- Boscastle flood responses
- 2004
- 9 months before 26 october 2004
- Magic quadrant for enterprise content management 2004
- Coso
- Copyright 2004
- The xxxxx
- 2004-1948
- 2004
- Trommelscanner funktionsweise
- Two charges p and q are 100mm apart
- Ley idea 2004
- Kebijakan dasar puskesmas 2021
- Standar isi kurikulum 2004
- 2004 tutulmalar
- In his 2004 novel magic seeds
- T. trimpe 2004 http //sciencespot.net/
- Apod nasa gov calendar 1982
- Otocania
- Florida building code 2004
- Legea 7/2004
- Edgar schein 2004
- Ejemplos de bienes publicos
- Bildungsplan 2004
- Equal opportunities act 2004
- 2004
- Guidance and counseling act of 2004
- Directorio general para la catequesis
- 2004 tutulmalar
- Mengukur biaya hidup
- Sworn statement for esales registration
- 13 agustus 2004
- Pearson
- Gudi padwa 2006
- 2004 pearson education benjamin cummings