COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Turing Machines
1 / 23
COMP3630/6360: Theory of Computation Semester 1, 2020 The - - PowerPoint PPT Presentation
COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Turing Machines 1 / 23 This lecture covers Chapter 8 of HMU: Turing Machines Turing Machine Extensions of Turing Machines Restrictions of
1 / 23
3 / 23
4 / 23
5 / 23
segment to the strict left
state
segment from the head onwards
segment to the strict left
z }| { X1 · · · X‘Bi−1
state
z}|{ q head · · · q B B X1 X2 X3 · · · · · · X‘ B B z }| { head · · · i Blanks · · ·
state
z}|{ q
segment from the head onwards
z }| { BiX1 · · · X‘ ID State, Tape contents, Reading head location
6 / 23
M to indicate a single move of a TM M, and
∗
M
7 / 23
∗
M αpβ for some p ∈ F.
Recursive Regular Context-free Recursively Enumerable (RE)
8 / 23
Extensions of TMs
9 / 23
Extensions of TMs
. . . X1 X2 Xk
10 / 23
Extensions of TMs
. . . X1 X2 Xk
11 / 23
Extensions of TMs
Finite Control Finite Control · · · · · · · · · · · · · · · · · · · · · 10 11 5 4 13 12 6 14 † 12 † † 1 1 0 1 1 1 1 1 1 0 0 1 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1
· · · · · ·
12 / 23
Extensions of TMs
Finite Control Finite Control · · · · · · · · · · · · · · · · · · · · · 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1
· · · · · ·
†
1 1 1 1 0
† †
1 1 1
State: q0 State: (q0; 0; [0; 1; 1])
13 / 23
Extensions of TMs
14 / 23
Extensions of TMs
15 / 23
Extensions of TMs
ID1 ID2;1 ID2;2 ID2;k ID3;1 ID3;2 ID3;3 ID3;4 ID3;‘ · · · · · · ID1 ID3;1 ID3;2 ID3;3 ID3;4 ‡ † ID1 ID2;1 ID2;2 ‡ † † · · · † † ID2;k † ID1 ID2;1 ID2;2 ‡ † · · · † † ID2;k † † † ID3;1 ID3;2 ID1 ID2;1 ID2;2 ‡ · · · † † ID2;k † † † † † ‡ ‡ ‡
Tape 1 (If M does not halt at ID1) (If M does not halt at ID1 and ID2;1) (If M does not halt at ID1, ID2;1 and ID2;2) (N does Breadth-First exploration of IDs of M) 16 / 23
Extensions of TMs
17 / 23
Restrictions of TMs
18 / 23
Restrictions of TMs
19 / 23
Restrictions of TMs
a b S S B B TM Finite Control Finite Control a b PDA a a S Finite Control a b PDA a † a a b 1 2 Finite Control a b PDA a 3 † a a b † R semi-infinite portion of TM’s tape Strict L semi-infinite portion of TM’s tape
20 / 23
Restrictions of TMs
Finite Control X Z0 X X X Z0 X X X X
21 / 23
Restrictions of TMs
1 requires adding or subtracting, which is done by popping or
22 / 23
Restrictions of TMs
23 / 23