logo

Question detail

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?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

A model of computation

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?.

  1. A.110
  2. B.111
  3. C.011
  4. D.The tape is unchanged as 11 followed by a blank

Model answer

What a good answer should say

  • 111

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.