ArticleslgStudy

biology

Langton's ant

Langton's ant is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Langton's ant rather than just read about it. In short: Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells.

Langton's ant — main illustration
Langton's ant — illustration

Key takeaways

  • Langton's ant belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Langton's ant to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Langton's ant from memory before moving on to harder problems.

Reference excerpt

Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells. The idea has been generalized in several different ways, such as turmites which add more colors and more states.

Rules

Squares on a plane are colored variously either black or white. One square is arbitrarily identified as the "ant". The ant can travel in any of the four cardinal directions at each step it takes. The "ant" moves according to the rules below:

At a white square, turn 90° clockwise, flip the color of the square, move forward one unit At a black square, turn 90° counter-clockwise, flip the color of the square, move forward one unit Langton's ant can also be described as a cellular automaton, where the grid is colored black or white and the "ant" square has one of eight different colors assigned to encode the combination of black/white state and the current direction of motion of the ant.

Modes of behavior These simple rules lead to complex behavior. Three distinct modes of behavior are apparent, when starting on a completely white grid.

Simplicity. During the first few hundred moves it creates very simple patterns which are often symmetric. Chaos. After a few hundred moves, a large, irregular pattern of black and white squares appears. The ant traces a pseudo-random path until around 10,000 steps. Emergent order. Finally the ant starts building a recurrent "highway" pattern of 104 steps that repeats indefinitely. All finite initial configurations tested eventually converge to the same repetitive pattern, suggesting that the "highway" is an attractor of Langton's ant, but no one has been able to prove that this is true for all such initial configurations. It is only known that the ant's trajectory is always unbounded regardless of the initial configuration – this result was incorrectly attributed and is known as the Cohen-Kong theorem.

Computational properties In 2000, Gajardo et al. showed a construction that calculates any boolean circuit using the trajectory of a single instance of Langton's ant.

Extension to multiple colors Greg Turk and Jim Propp considered a simple extension to Langton's ant where instead of just two colors, more colors are used. The colors are modified in a cyclic fashion. A simple naming scheme is used: for each of the successive colors, a letter "L" or "R" is used to indicate whether a left or right turn should be taken. Langton's ant has the name "RL" in this naming scheme. Some of these extended Langton's ants produce patterns that become symmetric over and over again. One of the simplest examples is the ant "RLLR". One sufficient condition for this to happen is that the ant's name, seen as a cyclic list, consists of consecutive pairs of identical letters "LL" or "RR". The proof involves Truchet tiles.

The hexagonal grid permits up to six different rotations, which are notated here as N (no change), R1 (60° clockwise), R2 (120° clockwise), U (180°), L2 (120° counter-clockwise), L1 (60° counter-clockwise).

Extension to multiple states

A further extension of Langton's ants is to consider multiple states of the Turing machine – as if the ant itself has a color that can change. These ants are called turmites, a contraction of "Turing machine termites". Common behaviours include the production of highways, chaotic growth and spiral growth.

Extension to multiple ants

Multiple Langton's ants can co-exist on the 2D plane, and their interactions give rise to complex, higher-order automata that collectively build a wide variety of organized structures. There are different ways of modelling their interaction and the results of the simulation may strongly depend on the choices made. Multiple turmites can co-exist on the 2D plane as long as there is a rule that defines what happens when they meet. Ed Pegg, Jr. considered ants that can turn for example both left and right, splitting in two and annihilating each other when they meet.

See also Conway's Game of Life – Two-dimensional cellular automaton Langton's loops – Self-reproducing cellular automaton patterns Paterson's worms – Family of cellular automata to model feeding behaviour

References

External links

Weisstein, Eric W. "Langton's ant". MathWorld. Chris Langton demonstrating multiple ants interacting in a "colony" Mathematical Recreations column by Ian Stewart using Langton's ant as a metaphor for a theory of everything. Contains the proof that Langton's ant is unbounded. Golly script for generating rules in the multiple color extension of Langton's ant DataGenetics, Langton's Ant (and Life)

Illustrations

Langton's ant: Langton's ant after 11,000 steps. A red pixel shows the ant's location.
Langton's ant after 11,000 steps. A red pixel shows the ant's location.
Langton's ant: Animation of first 200 steps of Langton's ant
Animation of first 200 steps of Langton's ant
Langton's ant illustration
Langton's ant illustration
Langton's ant illustration

Worked examples

Example 1 — a first encounter with Langton's ant

Start with the simplest possible case. Write down what Langton's ant claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Langton's ant before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Langton's ant ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Langton's ant

In research
Langton's ant appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Langton's ant in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Langton's ant is common in secondary-school and first-year university syllabi. It links to neighbouring topics Artificial life, Cellular automaton rules, Metaphors referring to insects, so understanding it makes those chapters shorter.
In everyday life
Look for Langton's ant outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Langton's ant” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Langton's ant in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Langton's ant means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Langton's ant out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Langton's ant in simple terms?

Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells.

Why does Langton's ant matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Langton's ant?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Langton's ant.

Tags

  • Artificial life
  • Cellular automaton rules
  • Metaphors referring to insects
  • Turing machine

Keep exploring