Study Atlas › Computer Science › Theory of computation

Turing machines and computability

An abstract machine that defines what can be computed; some problems, such as the halting problem, are undecidable.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Turing (1936) described a tape, a head and a finite table of rules, and proved no algorithm can decide whether any program halts. Church's lambda calculus is equivalent (Church–Turing thesis). Every modern computer is, in principle, a universal Turing machine with finite memory.

Example

No program can check every other program for infinite loops in all cases.

How it works, step by step

  1. Machine reads a symbol on the tape
  2. Looks up state and symbol in its table
  3. Writes, moves left or right, changes state
  4. Halts when it reaches an accept/reject state

Open the interactive page with diagrams →

People behind it

References

  1. A. M. Turing, Proc. Lond. Math. Soc. 1937, s2-42, 230–265.
  2. A. Church, Am. J. Math. 1936, 58, 345–363.

Textbooks

Related topics

Automata and formal languagesP versus NPDynamic programmingBoolean logic and digital circuitsGraph algorithms: BFS, DFS and Dijkstra's shortest pathVon Neumann architectureTrees and binary search treesOperating systems: processes, scheduling and memoryHash tablesConcurrency: deadlock and synchronisation