Encounter: Langton’s Ant

Langton’s ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior.

Rules

  • 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

💬 I find the following especially interesting:

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 is known as the Cohen-Kong theorem.

https://en.wikipedia.org/wiki/Langton%27s_ant


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.