An agent-based model that works on a two-dimensional lattice grid, where the state of any cell is related to that of its neighbours. At its simplest, a grid of elementary cellular automata consists of a one-dimensional row of cells, where each cell can be in one of two states, and the rules for the transformation of a cell are based on the current state of the cell and its two closest neighbours. The neighbourhood thus consists of three cells [6, 7, 8].
In this example, the two states are called ‘white’ and ‘black’, and the rules might be that:
The diagram shows four successive generations of cellular automata conforming to these rules: an initial generation consisting of one black cell with all other cells white, and three subsequent generations created by three applications of the rules.
http://www.mjyonline.com/CellularAutomataUses.htm Website with clear and useful explanations on cellular automata and on which the example is based.
http://uncomp.uwe.ac.uk/genaro/Cellular_Automata_Repository/Software.html A variety of cellular automata can be found at this website.