Nepedia
Back to Discover
Advanced Reader
🔢

Cellular automaton

math Maturity 11-13 Next article →

A cellular automaton, often abbreviated as CA, is a discrete model of computation. It is used to study complex systems in fields like physics, theoretical biology, and microstructure modeling. These systems are also known by many names, including cellular spaces, tessellation automata, and iterative arrays. At its core, a cellular automaton consists of a regular grid of cells. Each cell exists in one of a finite number of states, such as being "on" or "off." This grid can exist in any finite number of dimensions.

Gospers glider gun
Gospers glider gun

The mechanism of a cellular automaton relies on a specific process of updating states. First, an initial state is chosen at time t = 0 by assigning a state to every cell. This starting arrangement is called a configuration. To advance to the next generation, or time t + 1, a fixed rule is applied to the entire grid simultaneously. This rule is usually a mathematical function. It determines the new state of a cell based on its current state and the states of its neighbors. The neighborhood is a set of nearby cells defined relative to the cell being updated.

One-d-cellular-automate-rule-30
One-d-cellular-automate-rule-30

There are different ways to define these neighborhoods. The von Neumann neighborhood, named after a founding theorist, includes only the four cells that are orthogonally adjacent. The Moore neighborhood is larger, including the four orthogonal cells plus the four diagonally adjacent cells. For a cell with a Moore neighborhood, there are 512 possible patterns of neighbors. The total number of possible automata can be calculated using the formula k^s, where k is the number of possible states and s is the number of neighboring cells, including the cell itself.

CA rule30s
CA rule30s

History shows that these ideas emerged from a desire to model natural growth and complexity. In the 1940s, Stanislaw Ulam and John von Neumann worked together at Los Alamos National Laboratory. Ulam used a lattice network to model how crystals grow. Von Neumann was interested in self-replicating systems, specifically the idea of a robot building another robot. He eventually developed a tessellation model, known as the von Neumann universal constructor. This design used a 200,000 cell configuration to prove that a pattern could make endless copies of itself.

Vonneumann-john r
Vonneumann-john r

Stephen Wolfram later categorized cellular automata into four distinct classes based on their behavior. Class 1 consists of automata where patterns stabilize into homogeneity. Class 2 involves patterns that evolve into stable or oscillating structures. Class 3 contains automata where patterns evolve in a seemingly chaotic fashion. Class 4 is the most complex, where patterns become extremely intricate and may last a long time. These Class 4 automata are thought to be computationally universal, meaning they can simulate a Turing machine.

Sample run of Rule 110 elementary cellular automaton, starting from single cell
Sample run of Rule 110 elementary cellular automaton, starting from single cell

In the 1970s, interest in the subject expanded beyond academia due to Conway's Game of Life. This is a two-dimensional cellular automaton with simple rules for survival and reproduction. A live cell dies if it has fewer than two neighbors or more than three neighbors. A dead cell becomes alive if it has exactly three neighbors. This model demonstrated how simple local rules could create complex global behaviors.

Oscillator
Oscillator

To simulate these systems on a computer, researchers often use a finite grid. This creates a problem with the cells on the edges. One solution is to use periodic boundary conditions, which creates a toroidal arrangement. This shape is like a doughnut, where a cell moving off the top reappears at the bottom.

Torus
Torus

This method allows the finite grid to behave like an infinite plane. By using modular arithmetic, scientists can effectively simulate vast, complex universes through these small, discrete units.

596 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (9)
File:Gospers glider gun.gif
Gospers glider gun.gif
File:Torus.png
Torus.png
File:Vonneumann-john r.jpg
Vonneumann-john r.jpg
File:Oscillator.gif
Oscillator.gif
File:One-d-cellular-automate-rule-30.gif
One-d-cellular-automate-rule-30.gif
File:CA rule30s.png
CA rule30s.png
File:Sample run of Rule 110 elementary cellular automaton, starting from single cell.png
Sample run of Rule 110 elementary...
File:Textile cone.JPG
Textile cone.JPG
File:Gas velocity.gif
Gas velocity.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.