A Brief Exploration of Cellular Automaton
2019-10-20
The Game of Life is a cellular automaton invented by mathematician John Horton Conway in 1970. While cellular automata can seem rather abstract the reality of what they are is actually quite simple and can perhaps best be understood by example. Take a grid with two dimensions, x and y. A point in the grid is called a cell and has two states, alive/dead. Each cell has 8 adjacent cells which we call neighbours, these constitute a neighbourhood. Given this setup we can now imagine rules for how the grid will evolve with time given an initial condition. This is exactly what Conway did. Do note that the number of dimensions, states, neighbourhood and rules are arbitrary, but let’s keep it simple. Below you can experiment with an interactive Game of Life, click on the grid to spawn a live cell.
To be specific Conway imagined the following rules: (1) Any live cell with fewer than two live neighbours dies, as if by underpopulation. (2) Any live cell with two or three live neighbours lives on to the next generation. (3) Any live cell with more than three live neighbours dies, as if by overpopulation. (4) Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
As a result of applying these rules over time we can see intricate patterns emerging. But other than fascinating patterns, why should you care? Well cellular automata was first discovered by John von Neuman who was working on self-replication and tried to provide a reductionist theory of biological development, a system capable of producing exact copies of itself. He was successful in his endeavor using a two-dimensional system where each cell could take on 29 different states with a rather complicated rule set.
Herein lies the strength of cellular automata, they allow us to model complexity as well as different dynamics which may appear in various scientific fields. Many computer games also use various cellular automata to model particle behaviour. Beyond these use cases however, a lot of CA schemes exhibit some interesting behaviour.
The Game of Life in particular, just like Neumans scheme, is also capable of self-replication via a pattern discovered in 2010 by Andrew J. Wade called “Gemini” which creates a copy of itself while destroying its parent. One replication takes a staggering 34 million generations (moments in time).
But perhaps more surprising is that the game of life can be considered a computational device where an initial condition encodes an input which then produces an output after x generations. As it turns out it is able to compute everything a universal turing machine can, as well as being capable of functioning as a general purpose computer. An actual Turing machine pattern was created by Paul Rendell in 1999-2000.
Many cellular automata including The Game of Life exhibit patterns of undecidability. That is to say that given an initial pattern we can’t predict what will happen at later steps without running the actual computation. This behaviour led Stephen Wolfram to argue for computational irreducibility, meaning that systems which follow simple rules can quickly produce complex patterns which are impossible to predict even if given the initial rules which the system is governed by. Conversely it is also true that some patterns are not reducible to their initial rules. This could potentially have big implications for the reach of science where predictability and reducibility have played a huge role historically. Only time will tell, personally I am optimistic but it may very well be true that we are up against a big wall of irreducibility.
As it turns out, the cellular automata which initially appears to be a somewhat odd curiosity actually contains a surprising amount of practical use cases, as well as a hidden depth of interesting phenomena and complexity worth exploring for their own sake.