Exam-style question
Try this first
A Turing machine starts in q0 with its head on the first symbol of the tape. The tape initially contains 11 followed by blank squares. Its rules are: δ(q0, 1) = (q0, 1, R) and δ(q0, blank) = (qh, 1, L). What is on the first three tape squares when the machine halts?.
- A.110
- B.111
- C.011
- D.The tape is unchanged as 11 followed by a blank
Answer and explanation
Concise answer
111
Why this is correct
The machine moves right over both existing 1 symbols. When it reaches the blank third square, it writes 1, moves left and enters qh. The first three squares therefore contain 111.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
