Encyclopedia > Langton's ant

  Article Content

Langton's ant

Langton's ant is a two-dimensional Turing machine with a very simple set of rules, invented by Chris Langton[?].

All squares on the plane are colored either black or white. We distinguish one cell on the plane, and call it the "ant". The ant has a direction of motion in one of the four cardinal directions, and a starting point and direction on the plane. As the ant moves, it changes the color of the squares it moves over.

The rules are simple, and depend only on the color of the square the ant is on at each move:

 Color of square    New color of square    Motion                                 

 black              white                  turn 90° right, move forward one unit  
 white              black                  turn 90° left, move forward one unit

These simple rules lead to surprisingly complex behavior.

Langton's ant can also be described as a cellular automaton, using a range of colors for the "ant" square to encode the black/white state and the direction of motion of the ant.

Extension to Langton's ant

There is a simple extension to Langton's ant where instead of just two colours, more colours are used. The colours are modified in a cyclic fashion. There is also a simple name giving scheme for such ants: for each of the successive colours, a letter 'L' or 'R' is used to indicate whether a left or right turn should be taken. Langton's ant would get the name 'RL' in this name giving 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 words "seen as a cyclic list" tell the last letter may pair with the first one.)

External links



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Museums in England

... Museum[?] Hertfordshire De Havilland Aircraft Heritage Centre[?], also known as Mosquito Aircraft Museum[?] Verulamium Museum[?] Lancashire Astley Green Colliery ...

 
 
 
This page was created in 39.4 ms