Professional Documents
Culture Documents
TM Variations
TM Variations
of the
Turing Machine
3/10/2022 1
The Standard Model
Infinite Tape
◊ ◊aababbcac a◊◊◊
Control Unit
Deterministic
3/10/2022 2
Variations of the Standard Model
We will prove:
each new class has the same power
with Standard Turing Machine
3/10/2022 4
Multi-tape Turing Machines
Control unit
(state machine)
Tape 1 Tape 2
◊ a b c ◊ ◊ e f g ◊
Input string
3/10/2022 5
Tape 1 Time 1 Tape 2
◊ a b c ◊ ◊ e f g ◊
q1 q1
(b, f ) → ( g , d ), L, R
q1 q2
3/10/2022 6
Theorem: Multi-tape machines
have the same power with
Standard Turing machines
3/10/2022 8
2. Standard Turing machines simulate
Multi-tape machines:
Standard machine:
• Uses a multi-track tape to simulate
the multiple tapes
3/10/2022 9
Multi-tape Machine
Tape 1 Tape 2
◊ a b c ◊ ◊ e f g h ◊
q2 Choice 1
a → b, L
q1
a → c, R q3 Choice 2
3/10/2022 13
Time 0
◊ a b c ◊
Time 1
q1
Choice 1
q2 ◊ b b c ◊
a → b, L
q2
q1
Choice 2
a → c, R q3 ◊ c b c ◊
3/10/2022
q3 14
Input string w is accepted if
there is a computation:
∗
q0 w x q f y
There is a computation:
3/10/2022 15
Theorem: Nondeterministic machines
have the same power with
Standard Turing machines
3/10/2022 17
2. Standard (deterministic) Turing machines
simulate Nondeterministic machines:
Deterministic machine:
• Uses a 2-dimensional tape
(which is equivalent to 1-dimensional tape)
Step 1
Step 2
Step i
reject accept infinite
Step i+1
path
3/10/2022 19
The Deterministic Turing machine
simulates all possible computation paths:
•simultaneously
•step-by-step
3/10/2022 20
NonDeterministic machine
Time 0
a → b, L q2
◊ a b c ◊
q1
q1
a → c, R q3
Deterministic machine
# # # # # #
# a b c current
#
# q1 # configuration
# # # # #
3/10/2022 21
NonDeterministic machine
Time 1
◊ b b c ◊ Choice 1
a → b, L q2
q2
q1
◊ c b c ◊ Choice 2
a → c, R q3 q3
Deterministic machine
# # # # # #
# b b c # Computation 1
# q2 #
# c b c # Computation 2
# q3 #
3/10/2022 22
Deterministic Turing machine
Repeat
For each configuration in current step
of non-deterministic machine,
if there are two or more choices:
1. Replicate configuration
2. Change the state in the replicas
Until either the input string is accepted
or rejected in all configurations
END OF PROOF
3/10/2022 23
Remark:
The simulation takes in the worst case
exponential time compared to the shortest
accepting path length of the
nondeterministic machine
3/10/2022 24