Jump to content

User:Iztok.jeras~enwiki/Sandbox

From Wikipedia, the free encyclopedia

Mathematical model

[edit]

Formally, a cellular automaton is represented by the 5-tuple where:

  • is the finite or infinite lattice
  • is a finite set of cell states or values
  • is the finite neighborhood
  • is the local transition function defined by the transition table or the rule
  • description of the cell space boundary, used only if there are boundaries to be defined

The lattice is a finite or infinite discrete regular grid of finite number of dimensions, filled with cells. Each cell is defined by it's discrete position (an integer number) and by it's discrete value (a finite set of integers). Time is also discrete. The future state of a cell at time is a function of the present state of a finite number of cells called the neighborhood at time .

One dimensional first order cellular automata

[edit]

For the sake of readability the next definitions focus on one dimensional first order cellular automata.

Lattice, cell and configuraton

[edit]

The global state is a configuration in . is the finite set of cell states, for formalization purposes the states are enumetated . is the lattice, the infinite cyclic group of integers .

Neighborhood, local transition function and rule

[edit]
The neighborhood and the local transition function

The cells in the neighborhood of the cell have indexes , where are values from the set of neihbours .

A compact representation of the neighborhood value is a single integer defined as a number of digits base .

The local transition function

calculates the value of a single future cell from the neighborhood of the observed cell in the present.

The transition table defines the local transition function by listing the output value for each input value.

 x  -> f(x)
-----------
000 -> 0
001 -> 0
........
111 -> 0

The rule is a compact representation of the local transition function. It is a single integer defined as a number of digits base .

Global transition function

[edit]

The global dynamics of CA are described by the global transition function

translates the current (present) configuration into the next (future) configuration

The global transition function is defined by the local transition function as

Finite lattices and latice boundaries

[edit]
File:Cellular automata lattice boundary.png
The lattice boundaries (left and right)

Infinite cellular automata have no boundary, so it's description is omitted. But there is no way to simulate an infinite system using a finite system. The simulation must focus on a finite part of the infinite lattice.

The state of a finite lattice cellular automata is a configuration in the lattice , where is the set of integer cell indexes

The neighborhood used in the local transition function oversteps the lattice boundary for cells at the left and cells at the right.

There are two common solutions to the overstepping problem:

  1. the lattice is wraped into a circle (thorus for 2D CA)
  2. the values of the overstepping parts of the neighborhood are defined explecitely as the boundary

Cyclic boundaries are frequently used as there is no need to explecetely define the boundary and no external information is introducet into the CA that could otherwise cause interference at the boundaries. is a cyclic group of integers modulo (). The posittion index is calculated as

Explecitely defined boundaries are less common as the simple constant values are useful only for CA where we observe events on a quiescent background. The boundary can be defined as a single set (the left and the right part combined) of cell values of length (there is no boundary cell with index 0)

Example

[edit]

The commonly known 1D binary CA rule 110 is defined as where

  • can be finite or infinite
  • is a set of two values
  • is the neighborhood of size with symmetric radius
  • is the next local transition function
000 -> 0
001 -> 0
010 -> 0
011 -> 0
100 -> 0
101 -> 0
110 -> 0
111 -> 0
  • is the optional boundary usually choosen not to interfere with the quiescent background of all zeros

Generalizations

[edit]

Multidimensional Cellular Automata

[edit]

The definition of nD CA is similar to that of 1D CA, the cell space becomes n-dimensional and k and k0 become vectors of length n.

Higher Order Cellular Automata

[edit]

The CA is of higher order if not only the presen but past configurations too are used to calculate the futer.

Seccond order local transition functions are often used to construct reversible rules.

Calculating Cellular Automata preimages

[edit]

The De Bruijn diagram of a single cell

[edit]

The De bruijn diagram is a digraph, where vertexes represent all possible overlappings and arcs represent neighborhoods that that are mapped into the observd cell by the local transition function.

Overlapping of adjacent neighborhoods

[edit]
The overlapping of adjacent neighborhoods (dark gray)

The neighborhoods of a pair of adjacent cells are overlapping. The size of the overlapping is one cell less than the size of the neighborhood .

De Bruijn vector

[edit]

The De Bruijn vector is a formal representation of vertices of the De Bruijn diagram. It consists of nonnegative integer entries, one for each of the possible neighborhood overlappings. The entries can have different meanings but a common idea is that the value is greater than 0 if it represents the part of a valid preimage.

De Bruijn matrix of a single cell

[edit]
The De Bruijn diagram


The local preimage of a single cell is defined by the inverse of it's local transition function:

The De Bruijn matrix is the transition matrix for the De Bruijn diagram. It is a function of the cell value . The size of the metrix is a square (the size of the De Bruijn vector).


If the left and the right overlapping represent a neighborhood that maps into the expected output value


Cellular automata neighborhood overlapping

The De Bruijn diagrams are used to describe the local preimage of a

The De Bruijn matrix of a string of cells

[edit]

The De Bruijn matrix of a string of cells is the multiplied chain of single cell matrices

Global dynamics of cellular automata

[edit]

Reversibility of Cellular Automata

[edit]

The CA rule is reversible, if the global transition function is bijective (both injective and surjective).

Injectivity of the global transition function

[edit]

is injective, there is at most one preimage for any CA configuration.

So there are no configurations with more than one predecessor.

Surjectivity of the global transition function

[edit]

is injective, there is at least one preimage for any CA configuration.

So there are no configurations without a predecessor (so called Garden of Eden).

Bijectivity of the global transition function

[edit]

is bijective if it is both injective and surjective. For any conficuration there is exactly one predecesor.


References

[edit]

CA deffinition

[edit]
  1. Lyman Hurd, What are Cellular Automata (CA)? [1], CA FAQ
  2. Erica Jen, Enumeration of Preimages in Cellular Automata, Complex Systems 3 (1989) 421-456
  3. Hidenosuke Nishio, Information Dynamics of Cellular Automata II: Completness, Degeneracy and Entropy
  4. Stephen Wolfram, A New Kind of Science

De Bruijn diagram

[edit]
  1. Harold V. McIntosh, Linear Cellular Automata Via de Bruijn Diagrams [2]

Software

[edit]
  1. DDLab by Andy Wuensche