HOME

TheInfoList



OR:

Wolfram code is a widely used numbering system for one-dimensional
cellular automaton A cellular automaton (pl. cellular automata, abbrev. CA) is a discrete model of computation studied in automata theory. Cellular automata are also called cellular spaces, tessellation automata, homogeneous structures, cellular structures, tessel ...
rules, introduced by
Stephen Wolfram Stephen Wolfram (; born 29 August 1959) is a British-American computer scientist, physicist, and businessman. He is known for his work in computer science, mathematics, and theoretical physics. In 2012, he was named a fellow of the American Ma ...
in a 1983 paper and popularized in his book ''
A New Kind of Science ''A New Kind of Science'' is a book by Stephen Wolfram, published by his company Wolfram Research under the imprint Wolfram Media in 2002. It contains an empirical and systematic study of computational systems such as cellular automata. Wolfram c ...
''. The code is based on the observation that a table specifying the new state of each cell in the automaton, as a function of the states in its neighborhood, may be interpreted as a ''k''-digit number in the ''S''-ary positional number system, where ''S'' is the number of states that each cell in the automaton may have, ''k'' = S2''n'' + 1 is the number of neighborhood configurations, and ''n'' is the radius of the neighborhood. Thus, the Wolfram code for a particular rule is a number in the range from 0 to ''S''''S'' − 1, converted from ''S''-ary to
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral ...
notation. It may be calculated as follows: # List all the ''S''2''n'' + 1 possible state configurations of the neighbourhood of a given cell. # Interpreting each configuration as a number as described above, sort them in descending numerical order. # For each configuration, list the state which the given cell will have, according to this rule, on the next iteration. # Interpret the resulting list of states again as an ''S''-ary number, and convert this number to decimal. The resulting decimal number is the Wolfram code. The Wolfram code does not specify the size (nor shape) of the neighbourhood, nor the number of states — these are assumed to be known from context. When used on their own without such context, the codes are often assumed to refer to the class of elementary cellular automata, two-state one-dimensional cellular automata with a (contiguous) three-cell neighbourhood, which Wolfram extensively investigates in his book. Notable rules in this class include
rule 30 Rule 30 is an elementary cellular automaton introduced by Stephen Wolfram in 1983. Using Wolfram's classification scheme, Rule 30 is a Class III rule, displaying aperiodic, chaotic behaviour. This rule is of particular interest because it pr ...
,
rule 110 The Rule 110 cellular automaton (often called simply Rule 110) is an elementary cellular automaton with interesting behavior on the boundary between stability and chaos. In this respect, it is similar to Conway's Game of Life. Like Life, Rule 1 ...
, and
rule 184 Rule 184 is a one-dimensional binary cellular automaton rule, notable for solving the majority problem as well as for its ability to simultaneously describe several, seemingly quite different, particle systems: * Rule 184 can be used as a simpl ...
.
Rule 90 In the mathematics, mathematical study of cellular automaton, cellular automata, Rule 90 is an elementary cellular automaton based on the exclusive or function. It consists of a one-dimensional array of cells, each of which can hold either a 0 or ...
is also interesting because it creates
Pascal's triangle In mathematics, Pascal's triangle is a triangular array of the binomial coefficients that arises in probability theory, combinatorics, and algebra. In much of the Western world, it is named after the French mathematician Blaise Pascal, although ot ...
modulo 2. A code of this type suffixed by an R, such as "Rule 37R", indicates a
second-order cellular automaton A second-order cellular automaton is a type of reversible cellular automaton (CA) invented by Edward Fredkin. Reprinted in . where the state of a cell at time depends not only on its neighborhood at time , but also on its state at time .. Gen ...
with the same neighborhood structure. While in a strict sense every Wolfram code in the valid range defines a different rule, some of these rules are
isomorphic In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them. The word is ...
and usually considered equivalent. For example, rule 110 above is isomorphic with the rules 124, 137 and 193, which can be obtained from the original by left-right reflection and by renumbering the states. By convention, each such isomorphism class is represented by the rule with the lowest code number in it. A disadvantage of the Wolfram notation, and the use of decimal notation in particular, is that it makes such isomorphisms harder to see than some alternative notations. Despite this, it has become the
de facto standard A ''de facto'' standard is a custom or convention that has achieved a dominant position by public acceptance or market forces (for example, by early entrance to the market). is a Latin phrase (literally " in fact"), here meaning "in practice b ...
way of referring to one-dimensional cellular automata.


Generalized cellular automata

The number of possible rules, ''R'', for a generalized cellular automaton in which each cell may assume one of ''S'' states as determined by a neighborhood size of ''n'', in a ''D''-dimensional space is given by: ''R=SS(2n+1)D The most common example has ''S = 2'', ''n = 1'' and ''D = 1'', giving ''R = 256''. The number of possible rules has an extreme dependence on the dimensionality of the system. For example, increasing the number of dimensions (''D'') from 1 to 2 increases the number of possible rules from 256 to ''2512'' (which is ''~1.341×10154'').


References

{{reflist Cellular automata