Langton's ant explained

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.[1] 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. We arbitrarily identify one square 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:

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,[2] when starting on a completely white grid.

  1. Simplicity. During the first few hundred moves it creates very simple patterns which are often symmetric.
  2. 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.
  3. 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[3]  – this is known as the Cohen-Kong theorem.[4]

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.[5]

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.[6] 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 term "cyclic list" indicates that the last letter may pair with the first one) 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

See main article: Turmite. 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.[7]

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.[8]

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.[9]

References

  1. 10.1016/0167-2789(86)90237-X . Langton . Chris G. . Studying artificial life with cellular automata . 1986 . Physica D: Nonlinear Phenomena . 22 . 120–149 . 2027.42/26022 . 1–3. 1986PhyD...22..120L . free .
  2. Book: Pratchett, Terry . The Science Of Discworld . The Science of Discworld . Stewart . Ian . Cohen . Jack . . 1999 . 978-0091865153.
  3. Bunimovich . Leonid A. . Troubetzkoy . Serge E. . Recurrence properties of Lorentz lattice gas cellular automata . Journal of Statistical Physics . 67 . 1–2 . 289–302 . 1992 . 10.1007/BF01049035. 1992JSP....67..289B . 121346477 .
  4. Stewart . I. . The Ultimate in Anty-Particles . Sci. Am. . 271 . 104–107 . 1994 . 1 . 10.1038/scientificamerican0794-104 . 1994SciAm.271a.104S . 6 May 2013 . https://web.archive.org/web/20160303211426/http://dev.whydomath.org/Reading_Room_Material/ian_stewart/AntyParticles.pdf . 3 March 2016 . dead .
  5. Gajardo . A. . Moreira . A. . Goles . E. . Complexity of Langton's ant . Discrete Applied Mathematics . 117 . 1–3 . 41–50 . 15 March 2002 . 10.1016/S0166-218X(00)00334-6 . nlin/0306022 . 1107883 .
  6. Gale . D. . Propp . J. . Sutherland . S. . Troubetzkoy . S. . Further Travels with My Ant. Mathematical Entertainments Column, Mathematical Intelligencer . 1995 . 17. 48–56 . 10.1007/BF03024370 . math/9501233 . 123800756 .
  7. Web site: Pegg, Jr. . Ed . Turmite . . 15 October 2009 . .
  8. Belgacem . S. . Fatès . N. . Robustness of Multi-agent Models: The Example of Collaboration between Turmites with Synchronous and Asynchronous Updating . Complex Systems . 2012 . 21 . 3 . 165–182 . 10.25088/ComplexSystems.21.3.165.
  9. Web site: Pegg, Jr. . Ed . Math Puzzle . 15 October 2009 . .

External links