← back to Theory of Computation

Turing Machines

Maheshwari & Smid · Ch. 6 · Introduction to Theory of Computation

A Turing machine has an infinite tape, a read/write head, and a finite set of states. It can move left or right, write symbols, and loop forever. This is the standard model of general computation. The wpChurch-Turing thesis says that anything we'd call "computable" can be computed by a Turing machine.

Definition

A Turing machine is a 7-tuple (Q, Σ, Γ, δ, q0, qaccept, qreject):

1 0 1 1 ... ... head (q3)

Simulating a Turing machine

This TM recognizes anbncn: cross off one a, one b, one c per pass. If all are crossed off evenly, accept.

Scheme

The Church-Turing thesis

Every model of computation that has been proposed (lambda calculus, recursive functions, register machines, your laptop) computes exactly the same class of functions as a Turing machine. This is not a theorem but a thesis: it cannot be proved because "computable" has no prior formal definition. It has never been refuted.

Neighbors