A Visual Notation for Turing Machines

This page shows a notation for Turing machines that uses no text, numbers, or icons to match. Everything is expressed purely through color, direction, and connectivity. It isn’t terribly practical; it’s really more of an art project and a reminder that computation can be expressed in very abstract ways.

The blank tape symbol is represented by the background color, and the other symbol by the foreground color. Each diamond (or triangle) is a state. Only two-symbol machines are shown here, though the notation extends to more symbols by using more colors and more complex state shapes. The initial state contains a circular legend showing how the two halves of each state map to the symbol read: with the blank color on top, the top half of every diamond shows what happens when reading a blank, and the bottom half shows what happens when reading a 1. (If a symbol can never be read in a given state, that half of the diamond is omitted.)

The color of the matching half-diamond specifies the symbol written before the tape head moves. The line leaving the top or bottom of a state leads to the next state, and the direction you travel as you enter that state is the direction the tape head moves: entering moving right moves the head right, and entering moving left moves it left. Lines crossing at right angles pass over one another without connecting, while transitions entering the same side of a state may merge into a shared line. If a line ends at a bar instead of a state, the machine halts.

Note that for Busy Beavers, the orientation of the diagram does not matter, since the tape starts blank and mirroring or rotating the diagram (along with its legend) changes neither the step count nor the number of 1s written. For general machines, orientation matters so that left and right remain unambiguous.

Select one of the famous Turing machines below to see examples of the notation.