Skip to content
Tape‑n‑Trace
PracticeSearch 26 tools

Build a Turing machine

Hopcroft 2e §8.2.2–8.2.4. Type δ the way the book tabulates it — one move per line — and the diagram, the checks and the run follow. Single-tape heads must move; give a multitape machine one symbol per tape and S is allowed.

Start from:

5 states, 1 tape, tape alphabet {0, 1, X, Y, B} — deterministic.

0/X →Y/Y →0/0 →, Y/Y →1/Y ←0/0 ←, Y/Y ←X/X →Y/Y →B/B →q0q1q3q2q4

Run it

0/X →Y/Y →0/0 →, Y/Y →1/Y ←0/0 ←, Y/Y ←X/X →Y/Y →B/B →q0q1q3q2q4

Narration

Enter a string and press Run to step through the machine.

Reading an instantaneous description§8.2.2The state symbol is written immediately to the left of the cell being scanned, so X0q₁11 means the head is on the third cell.