Langton's Ant
A Short Introduction
Ant No, there's no need to look for your insecticide spray. This ant is, as Conway's  Life  or Silverman's  WireWorld  but a cellular automaton. It is even one of the simplest cellular automata. As with Life and WireWorld, an article by Ian Stewart in the July 1994 issue of Scientific American revealed it to the public. But it's origins go way back to the 80's, when Chris Langton of the Santa Fe Institute tried to prove that simple rules applied to a dynamical system can generate behaviour as complex as that shown by living organisms.

Eventually, this small "ant" became the starting point of a new and exciting field of multidisciplinary research, when Chris Langton published in 1989 his article Artificial Life. Alife, or even shorter, AL became quite interesting for evolutionary biology, ecology, biochemistry, computer science, ea.

In his 1989 article, Chris Langton defined ALife as "a synthetic approach to studying Life-as-it-could-be and viewing Life-as-it-is within a larger context". In some ways (and not only through the "artificial"), ALife is related to Artificial Intelligence, in other ways, it is quite different from Artificial Intelligence research. With some generalisation, one could say that ALife models computer programs on nature, while in the field of Artificial Intelligence people often try to model the natural brain as a computer program.

Results in this field are fairly sparse as yet. Current applications of these techniques include adaptive programs that can learn user preferences, computer game characters that evolve better responses, more realistic film animations, web robots that intelligently surf the internet and the study of evolutional processes. Tierra, developed by the ecologist Tom Ray, for instance, is an astonishing simple but very attractive model for the study of evolutional processes as such. With the help of such programs, we can, as it were, cause evolution to happen again.

The Rules and some Variations
Langton's ant lives on an infinite grid, composed of "white" ( light ) cells. In this demonstration the ant's world is limited to 80 by 80 cells (or 64 by 64 if you are viewing these pages on an 800 x 600 screen) with the borders touching one another. In its original format, the ant is represented by a "black" ( Ant 1 ) square. On each iteration, it moves forward one square: With this very simple set of rules, this ant is still puzzling mathematicians. It can indeed create chaos, but also order.

a symmetrical figure drawn by a Langton's ant
a chaotical figure drawn by a Langton's ant
A symmetrical figure
(after about 500 iterations)
A chaos
(after about 5000 iterations)
At the beginning, the ant seems to move rather chaotically. Afterwards, from step 500 to about step 10'000, chaos installs itself. And then, suddenly, the ant starts to create order again by drawing what became known as "highways". Eventually, every possible configuration will lead to some kind of repeating pattern. For instance, two ants, facing each other with a 3 square interval, will quickly start to construct their highways already from approximately the 800th iteration.

an ant highway
two ant highways
A highway
(after about 11'000 iterations)
Two highways
(2 ants after about 1700 iterations)

Of course, as with every cellular automaton, many variations are possible. In this demonstration, three variations are implemented. Two of them are rather simple:

Enjoy artificial life!

Links To More Information
The Ant's World
Number of directions
  Paint   4   8
Number and direction of ants on screen
Click a cell of the grid to switch its colour
Ant 1 Indicator
Ant 2 Indicator
Windrose Ant 2 direction north direction north-east direction east direction south-east direction south direction south-west direction west direction north-west
Ant 3 Indicator
Windrose Ant 3 direction north direction north-east direction east direction south-east direction south direction south-west direction west direction north-west
Ant 4 Indicator
Windrose Ant 4 direction north direction north-east direction east direction south-east direction south direction south-west direction west direction north-west
Reset
Reset
Run
Pause
Pause
Step
Step
Time step
0
OK