Turing Machines
The model, the universal machine, and the halting problem.
Last updated 27 June 2026
The model
A Turing machine is a tuple
an initial state, and accepting states. Despite its austerity, the model captures — by the Church–Turing thesis — everything we mean by effective computation.
Undecidability
The halting problem asks: given a machine
a contradiction. Rice’s theorem generalises: every non-trivial semantic property of programs is undecidable.
An interactive machine
The machine below computes binary increment: state scan walks right to the end of the input, then carry flips trailing 1s to 0s until it can write the carried 1. Try 111 to watch a full carry chain.
| State | Read | Write | Move | Next |
|---|---|---|---|---|
| scan | 0 or 1 | same | R | scan |
| scan | ␣ | ␣ | L | carry |
| carry | 1 | 0 | L | carry |
| carry | 0 or ␣ | 1 | — | halt |
The cost model here (one cell, one step) is what makes statements like those in Asymptotic Notation meaningful.