Chapter 8 Introduction To Turing Machines (Part B) : Luxemburg
Chapter 8 Introduction To Turing Machines (Part B) : Luxemburg
Luxemburg
1
Outline
Problems that Computers Cannot Solve The Turing Machine (TM) (the above two sections are in part a) Programming Techniques for TMs Extensions to the Basic TM Restricted TMs TMs and Computers
2
state
q0 q1 q2 q3 q4 q5 q6
0
(q1, B, R) (q1, 0, R) (q3, 1, L) (q3, 0, L) (q4, 0, L) (q5, B, R) -
1
(q5, B, R) (q2, 1, R) (q2, 1, R) (q3, 1, L) (q4, B, L) (q5, B, R) -
B
(q4, B, L) (q0, B, R) (q6, 0, R) (q6, B, R) -
X Y
Z
Figure 8.13. A TM viewed as having finite control storage and multiple tracks.
10
14
The above extensions make no increase of the original TMs power, but make TMs easier to use:
Multitape TM --- useful for simulating real computers Nondeterministic TM --- making TM programming easier.
16
17
d(q, X) = {(q1, Y1, D1), (q2, Y2, D2), , (qk, Yk, Dk)}.
The NTM is not any powerful than a deterministic TM (DTM), as said by the following theorem.
Theorem 8.11
If MN is NTM, then there is a DTM MD such that L(MN) = L(MD). (for proof, see the textbook)
21
22
The above restrictions make no decrease of the original TMs power, but are useful for theorem proving. Undecidability of the TM also applies to these restricted TMs.
23
24
26
For an example of a counter machine of the 2nd type, do the exercise (part a) of this chapter.
27
29
That means:
the real computer we use every day is nearly an implementation of the maximal computational model. under the assumptions that the memory space (including registers, RAM, hard disks, ) is infinite in size. the address space is infinite (not only that defined by 32 bits used in most computers today).
30
By the above way, a TM may be said to be simulatable by a program of a real computer (informally)!
32
33
34
A computer of the type described in Theorem 8.17 can be simulated for n steps by a one-tape TM, using at most O(n6) steps for the TM. Conclusion: the TM is as powerful as a real computer seen today!
38