Previous LECTURES Next

Example

 

 

Suppose we have TM defined by

a.    (1, 1, R, 1)

b.    (1, B, L, 2)

c.    (2, 1, B, 2)

Construct D for this machine table:

a.    Q1tx Ù S1tx ® Q1t'x' Ù (S0ty ® S0t'y) Ù (S1ty ® S1t'y)

b.    Q1tx' Ù S0tx' ® Q2t'x Ù (S0ty ® S0t'y) Ù (S1ty ® S1t'y)

c.    Q2tx Ù S1tx ® Q2t'x Ù S0t'x Ù (y¹x ® ((S0ty ® S0t'y) Ù (S1ty ® S1t'y)))

Depending on n include a sentence describing time 0:

n = 0:    Q1ee Ù "yS0ey

n = 1:    Q1ee Ù S1ee Ù "y(y¹e ® S0ey)

n = 2:    Q1ee Ù S1ee Ù S1ee' Ù "y(y¹e Ù y¹e' ® S0ey)

...

[Succ], [Diff] are always the same.

For H:

The missing instruction is

(2, B, ...)

H = $tx(Q2xt Ù S0tx)

Note: in case n = 0 TM halts at t = 1 (e') because it is in q2 scanning B.