Universality CA
Universality CA
North-Holland, Amsterdam
Stephen WOLFRAM*
The Institute for Advanced Study, Princeton NJ 08540, USA
Cellular automata are discrete dynamical systems with simple construction but complex self-organizing behaviour. Evidence
is presented that all one-dimensional cellular automata fall into four distinct universality classes. Characterizations of the
structures generated in these classes are discussed. Three classes exhibit behaviour analogous to limit points, limit cycles and
chaotic attractors. The fourth class is probably capable of universal computation, so that properties of its infinite time
behaviour are undeeidable.
ogous respectively to the limit points, limit cycles 2. Notation and formalism
and chaotic ("strange")attractors found in con-
tinuous dynamical systems. Cellular automata of a~`) is taken to denote the value of site i in a
the fourth class behave in a more complicated one-dimensional cellular automaton at time step t.
manner, and are conjectured to be capable of Each site value is specified as an integer in the
universal computation, so that their evolution may range 0 through k - 1. The site values evolve by
implement any finite algorithm. iteration of the mapping
The different classes of cellular automaton be-
haviour allow different levels of prediction of the a(t ° = Ffa('- o ,~(,- l)
• I--r ,~i--r+l,''',
a~'- l), ' ' ' , ~ i + r ,~(,- 1)1
J"
(2.1)
outcome of cellular automaton evolution from
particular initial states. In the first class, the out- F is an arbitrary function which specifies the
come of the evolution is determined (with proba- cellular automaton rule.
bility 1), independent of the initial state. In the The parameter r in eq. (2.1) determines the
second class, the value of a particular site at large "range" of the rule: the value of a given site
times is determined by the initial values of sites in depends on the last values of a neighbourhood of
a limited region. In the third class, a particular site at most 2r + 1 sites. The region affected by a given
value depends on the values of an ever-increasing site grows by at most r sites in each direction at
number of initial sites. Random initial values then every time step; propagating features generated in
lead to chaotic behaviour. Nevertheless, given the cellular automaton evolution may therefore travel
necessary set of initial values, it is conjectured that at most r sites per time step. After t time steps, a
the value of a site in a class 3 cellular automaton region of at most 1 + 2rt sites may therefore be
may be determined by a simple algorithm. On the affected by a given initial site value.
other hand, in class 4 cellular automata, a particu- The "elementary" cellular automata considered
lar site value may depend on many initial site in ref. 1 have k = 2 and r = 1, corresponding to
values, and may apparently be determined only by nearest-neighbour interactions.
an algorithm equivalent in complexity to explicit An alternative form of eq. (2.1) is
simulation of the cellular automaton evolution.
j=r
For these cellular automata, no effective prediction //(t) __ f I'- ~ m ,o(1 - I)'] (2.2)
is possible; their behaviour may be determined
only by explicit simulation.
This paper describes some preliminary steps where the aj are integer constants, and the function
towards a general theory of cellular automaton f takes a single integer argument. Rules specified
behaviour. Section 2 below introduces notation according to (2.1) may be reproduced directly by
and formalism for cellular automata. Section 3 taking ~j = kr-L
discusses general qualitative features of cellular The special class of additive cellular automaton
automaton evolution illustrating the four behav- rules considered in ref. 2 correspond to the case in
iour classes mentioned above. Section 4 introduces which f is a linear function of its argument modulo
entropies and dimensions which characterize k. Such rules satisfy a special additive super-
global features of cellular automaton evolution. position principle. This allows the evolution of any
Successive sections consider each of the four initial configuration to be determined by super-
classes of cellular automata in turn. The last position of results obtained with a few basis
section discusses some tentative conclusions. configurations, and makes possible the algebraic
This paper covers a broad area, and includes analysis of ref. 2.
many conjectures and tentative results. It is not "Totalistic" rules defined in ref. 1, and used in
intended as a rigorous mathematical treatment. several examples below, are obtained by taking
S. Wolfram/Universality and complexity in cellular automata 3
F[0, 0 . . . . . 0] = 0 (2.4a) The condition (2.4) implies that both Re and C/are
multiples of k.
and In general, there are a total of "k ~2"÷" possible
cellular automaton rules of the form (2.1) or (2.2).
rio] = o . (2.4b) Of these, k k,+~(kr+I)/2-1 are legal. The rapid growth
of the number of possible rules with r implies that
All rules satisfy this requirement if iterated at most an exponentially small fraction of rules may be
k times, at least up to a relabelling of the k possible obtained by composition of rules with smaller r.
values. A few cellular automaton rules are "reducible"
It is convenient to consider symmetric rules, for in the sense that the evolution of sites with partic-
which ular values, or on a particular grid of positions and
times, are independent of other site values. Such
F[ai . . . . . . . . ai + r] = F[ai + . . . . . , a i - r] " (2.5) cellular automata will usually be excluded from the
classification described below.
Once a cellular automaton with symmetric rules Very little information on the behaviour of a
has evolved to a symmetric state (in which cellular automaton can be deduced directly from
a , + i = a , _ i for some n and all i), it may sub- simple properties of its rule. A few simple results
sequently generate only symmetric states (as- are nevertheless clear.
S. Wolfram/Universality and complexity in cellular automata
First, necessary (but not sufficient) conditions states corresponding to nodes in the trees ulti-
for a rule to yield unbounded growth are mately evolve through the configurations repre-
sented by the roots of the trees to the cycles on
F[ai_ r, a~_~ + 1. . . . . a i - 1, O, 0 . . . . . O] :# O, which the roots lie. Configurations corresponding
to nodes on the periphery of the state transition
F [ O , . . . , O, O, a~+ 1. . . . , ai+~] # O, (2.8) diagram (terminals or leaves of the transient trees)
are never reached in the evolution: they may occur
for some set of ai. If these conditions are not
only as initial states. The fraction o f configurations
fulfilled then regions containing nonzero sites sur-
which may be reached after one time step in
rounded by zero sites can never grow, and the
cellular automaton evolution, and which are there-
cellular automaton must exhibit behaviour o f class
fore not on the periphery of the state transition
1 or 2. For totalistic rules, the condition (2.8)
diagram, gives a simple measure of irreversibility.
becomes
The configurations of infinite cellular automata
are specified by (doubly) infinite sequences of site
f[n]4:0 (2.9)
values. Such sequences are naturally identified as
elements of a Cantor set (e.g. [3]). (They differ from
for some n < r. real numbers through the inequivalence of
Second, totalistic rules for which configurations such as. 111111... and 1.0000... ).
Cellular automaton rules define mappings from
f [ n , ] > f[nz] (2.10) this Cantor set to itself. The mappings are invari-
ant under shifts by virtue of the identical treatment
for all n 1 > n 2 exhibit no "growth inhibition" and of each site in eqs. (2.1) and (2.2). With natural
must therefore similarly be of class 1 or 2. measures of distance in the Cantor set, the map-
One may consider cellular automata both finite pings are also continuous. The typical irre-
and infinite in extent. versibility of cellular automaton evolution is mani-
When finite cellular automata are discussed be- fest in the fact that the mapping is usually not
low, they are taken to consist o f N sites arranged injective, as discussed in section 4.
around a circle (periodic boundary conditions). Eqs. (2.1) and (2.2) may be generalized to several
Such cellular automata have a finite number k N of dimensions. For r---1, there are at least two
possible states. Their evolution may be represented possible symmetric forms of neighbourhood, con-
by finite state transition diagrams (cf. [2]), in which taining 2d + 1 (type I) and 3 a (type II) sites re-
nodes representing each possible configuration are spectively; for larger r other "unit cells" are
joined by directed arcs, with a single arc leading possible.
from a particular node to its successor after evo-
lution for one time step. After a sufficiently long
time (less than kU), any finite cellular automaton
must enter a cycle, in which a sequence of 3. Qualitative characterization of cellular
configurations is visited repeatedly. These cycles automaton behaviour
represent attractors for the cellular automaton
evolution, and correspond to cycles in the state This section discusses some qualitative features
transition graph. At nodes in the cycles may be of cellular automaton evolution, and gives empir-
rooted trees representing transients. The transients ical evidence for the existence of four basic classes
are irreversible in the sense that nodes in the tree of behaviour in cellular automata. Section 4 intro-
have a single successor, but may have several duces some methods for quantitative analysis of
predecessors. In the course of time evolution, all cellular automata. Later sections use these meth-
S. Wolfram/Universality and complexity in cellular automata
ods to suggest fundamental characterizations o f Figs. 4, 5 and 6 show examples o f various sets
the four cellular automaton classes. of totalistic cellular automata. Fig. 4 shows some
Fig. 1 shows the pattern of configurations gener- k = 2 , r = 3 rules, fig. 5 some k = 3, r = 1 rules,
ated by evolution according to each o f the 32 and fig. 6 some k = 5, r = 1 rules. The patterns
possible legal totalistic rules with k = 2 and r --- 2, generated are all seen to be qualitatively similar to
starting from a "disordered" initial configuration those o f fig. 1, and to lie in the same four classes.
(in which each site value is independently chosen as Patterns generated by all possible k = 2, r = 1
0 or 1 with probability ½). Even with such a struc- cellular automata were given in ref. 1, and are
tureless initial state, many o f the rules are seen to found to lie in classes 1, 2 and 3. Totalistic k = 2,
generate patterns with evident structure. While the r = 1 rules are found to give patterns typical of all
patterns obtained with different rules all differ in k = 2, r = 1 rules. In general, totalistic rules appear
detail, they appear to fall into four qualitative to exhibit no special simplifications, and give rise
classes: to behaviour typical of all cellular automaton rules
with given k and r.
I) Evolution leads to a homogeneous state (real- An extensive sampling o f many other cellular
ized for codes 0, 4, 16, 32, 36, 48, 54, 60 and 62). automaton rules supports the general conjecture
2) Evolution leads to a set o f separated simple that the four classes introduced above cover all
stable or periodic structures (codes 8, 24, 40, 56 one-dimensional cellular automata*.
and 58). Table I gives the fractions of various sets of
3) Evolution leads to a chaotic pattern (codes 2, cellular automata in each o f the four classes. With
6, 10, 12, 14, 18, 22, 26, 28, 30, 34, 38, 42, 44, 46 increasing k and r, class 3 becomes overwhelmingly
and 50). the most common. Classes 1 and 2 are decreasingly
4) Evolution leads to complex localized struc- common. Class 4 is comparatively rare, but be-
tures, sometimes long-lived (codes 20 and 52). comes more common for larger k and r.
"Reducible" cellular automata (mentioned in
Some patterns (e.g. code 12) assigned to class 3 section 2) may generate patterns which contain
contain many triangular "clearings" and appear features from several classes. In a typical case, fixed
more regular than others (e.g. code 10). The degree or propagating "membranes" consisting of sites
of regularity is related to the degree o f irre- with a particular value may separate regions con-
versibility of the rules, as discussed in section 7. taining patterns from classes 3 or 4 formed from
Fig. 2 shows patterns generated from several sites with other values.
different initial states according to a few of the This paper concerns one-dimensional cellular
cellular automaton rules o f fig. 1. Patterns ob- automata. Two-dimensional cellular automata
tained with different initial states are seen to differ also appear to exhibit a few distinct classes o f
in their details, but to exhibit the same character- behaviour. Superficial investigations [5] suggest
istic qualitative features. (Expectional initial states
giving rise to different behaviour may exist with Table I
Approximate fractions of lega~ totalistic cellular automaton
low or zero probability.) Fig. 3 shows the
rules in each of the four basic classes
differences between patterns generated by various
cellular automaton rules from initial states k =2 k =2 k =2 k =3
Class r = 1 r = 2 r = 3 r = 1
differing in the value o f a single site.
1 0.50 0.25 0.09 0.12
*This sampling and many other investigations reported in
2 0.25 0.16 0.11 0.19
this paper were performed using the C language computer
3 0.25 0.53 0.73 0.60
program[4]. Requests for copies of this program should be
4 0 0.06 0.06 0.07
directed to the author.
S. Wolfram I Universality and complexity in cellular automata
i..lllli.Lilll • • ,m..;,.. •
. . : ~ b.'~- ~ , ~ , ~ . ":i'~,:."..'•2:.~i~~.II'-"~.2.,~'~
:
4
Fig. la.
S. Wolfram/Universality and complexity in cellular automata
c o d e 3~ (100000} c o d e 34 ( 1 0 0 0 1 0 ) code 3B ( 1 0 o i 0 o )
"M~. . . . .'~ "~'~-~"" '"~ .......... .-"..l
Fig. lb.
8 S. Wolfram/Universality and complexity in cellular automata
i
i
I
Fig. lc.
Fig. la-c. Evolution of all possible legal one-dimensional totalistic cellular automata with k = 2 and r = 2. k gives the number of
possible values for each site, and r gives the range of the cellular automaton rules. A range r = 2 allows the nearest and next-nearest
neighbours of a site to affect its value on the next time step. Time evolution for totalistic cellular automata is defined by eqns. (2.2)
and (2.7). The initial state is taken disordered, each site having values 0 and 1 with independent equal probabilities. Configurations
obtained at successive time steps in the cellular automaton evolution are shown on successive horizontal lines. Black squares represent
sites with value 1; white squares sites with value 0. All the cellular automaton rules illustrated are seen to exhibit one of four qualitative
classes of behaviour.
that these classes m a y in fact be identical to the a u t o m a t o n evolution generates deviations from
four f o u n d in one-dimensional cellular a u t o m a t a . statistical randomness. In a r a n d o m sequence, all
k x possible subsequences ("blocks") o f length X
must occur with equal probabilities. Deviations
characterizations of cellular
4. Quantitative from randomness imply unequal probabilities for
automaton behaviour different subsequences. With probabilities p~X) for
the k x possible sequences o f site values in a length
This section describes quantitative statistical X block, one m a y define a specific "spatial set
measures o f order and chaos in patterns generated entropy"
by cellular a u t o m a t o n evolution. These measures
m a y be used to distinguish the four classes o f
s(x)(X) = ~1 1o g k ( j~f
~ O(p~))) (4.1)
behaviour identified qualitatively above.
Consider first the statistical properties o f
configurations generated at a particular time step where O(p)= 1 for p > 0 and 0 ( 0 ) = 0 , and a
in cellular a u t o m a t o n evolution. A disordered ini- specific "spatial measure e n t r o p y "
tial state, in which each site takes on its k possible
values with equal independent probabilities, is
s~)(X)=--~1 ~~= pj(x) logkp} x,. (4.2)
statistically random. Irreversible cellular
S. Wolfram/Universality and complexity in cellular automata
k~2, r=2, totalistic rule, code 52 (I i(~100) k=2, r':2, totaliMie rule. code 52 ( 1 1 0 1 0 0 )
Fig, 2a.
l0 S. Wolfram/Universality and complexity in cellular automata
all
Fig. 2b.
Fig. 2. Evolution of some cellular automata illustrated in fig. l from several disordered states. The first two initial states shown differ
by a change in the values of two sites, the next by a change in the values of ten sites. The last state is completely different.
S. l¥ol]ram / Universality and complexity in cellular automata l!
code ~4 (OlIO00)
code4~ (101010)
...~,~ ~ .~,
Fig. 3. Differences modulo two between patterns generated by the time evolution of several cellular automata illustrated in fig. 1 with
disordered states differing by a change in the value of a single site.
12 S, Wolfram/Universality and complexity in cellular automata
k:3 r:l. {olnlL~li,: rule. code 33:3 ( O l l O l O I ) ) k 3 r-I. lotahstic rule code 336 (0110110) k=3, r~l, totalistic r u l e . c o d e 3 3 9 ~O110120)
k~;J r~l, totalistic rule. code 342 (0110200) k ~ 3 , r = I, t o t a l i s t i c rule• code 345 (0110~10) k 3, r~ 1, t o t a l i s t i c rule. code 34~ (0110220)
k :L r = 1 totalist~t, ruh', code :IF,I {011 lOOO) k ~. r I, t o t ~ l l i s t i r r u l e code d54 ( O l l l O l O ) Ic 3, r I. t o t a l i , l i e ruN,. e o d r 35? (0111020)
•, - ~ , ~ s - ".NIF,IIF",~IF~"~, ~ "'l,q
k_=3, r=l, totalistic rule, code 3 8 0 (0111100) k=3, r~l, totalistic rule, code 363 (0111110) k=3, r=l, totalistic rule, code 36B (0111120)
• •" ' i"
Fig. 4. Examples of the evolution of typical cellular automata with k = 3 (three possible site values) and r -- 1 (only nearest neighbours
included in time evolution rules). White squares represent value 0, grey squares value l, and black squares value 2. The initial state
is taken disordered, with each site having values 0, 1 and 2 with equal independent probabilities.
S. Wolfram I Universality and complexity in cellular automata 13
I I, , . . i . l i l l e , i,o0~, 101) {01101)IG0) I/ ;7, l" : ] t o l ~ l i s h ( n i l e ~:ode 10~ (OI IDOl I 0 ) I~ k~ [ ' = 3 t o t n h s t i , , nJl~:> <~oclu 1o<1 ((JI 1 0 1 0 0 0 )
l~ ;.~ I : t t o t a l i s t i ~ m i l l , code 100 ( O l l l ) l D l t ) ) k ~ r=;], l ~ l f l l i s l l c iall~ cud~ IO~l (01101 lOOj k ;~ t H, t o t a l i s t i c rule, erode 110 {0111)l [ 10)
Fig. 5. Examples of the evolution of typical k = 2, r = 3 cellular automata from a disordered initial state.
14 S. Wolfram/Universality and complexity in cellular automata
!
!
!
.. ~ > ~ z ~ ' E £ - ,6.-~:,Z~. ,z..
k; 5, r I totnhstlc ~le ~'~d,, I?(J (00(]0~(J0Og1140) k f, at t o r c h . t i t r o l l . . ' ~ d e 175 ( ( J 0 0 0 0 0 0 o 0 1 ~ 0 0 ) k 5 • I It,tnlist~c m,le, t-,,de 169 { 0 0 0 0 0 ( ~ 0 0 0 1 2 1 0 )
k=S. t ~ l , t o t a l i s t i c ~ l e . ~ d e 185 ( 0 0 0 0 0 0 0 0 0 1 2 e 0 ) k 5. ~ I t o t n l J ~ h e ~ l e code tgo (00000fJ0(10t23Q) k=5 r:l totn}istie ~e. ~de 195 ( 0 0 ( I O 0 0 0 O 0 t ~ 4 0 )
. . . .
Fig. 6. Examples of the evolution of typical k = 5, r = 1 cellular automata from a disordered initial state. Darker squares represent
sites with larger values.
S. Wolfram/Universality and complexity in cellular automata 15
In both cases, the superscript (x) indicates that unequal probabilities, su(X)= 1 only for "X-
"spatial" sequences (obtained at a particular time random" sequences [7], in which all k x possible
step) are considered. The "set entropy" (4.1) is sequences of X site values occur with equal proba-
determined directly by the total number N(~)(X) of bilities. In addition to (4.4), the definitions (4.1)
length X blocks generated (with any nonzero and (4.2) imply
probability) in cellular automaton evolution, ac-
cording to 0 <_ S~(x)( X ) <_ s(X)(X). (4.5)
of numbers in the interval [0, 1] of the real line. particular sequence of values. The definition (4.3)
Divide this interval into k b bins of width k-b, and of set entropy then shows that the set dimension is
let the fraction of bins containing numbers in the given by
set be N(b). For large b (small bin width), this
mimber grows as k db. The exponent d is the
Kolmogorov dimension (or "capacity" (cf. [8])) of
d (x) = lim s¢~)(X). (4.15)
X ~ oO
Patterns generated by the evolution of typical one-dimensional cellular automata from disordered initial
states. Succ.ossive time steps in the evolution are shown on successive horizontal lines. Each site takes on k
possible values; value zero is represented by black, 1 by red, 2 by green, 3 by blue, and 4 by yellow. The
cellular automata in the first column have k = 4 while those in the second column have k = 5. In both
cases, the range r of the cellular automaton rule is taken to be one. (I am grateful to R. Pike and J.
Condon of Bell Laboratories for their help in preparing these figures.)
s. Wolfram / Universafity and complexity in cellular automata 19
and a specific temporal measure entropy in anal- As discussed in section 6 below, class 2 cellular
ogy with eq. (4.2) by automata yield periodic structures at large times,
so that the correspondingly temporal entropies
1 kT vanish.
s~f(T) = ---T ~, p~O logkp~O. (4.21) As a generalization of the spatial and temporal
j=l
entropies introduced above, one may consider
entropies associated with space-time "patches" in
These entropies satisfy relations directly analogous
the patterns generated by cellular automaton evo-
to these given in eqs. (4.3) through (4.6) for spatial
lution, as illustrated in fig. 7. With probabilities
entropies. They obey relations analogous to (4.11)
p~,,x) for the k xr possible patches of spatial width
and (4.12) only for cellular automata in "equi-
X and temporal extent T, one may define a set
librium", statistically independent of time. The
entropy
temporal entropies (4.20) and (4.21) may be con-
sidered to have units of (k-ary) bits per unit time. l / kxr )
Sequences of values in particular cellular autom- s(t:X)(T; If')= ~ log/c( j=Z~10(p~ ''x)) , (4.25)
aton configurations typically have little similarity
with the "time series" of values attained by a
and a measure entropy
particular site under cellular automaton evolution.
The spatial and temporal entropies for a cellular 1 kXT
automaton are therefore in general quite different. SI[;X'( T; X ) : --T ~=1 p~t,X) l o g , p~,.x). (4.26)
j=
Notice that the spatial entropy of a cellular autom-
aton configuration may be considered as the tem-
Clearly,
poral entropy of a pure shift mapping applied to
the cellular automaton configuration.
(4.27)
Just as dimensions may be assigned to the set of
spatial configurations generated in cellular autom- (x) 1 s(t;X)tl"
s ~ ( X ) = ~ o~ ~ , X ) .
aton evolution, so also one may assign dimensions
to the set of temporal sequences generated by the
evolution. The temporal set dimension may be If no relation existed between configurations at
defined in analogy with eq. (4.15) by successive time steps then the entropies (4.25) and
(4.26) would be bounded simply by
d~t)= lim s°)(T), (4.22) s(':X)tT" (4.28)
T ~ oo it i ~ , X) <
__ s°;X)(T; X) < X .
For large T (and fixed X), therefore configurations. Eqs. (4.31) and (4.32) show that
S<t;~VT"
/t \ ~ , X) <
-- s ('; X)(T; X) <
-- 2r • (4.30) ~'0,)a(')_< hw) < 2rd~)). (4.35)
for temporally-extended patches is a fundamental (The rule is assumed symmetric; for nonsymmetric
quantity equivalent to the set (or topological) rules, distinct left and right propagation speeds
entropy of the cellular automaton mapping in may be defined.) Clearly,
symbolic dynamics, h may be considered as a
dimension for the mapping. It specifies the asymp- 2+ < r . (4.38)
totic rate at which the number of possible histories
for the cellular automaton increases with time. The
limiting measure entropy 2rT
--,,--2k +T ~
"*"'~"\\11/TIi/I/"
Itxx
' xY
' "x2v~" L
/'YYV"xCV~I
h, = lim s~;X)(T;X) (4.34)
T~ ct)
X~ov
T]X~
When 2+ = 0, finite regions of the cellular au- Mapping and temporal entropies thus vanish for
tomaton must ultimately become isolated, so that cellular automata with zero maximum average
propagation speed. Cellular automata in class 2
dm
(~) = h{,)
"'(v) = 0 (4.39) have this property.
The maximum average propagation speed 2"+
The construction of fig. 8 shows that for any T, specifies a cone outside which G(Ix - x']; t) almost
always vanishes. One may also define a minimum
s{~)(T) _<_2rs{*u~(2rT ) . (4.40) average propagation speed 2"_, such that
G(Ix - x'[; t) > 0 for almost any Ix - x' I < Z .
In the limit T---,oo, the construction implies The Green function G ( I x - x ' l ; t) gives the
probability that a particular site is affected by
d 0~) (< '~"~
_ *~ )
+ - ,4(*)
-(/~) (4.41) changes in a previous configuration. The total
effect of changes may be measured by the "Ham-
The ratio of temporal to spatial entropy is thus ming distance" H(t) between configurations before
bounded by the maximum propagation speed in and after the changes, defined as the total number
the cellular automaton. The relation is consistent of site values which differ between the
with the assignment of units to the spatial and configurations after t time steps. (H(t) is anal-
temporal entropies mentioned above. ogous to Lyapunov exponents for continuous dy-
The corresponding inequalities for mapping en- namical systems.) Changing the values of initial
tropies are: sites in a small region, H(t) may be given as a space
integral of the Green function, and for large t
d ( t )<
--
< "); A(x)
-- ""~ + ~(u)
obeys the inequality
h(,) <
. . . "~,,4(,)0~).
. (4.42)
H(t)/t < 2~-+, (4.44)
The quantity 2+ defined by eq. (4.37) gives the
maximum speed with which any feature in a cellu- to be compared with the result (4.43) obtained
lar automaton may propagate. With many cellular above.
automaton rules, however, almost all "features" The definitions and properties of dimension
propagate much more slowly. To define an appro- given above suggests that the behaviour these
priate maximum average propagation speed, con- quantities determines the degree of "chaotic" be-
sider the effect after many time steps of changes in haviour associated with cellular automaton evo-
the initial state. Let G ( I x - x ' [ ; t) denote the lution. "Spatial chaos" occurs when "a(x)-,
( u ) f vn, and
probability that the value of a site at position x ' is "temporal chaos" when ~' ,4(o ,,, 0. Temporal chaos
0~)F
changed when the value of a site at position x is requires a nonzero maximum average propagation
changed t time steps before. The form of speed for features in cellular automaton patterns,
G(Ix - x'l; t) for various cellular automaton rules and implies that small changes in initial conditions
is suggested by fig. 3. G(Ix - x'l; t) may be consid- lead to effects ever-increasing with time.
ered as a Green function for the cellular automaton
evolution. For large t, G(lx - x']; t) typically van-
ishes outside a "cone" defined by Ix - x'[ = 2-+t. 2"+ 5. Class 1 cellular automata
may then be considered as a maximum average
propagation speed. In analogy with eqs. (4.41) and Class 1 cellular automata evolve after a finite
(4.42), one expects number of time steps from almost all initial states
to a unique homogeneous state, in which all sites
d <. ( . . ,. <. )nJ-+ "a(,)
Lu) • (4.43) have the same value. Such cellular automata may
22 S. Wolfram/Universality and complexity in cellular automata
be considered to evolve to simple "limit points" in Although ~- = 0 for all class 2 cellular automata,
phase space; their evolution completely destroys 2 is often nonzero. Thus exceptional initial state
any information on the initial state. The spatial may exist, from which, for example, unbounded
and temporal dimensions for such attractors are growth may occur. Such initial states apparently
zero. occur with probability zero for ensembles of (spa-
Rules for class 1 cellular automata typically take tially infinite) cellular automata with smooth
the function F of eq. (2.1) to have the same value probability measures.
for almost all of its k (2r+1~ possible sets of argu- The simple structures generated by class 2 cellu-
ments. lar automata are either stable, or are periodic,
Some exceptional configurations in finite class 1 typically with small periods. The class 2 rules with
cellular automata may not evolve to a homoge- codes 8, 24, 40 and 56 illustrated in fig. 1 all
neous state, but may in fact enter non-trivial apparently exhibit only stable perisistent struc-
cycles. The fraction of such exceptional tures. Examples of class 2 cellular automata which
configurations appears to decrease very rapidly yield periodic, rather than stable, persistent struc-
with the size N, suggesting that for infinite class tures include the k = 2, r--- 1 cellular automaton
1 cellular automata the set of exceptional with rule number 108 [1], and the k = 3, r = 1
configurations is always of measure zero in the set totalistic cellular automaton with code 198. The
of all possible configurations. For (legal) class 1 periods of persistent structures generated in the
cellular automata whose usual final state has evolution of class 2 cellular automata are usually
a~ = n, n # 0 (such as code 60 in fig. 1), the null less than k !. However, examples have been found
configuration is exceptional for any size N, and with larger periods. One is the k = 2, r = 3 total-
yields ai = 0. istic cellular automata with code 228, in which a
persistent structure with period 3 is generated.
The finiteness of the periods obtained at large
6. Class 2 cellular automata times in class 2 cellular automata implies thatsuch
systems have '~O~)
,~(') --- ,,(,u)
k = 0, as deduced above from
Class 2 cellular automata serve as "filters" which the vanishing of ~'÷. The evolution of class 2
generate separated simple structures from particu- cellular automata to zero (temporal) dimension
lar (typically short) initial site value sequences*. attractors is analogous to the evolution of some
The density of appropriate sequences in a particu- continuous dynamical systems to limit cycles.
lar initial state therefore determines the statistical The set of persistent structures generated by a
properties of the final state into which it evolves. given class 2 cellular automaton is typically quite
(There is therefore no unique large-time (invariant) simple. For some rules, there are only a finite
probability measure on the set of possible number of persistent structures. For example, for
configurations.) Changes of site values in the initial the code 8 and code 40 rules of fig. 1, only the
state almost always affect final site values only sequence 111 (surrounded by 0 sites) appears to be
within a finite range, typically of order r. The persistent. For code 24, 111 and 1111 are both
maximum average propagation speed Z+ defined in persistent. Other rules yield an infinite sequence of
section 4 thus vanishes for class 2 cellular auto- peristent structures, typically constructed by a
mata. The temporal and mapping (but not spatial) simple process. For example, with code 56 in fig.
dimensions for such automata therefore also 1, any sequence of two or more consecutive 1 sites
vanish. is persistent.
In general, it appears that the set of persistent
*They are thus of direct significance for digital image pro- structures generated by any class 2 cellular autom-
cessing. aton corresponds to the set of words generated
s. Wolfram/Universality and complexity in cellular automata 23
by a regular grammar. A regular grammar [15-18] The set o f such configurations is thus specified by
(or "sofic system" [19]) specifies a regular a regular grammar.
language, whose legal works may be recognized In general, if the value of a given site after t steps
by a finite automaton, represented by a finite state of cellular automaton evolution depends on m
transition graph. A sequence o f symbols (site val- initial site values, then the set o f configurations
ues) specifies a particular traversal o f the state generated by this evolution may be recognized by
transition graph. The traversal begins at a special a finite automaton with at most 2 k" states. The
"start" node; the symbol sequence represents a value of m may increase as 2rt, potentially re-
legal word only if the traversal does not end at quiring an infinite number of states in the recog-
an absorbing "stop" node. Each successive symbol nizing automaton, and preventing the specification
in the sequence causes the automaton to make a of the set of possible configurations by a regular
transition from one state (node) to one of k others, grammar. However, as discussed above, the value
as specified by the state transition graph. At each of m for a class 2 cellular automaton apparently
step, the next state of the automaton depends only remains finite as t---,~. Thus the set o f
on its current state, and the current symbol read, configurations which may persist in such a cellular
but not on its previous history. automaton may be recognized by a finite automa-
The set of configurations (symbol sequences) ton, and are therefore specified by a regular gram-
generated from all possible initial configurations mar. The complexity of this grammar (measured
by one time step o f cellular automaton evolution by the minimum number of states required in the
may always be specified by a regular grammar. T o state transition graph for the recognizing automa-
determine whether a particular configuration a °) ton) may be used to characterize the complexity of
may be generated after one time step of cellular the large time behaviour of the cellular automaton.
automaton evolution, one may attempt to con- Finite class 2 cellular automata usually evolve to
struct an explicit predecessor a ~°) for it. Assume short period cycles containing the same persistent
that a predecessor configuration has been found structures as are found in the infinite case. The
which reproduces all site values up to position i. fraction of exceptional initial states yielding other
Definite values a}°) for all j _< i - r are then deter- structures decreases rapidly to zero as N increases.
mined. Several of the total o f k > sequences of
values a } ° - ) r + l , • • •, ,-i+r+l'(°) may be possible. Each
sequence may be specified by an integer
q = Y.~'=0kJa!°_),+j+t. An integer ~bi between 0 and 7. Class 3 cellular automata
2~2"may then be defined, with the qth binary bit in
~Oi equal to one if sequence q is allowed, and 0 Evolution of infinite class 3 cellular automata
otherwise. Each possible value of ~b may be consid- from almost all possible initial states leads to
ered to correspond to a state in a finite automaton. aperiodic ("chaotic") patterns. After sufficiently
~b = 0 corresponds to a "stop" state, which is many time steps, the statistical properties of these
reached if and only if a °) has no predecessors. patterns are typically the same for almost all initial
Possible values for ~i+r+~,,c°)are then found from ~; states. In particular, the density of nonzero sites
and the value o f Ui+l. _~0) These possible values then typically tends to a fixed nonzero value (often
determine the value of ff~+~. A finite state transi- close to 1/k). In infinite cellular automata,
tion graph, determined by the cellular automaton "equilibrium" values of statistical quantities are
rules, gives the possible transitions ~ ' ~ ' i + l . approached roughly exponentially with time, and
Configurations reached after one time step o f are typically attained to high accuracy after a very
cellular automaton evolution may thus be recog- few time steps. For a few rules (such as the k = 2,
nized by a finite automaton with at most 2 k2rstates. r = 1 rule with rule number 18 [20]), however,
24 S. Wolfram/Universality and complexity in cellular automata
~ ~ ',i ~ i~ .~,
o t c~ •
, ~*~'
~ . ~ ~ ,,.~ .~.~
~" .
c)
} ,.
c)
s. Wolfram/Universality and complexity in cellular automata 25
"defects" consisting of small groups of sites may where d gives the fractai dimension of the pattern.
exist, and may execute approximate random walks, Many class 3 k = 2 rules generate a similar pattern,
until annihilating, usually in pairs. Such processes illustrated by codes 2 and 34 in fig. 9, with
lead to transients which decrease with time only as d = log2 3 ~ 1.59. Some rules yield self-similar pat-
t-~/2. terns with other fractal dimensions (for example,
Fig. 1 showed examples of the patterns gener- code 38 yields d ~ 1.75), but all self-similar pat-
ated by evolution of some typical class 3 cellular terns have d < 2, and lead to an asymptotic density
automata from disordered initial states. The pat- of sites which tends to zero as t d-2.
terns range from highly irregular (as for code 10), Rule such as code 10 are seen to generate
to rather regular (as for code 12). The most irregular patterns by evolution even from a single
obvious regularity is the appearance of large trian- site initial state. The density of nonzero sites in
gular "clearings" in which all sites have the same such patterns is found to tend asymptotically to a
value. These clearings occur when a "fluctuation" nonzero value; in some, but not all, cases the value
in which a sequence of consequence of consecutive is the same as would be obtained by evolution from
sites have the same value, is progressively de- a disordered initial state. The patterns appear to
stroyed by the effects of other sites. The rate at exhibit no large-scale structure.
which "information" from other sites may "flow" Cellular automata contain no intrinsic scale
into the fluctuation, and thus the slope of the beyond the size of neighbourhood which appears
boundaries of the clearing, may range from 1/k to in their rules. A configuration containing a single
r sites per time step. The qualitative regularity of nonzero site is also scale invariant, and any pattern
patterns generated by some class 3 rules arises from obtained by evolution from it with cellular autom-
the high density of long sequences of correlated site aton rules must be scale invariant. The regular
values, and thus of triangular clearings. In general, patterns in fig. 9 achieve this scale invariance by
however, it appears that the density of clearings their self-similarity. The irregular patterns pre-
decreases with their size n roughly as tr -n. Different sumably exhibit correlations only over a finite
cellular automata appear to yield a continuous range, and are therefore effectively uniform and
range of a values. Those with larger a yield more scale invariant at large distances.
regular patterns, while those with smaller tr yield The second and third columns in fig. 11 shows
more irregular patterns. No sharp distinction ap- the evolution of several typical class 3 cellular
pears to exist between class 3 cellular automata automata from initial states with nonzero sites in
yielding regular and irregular patterns. a small region. In some cases (such as code 12), the
The first column in fig. 9 shows patterns ob- regular fractal patterns obtained with single non-
tained by evolution with typical class 3 cellular zero sites are stable under addition of further
automaton rules from initial states containing a nonzero initial sites. In other cases (such as code 2)
single nonzero site. Unbounded growth, leading to they are seen to be unstable. The numbers of rules
an asymptotically infinite number of nonzero sites, yielding stable and unstable fractal patterns are
is evident in all cases. Some rules are seen to give found to be roughly comparable.
highly regular patterns, others lead to irregular Many but not all rules which evolve to regular
patterns. fractal patterns from simple initial states generate
The regular patterns obtained with rules such as more regular patterns in evolution from disordered
code 2 are asymptotically self-similar fractal curves initial states. Similarly, many but not all rules
(cf. [11]). Their form is identical when viewed at which produce stable fractal patterns yield more
different magnifications, down to length scales of regular patterns from disordered initial states. For
order r sites. The total number of nonzero sites in example, code 42 in figs. 1 and 9 generates
such patterns after t time steps approaches t d, stable fractal patterns from simple initial state, but
26 S. Wolfram/Universality and complexity in cellular automata
42
420,~ 2 -
~" I ' 0 1 ~
- - 34
=---
~2
2
0.5 0.5
I I I I I I I Q) I I I I I I I
0 '1 2 5 4 5 6 7 "1 2 3 4- 5 6 7
X T
(o) (b)
Fig. 11. Evolution of(a) spatial and (b) temporal measure entropies s~x)(X) and s~)(T) obtained at equilibrium by evolution of several
class 3 cellular a u t o m a t a illustrated in fig. 1, as a function of the spatial and temporal block lengths X and T. The entropies are
evaluated for the region indicated in figs. 7(a) and 7(b). The limit of s~x)(X) as X ~ oo is the spatial measure dimension of the attractor
for the system; the limit o f s~O(T) as T--*oo is the temporal measure dimension.
S. Wolfram/Universality and complexity in cellular automata 27
entropy with time manifests the irreversible nature previous configuration, any predecessors for the
of the cellular automaton evolution. The decrease block may in principle be found by an exhaustive
is found to be much greater for class 3 cellular search of all k x+2r possible length X+2r se-
automata which generate regular patterns (with quences. The procedure for progressive construc-
many triangular clearings) than for those which tion of predecessors outlined in section 6 provides
yield irregular patterns. The more regular patterns a more efficient procedure [21]. The critical block
require a higher degree of self-organization, with length X¢ is determined by the minimum number of
correspondingly greater irreversibility, and larger nodes in the finite automaton state transition
entropy decrease. graph visited on any path from the "start" to
As discussed in section 4, the dependence of "stop" node. The state transition graph is deter-
(x)
s~u~(X) on X measures spatial correlations in cellu- mined by the set of transition rules ~ i ~ i + ~ .
lar automaton configurations. s~)(X) <x) therefore Starting with length 1 blocks, these transition rules
tends to a constant if X is larger than the range of may be found by considering construction of all
any correlations between site values. In the pres- possible progressively longer blocks, but ignoring
ence of correlations, s~l(X) always decreases with blocks associated with values ~i for which the
X. Available data from simulations provide re- transition rules have already been found. If X¢ is
liable accurate estimates for s~l(X ) only for finite, the "stop" node ~u = 0 is reached in the
0<X<8. Fig. 11 shows the behaviour of the construction of length Xc blocks. Alternatively, the
equilibrium value of s~(X) as a function of X over state transition graph may be found to consist of
this range for several typical class 3 cellular auto- closed cycles, not including ~u = 0. In this case, Xc
mata. For rules which yield irregular patterns the is determined to be infinite. Since the state transi-
equilibrium value ofs~x)(x) typically remains >~ 0.9 tion graph contains at most 2 *2rnodes, the value of
for X < 8. s~)(X) at equilibrium typically decreases X~ may be found after at most this many tests. The
much more rapidly for class 3 cellular automata procedure thus provides a finite algorithm for
which generate mole regular patterns. At least for determining whether all possible arbitrarily long
small X, s~)(X) for such cellular automata typically sequences of site values may be generated by evo-
decreases roughly as X -" with r / ~ 0.1. lution with a particular cellular automaton rule.
The values of the spatial set entropy s~)(X) Table II gives the critical block lengths Xc for the
provide upper bounds on the spatial measure cellular automata illustrated in fig. 1. Class 3
entropy s~x)(x). The distribution of nonzero proba- cellular automata with smaller X¢ tend to generate
bilities p~) for possible length X blocks is typically more regular patterns. Those with larger X¢ pre-
quite broad, yielding an s~)(X) significantly smaller sumably give systematically larger entropies and
than s~)(X). Nevertheless, the general behaviour of their evolution is correspondingly less irreversible.
s~)(X) with X usually roughly follows s~x)(x), but For additive cellular automata (such as code 42
with a slight X delay. in fig. 1 and table II), all possible blocks of any
As discussed in section 4, the set entropy s~)(X) length X may be reached, and have exactly k 2r
attains its maximum value of I if and only if all k x predecessors of length X + 2r. In this case, there-
sequences of length X appear (with nonzero proba- fore, evolution from a disordered initial state gives
bility) in evolution from some initial state. Notice s~x)(x) = 1 for all X (hence X~ = ~ ) . The equality
that if s~x)(x)= 1 after one time step, then of the number of predecessors for each block
s~x)(X) = 1 at any time. In general, s~(X) takes on implies in addition in this case that s~x)(X)= 1, at
value 1 for blocks up to some critical length X¢ least for evolution from disordered initial states.
(perhaps infinite), as defined in eq. (4.13). Hence for additive cellular automata
Since a block of length X is completely deter-
mined by a sequence of length X + 2 r in the d (x) = d~x) = 1. (7. l)
28 S. Wolfram/Universality and complexity in cellular automata
Fig. 12. Examples of the evolution of a class 4 cellular automaton (totalistic code 20 k = 2, r = 2 rule) from several disordered initial
states. Persistent structures are seen to be generated in a few cases. The evolution is truncated after 120 time steps.
librium set entropy s t ° ( T ) = 1 for all T < 8 for which appear form a set described by a regular
which data are available. Note that the result grammar. For the particular case o f the k = 2,
s~°(T) = 1 holds for all T for any additive cellular r = 1 cellular automaton with rule number 18,
automaton rule. One may speculate that class 3 there is some evidence [21] that all possible tempo-
cellular automata which generate apparently irreg- ral sequences which contain no 11 subsequences
ular patterns form a special subclass, characterized may appear, so that N~'~(T)= F r where Fr is the
by temporal dimension d~t)= 1. Tth Fibonacci number (Fr = Fr_ ~+ F r - 2,
For class 3 cellular automata which generate F0 = F~ = 1). This implies that Nto(T ) ~ ck r (ok =
more regular patterns, s~o(T) appears to decrease, (v/-5+ 1 ) / 2~- 1.618) for large T, suggesting a
albeit slowly, with T0 Just as for spatial sequences, temporal set dimension d ~t)= log2 q~ ~ 0.694.
one may consider whether the temporal sequences In general, however, the set of possible temporal
30 S. Wolfram~Universality and complexity in cellular automata
sequences is not expected to be described by a attractor dimension found for the former case in
regular grammar. the infinite size limit.
The nonvanishing value of the average minimum
propagation speed ~'_ for class 3 cellular automata,
suggests that in all cases the value of a particular 8. Class 4 cellular automata
site depends on an ever-increasing number of
initial site values. However, the complexity of the Fig. 12 shows the evolution o f the class 4
dependence is not known. The value of a site after cellular automaton with k = 2, r = 2 and code
t time steps can always be specified by a table with number 20, from several disordered initial
an entry for each o f k 2~+t relevant initial sequences. configurations. In most cases, all sites are seen to
Nevertheless, it is possible that a finite state autom- "die" (attain value zero) after a finite time. How-
aton, specified by a finite state transition graph, ever, in a few cases, stable or periodic structures
could determine the value of sites at any time which persist for an infinite time are formed. In
The behaviour o f finite class 3 cellular automata addition, in some cases, propagating structures are
with additive rules was analysed in some detail in formed. Fig. 13 shows the persistent structures
ref. 2. It was shown there that the maximal cycle generated by this cellular automaton from all
length for additive cellular automata grows on initial configurations whose nonzero sites lie in a
average exponentially with the size N of the cellular region of length 20 (reflected versions of the last
automaton. Most cycles were found to have max- three structures are also found). Table III gives
imal length, and the number of distinct cycles was some characteristics of these structures. An im-
found also to grow on average exponentially with portant feature, shared by other class 4 cellular
N. The lengths of transients leading to cycles was automata, is the presence of propagating struc-
found to grow at most linearly with iV. The tures. By arranging for suitable reflections of these
fraction of states on cycles was found on average propagating structures, final states with any cycle
to tend a finite limit. lengths may be obtained.
For most class 3 cellular automata, the average The behaviour of the cellular automata illus-
cycle length grows quite slowly with N, although in trated in fig. 13, and the structures shown in fig. 14
some cases, the absolute maximum cycle length are strongly reminiscent o f the two-dimensional
appears to grow rapidly. The lengths of transients (essentially totalistic) cellular automaton known as
are typically short for cellular automata which the " G a m e o f Life"* (for references see [1]). The
generate more regular patterns, but often become Game of Life has been shown to have the im-
very long as N increases for cellular automata portant property of computational universality.
which generate more irregular patterns. The frac- Cellular automata may be viewed as computers, in
tions of states on cycles are typically much larger which data represented by initial configurations is
for finite class 3 cellular automata which generate processed by time evolution. Computational uni-
irregular patterns than for those which generate versality (e.g. [15-18]) implies that suitable initir"
more regular patterns. This is presumably a configurations can specify arbitrary algorithm
reflection of the lower irreversibility and larger procedures. The system can thus serve as a gener~
purpose computer, capable of evaluating a_
*Each site in this cellular automaton can take on one of two
possible values; the time evolution rule involvesnine site (type (computable) function. Given a suitable encoding,
II) neighbourhoods. If the values of less than 2 or more than the system may therefore in principle simulate any
3 of the eight neighbours of a particular site are nonzero then other system, and in this sense may be considered
the site takes on value 0 at the next time step; if 2 neighbouring
sites are nonzero the site takes the same value as on the previous capable of arbitrarily complicated behaviour.
time steps; if exactly 3 neighbouring sites are nonzero, the site The p r o o f o f computational universality for the
takes on value 1. Game of Life [22] uses the existence of cellular
S. Wolfram/Universality and complexity in cellular automata 31
Fig. 13. Persistent structures found in the evolution o f the class 4 cellular automaton illustrated in fig. 12 from initial states with
nonzero sites in a region of 20 or less sites. Reflected versions o f the last three structures are also found, Some properties of the
structures are given in table III. These structures are almost sufficient to provide components necessary to demonstrate a universal
computation capability for this cellular automaton.
Table III
Persistent structures arising from initial configurations with length less than 20
sites in the class 4 totalistic cellular automaton with k = 2, r = 2 and code number
20, illustrated in figs. 12, 13 and 14. qb(X) gives the fraction of initial
configurations with nonzero sites in a region less than X sites in length which
generate a particular structure. When an initial configuration yields multiple
structures, each is included in this fraction.
rithm or procedure may be devised capable of Not only does the value of a particular site after
predicting detailed behaviour in a computationally many time steps potentially depend on the values
universal system. Hence, for example, no general of an increasing number of initial site values; in
finite algorithm can predict whether a particular addition, the value cannot in general be determined
initial configuration in a computationally universal by any "short-cut" procedure much simpler than
cellular automaton will evolve to the null explicit simulation of the evolution. The behaviour
configuration after a finite time, or will generate of a class 4 cellular automaton is thus essentially
persistent structures, so that sites with nonzero unpredictable, even given complete initial informa-
values will exist at arbitrarily large times. (This is tion: the behaviour of the system may essentially be
analogous to the insolubility of the halting prob- found only by explicitly running it.
lem for universal Turing machines (e.g. [15-18]).) Only infinite cellular automata may be capable
Thus if the cellular automaton of figs. 12 and 13 is of universal computation; finite cellular automata
indeed computationally universal, no finite algo- involve only a finite number of internal states, and
rithm could predict whether a particular initial may therefore evaluate only a subset of all com-
state would ultimately "die", or whether it would putable functions (the "space-bounded" ones).
ultimately give rise to one of the persistent struc- The computational universality of a system im-
tures of fig. 13. The result could not be determined plies that certain classes of general predictions for
by explicit simulation, since an arbitrarily large its behaviour cannot be made with finite algo-
time might elapse before one of the required states rithms. Specific predictions may nevertheless often
was reached. Another universal computer could be made, just as specific cases of generally non-
also in general determine the result effectively only computable function may often be evaluated.
by simulation, with the same obstruction. Hence, for example, the behaviour of all
If class 4 cellular automata are indeed capable of configurations with nonzero sites in a region of
universal computation, then their evolution in- length 20 or less evolving according to the cellular
volves an element of unpredictability presumably automaton rules illustrated in figs. 12 and 13 has
not present in other classes of cellular automata. been completely determined. Fig. 14 shows the
S. Wolfram/Universality and complexity in cellular automata 33
fraction of initial configurations which evolve to therefore exhibit definite properties in the "infinite
the null state within T time steps, as a function of volume" limit. For class 4 cellular automata, it
T, for various sizes X of the region of nonzero sites. seems likely that fluctuations do not decrease as
For large X and large T, it appears that the fraction larger number of sites are considered, and no
of configurations which generate no persistent simple smooth infinite volume limit exists. Im-
structures (essentially the "halting probability") is portant qualitative effects can arise from special
approximately 0.93. It is noteworthy that the sequences appearing with arbitrarily low proba-
curves in fig. 14 as a function of T appear to bilities in the initial state. Consider for example the
approach a fixed form at large X. One may specu- class 4 cellular automaton illustrated in figs. 12 and
late that some aspects of the form of such curves 13. The evolution of the finite sequences in this
may be universal to all systems capable of universal cellular automaton shown in fig. 12 (and many
computation. thousands of other finite sequences tested) suggests
The sets of persistent structures generated by that the average density of nonzero sites in
class 4 cellular automata typically exhibit no sim- configurations of this cellular automaton should
ple patterns, and do not appear to be specified, for tend to a constant at large times. However, in a
example, by regular grammars. Specification of sufficiently long finite initial sequence, there should
persistent structures by a finite procedure is neces- exist a subsequence from which a "glider gun"
sarily impossible if class 4 cellular automata are structure evolves. This structure would generate an
indeed capable of universal computation. Strong increasing number of nonzero sites at large times,
support of the conjecture that class 4 cellular and its presence would completely change the
automata are capable of universal computation average large time density. As a more extreme
would be provided by a demonstration of the exar~ple, it seems likely that a sufficiently long (but
equivalence of systematic enumeration of all per- finite) initial sequence should evolve to behave as
sistent structures in particular class 4 cellular auto- a self-reproducing "organism", capable of even-
mata to the systematic enumeration of solutions to tually taking over its environment, and leading to
generally insoluble Diophantine equations or word completely different large time behaviour. Very
problems. special, and highly improbable, initial sequences
Although one may determine by explicit con- may thus presumably result in large changes in
struction that specific cellular automata are capa- large time properties for class 4 cellular automata.
ble of universal computation, it is impossible to These sequences must appear in a truly infinite
determine in general whether a particular cellular (typical) initial configuration. Although their den-
automaton is capable of universal computation. sity is perhaps arbitrarily low, the sequences may
This is a consequence of the fact that the structures evolve to structures which come to dominate the
necessary to implement universal computation statistical properties of the system. The possibility
may be arbitrarily complicated. Thus, for example, of such phenomena suggest that no smooth infinite
the smallest propagating structure might involve volume exists for class 4 cellular automata.
an arbitrarily long sequence of site values. Some statistical results may be obtained from
For class 1, 2 and 3 cellular automata, large finite class 4 cellular automata, although the
fluctuations in statistical quantities are typically results are expected to be irrelevant in the truly
found to become progressively smaller as larger infinite volume limit. The evolution of most class
numbers of sites are considered. Such systems 4 cellular automata appears to be highly
irreversible*. This irreversibility is reflected in the
*This feature allows practical simulation o f such cellular small set of persistent structures usually generated
automata to be made more efficient by storing information on
the evolution o f the specific sequences o f sites which occur with as end-products of the evolution. Changes in small
larger probabilities (cf. [23]). regions of the initial state may affect many sites at
34 S. Wolfram/Universality and complexity in cellular automata
large times. There are however very large second class evolves to simple separated structures.
fluctuations in the propagation speed, and no Evolution of the third class of cellular automata
meaningful averages may be obtained. It should be leads to chaotic patterns, with varying degrees of
noted that groups of class 4 cellular automata with structure. The behaviours of these three classes of
different rules often yield qualitatively similar be- cellular automata are analogous to the limit points,
haviour, and similar sets of persistent structures, limit cycles and chaotic ("strange") attractors
suggesting further classification. found in continuous dynamical systems. The
The frequency with which a particular structure fourth class of cellular automata exhibits still more
is generated after an infinite time by the evolution complicated behaviour, and its members are con-
of a universal computer from random (disordered) jectured to be capable of universal computation.
input gives the "algorithmic probability" p~ [24] Even starting from disordered or random initial
for that structure. This algorithmic probability has configurations, cellular automata evolve to gener-
been shown to be invariant (up to constant multi- ate characteristic patterns. Such self-organizing
plicative factors) for a wide class of universal behaviour occurs by virtue of the irreversibility of
computers. In general, one may define an "evo- cellular automaton evolution. Starting from al-
lutionary probability" pE(t) which gives the proba- most any initial state, the evolution leads to attrac-
bility for a structure to evolve after t time steps tors containing a small subset of all possible states.
from a random initial state. Complex structures At least for the first three classes of cellular auto-
formed by cellular automata will typically have mata, the states in these attractors form a Cantor
evolutionary probabilities which are initially small, set, with characteristic fractal and other dimen-
but later grow. As a simple example, the proba- sions. For the first and second classes, the states in
bility for the sequence which yields a period 9 the attractor may be specified as sentences with a
propagating structure in the cellular automaton of regular grammar. For the fourth class, the attrac-
figs. 12 and 13 begins small, but later increases to tors may be arbitrarily complicated, and no simple
a sufficiently large value that such structures are statistical characterizations appear possible.
almost always generated from disordered states of The four classes of cellular automata may be
2000 or more sites. In a much more complicated distinguished by the level of predictability of their
example, one may imagine that the probability for "final" large time behaviour given their initial
a self-reproducing structure begins small, but later state. For the first class, all initial states yield the
increases to a substantial value. Structures whose same final state, and complete prediction is trivial.
evolutionary probability becomes significant only In the second class, each region of the final state
after a time > T may be considered to have depends only on a finite region of the initial state;
"logical depth" [25] T. knowledge of a small region in the initial state thus
suffices to predict the form of a region in the final
state. In the evolution of the third class of cellular
9. Discussion automata, the effects of changes in the initial state
almost always propagate forever at a finite speed.
Cellular automata are simple in construction, A particular region thus depends on a region of the
but are capable of very complex behaviour. This initial state of ever-increasing size. Hence any
paper has suggested that a considerable univer- prediction of the "final" state requires complete
sality exists in this complex behaviour. Evidence knowledge of the initial state. Finally, in the fourth
has been presented that all one-dimensional cellu- class of cellular automata, regions of the final state
lar automata fall into four basic classes. In the first again depend on arbitrarily large regions of the
class, evolution from almost all initial states leads initial state. However, if cellular automata in the
ultimately to a unique homogeneous state. The class are indeed capable of universal computation,
S. Wolfram / Universality and complexity in cellular automata 35
then this dependence may be arbitrarily complex, [9] J.D. Farmer, "Dimension, fractal measures and the proba-
and the behaviour of the system can be found by bilistic structure of chaos", in: Evolution of Order and
Chaos in Physics, Chemistry and Biology, H. Haken, ed.
no procedure significantly simpler than direct sim- (Springer, Berlin, 1982).
ulation. No meaningful prediction is therefore [10] J.D. Farmer, private communication.
possible for such systems. [11] B. Mandelbrot, The Fractal Geometry of nature (Free-
man, San Francisco, 1982).
[12] J.D. Farmer, "Information dimension and the proba-
bilistic structure of chaos", Z. Naturforsch. 37a (1982)
Acknowledgements 1304.
[13] P. Grassberger, to be published.
[14] P. Diaconis, private communication; C. Stein, unpublished
I am grateful to many people for discussions, notes.
including C. Bennett, J. Crutchfield, D. Friedan, P. [15] F.S. Beckman, "Mathematical Foundations of Pro-
Gacz, E. Jen, D. Lind, O. Martin, A. Odlyzko, N. gramming (Addison-Wesley, New York, 1980).
[16] J.E. Hopcroft and J.D. Ullman, Introduction to Automata
Packard, S2. Shenker, W. Thurston, T. Toffoli and Theory, Languages, and Computation (Addison-Wesley,
S. Willson. I am particularly grateful to J. Milnor New York, 1979).
for extensive discussions and suggestions. [17] Z. Manna, Mathematical Theory of Computation
(McGraw-Hill, New York, 1974).
[18] M. Minsky, Computation: Finite and Infinite Machines
(Prentice-Hall, London, 1967).
References [19] B. Weiss, "Subshifts of finite type and sofic systems",
Monat. Math. 17 (1973) 462. E.M. Coven and M.E. Paul,
[1] S. Wolfram, 'Statistical mechanics of cellular automata", "Sofic systems", Israel J. Math. 20 (1975) 165.
Rev. Mod. Phys. 55 (1983) 601. [20] P. Grassberger, "A new mechanism for deterministic
[2] O. Martin, A.M. Odlyzko and S. Wolfram, "Algebraic diffusion", Wuppertal preprint WU B 82-18 (1982).
properties of cellular automata", Bell Laboratories report [21] J. Milnor, unpublished notes.
(January 1983); Comm. Math. Phys., to be published. [22] R.W. Gosper, unpublished; R. Wainwright, "Life is uni-
[3] D. Lind, "Applications ofergodic theory and sofic systems versal!", Proc. Winter Simul. Conf., Washington D.C.,
to cellular automata", University of Washington preprint ACM (1974). E.R. Berlekamp, J.H. Conway and R.K.
(April 1983); Physica 10D (1984) 36 (these proceedings). Guy, Winning Ways, for Your Mathematical Plays, vol. 2
[4] S. Wolfram, "CA: an interactive cellular automaton simu- (Academic Press, New York, 1982), chap. 25.
lator for the Sun Workstation and VAX", presented and [23] R.W. Gosper, "Exploiting regularities in large cellular
demonstrated at the Interdisciplinary Workshop on Cellu- spaces", Physica 10D (1984) 75 (these proceedings).
lar Automata, Los Alamos (March 1983). [24] G. Chaitin, "Algorithmic information theory", IBM J.
[5l T. Toffoli, N. Margolus and G. Vishniac, private demon- Res. & Dev., 21 (1977) 350; "Toward a mathematical
strations. theory of life", in: The Maximum Entropy Formalism,
[6] P. Billingsley, Ergodic Theory and Information (Wiley, R.D. Levine and M. Tribus, ed. (MIT press, Cambridge,
New York, 1965). MA, 1979).
[7] D. Knuth, Seminumerical Algorithms, 2nd. ed. (Addison- [25] C. Bennett, "On the logical "depth" of sequences and their
Wesley, New York, 1981), section 3.5. reducibilities to random sequences", IBM report (April
[8] R.G. Gallager, Information Theory and Reliable Commu- 1982) (to be published in Info. & Control).
nications (Wiley, New York, 1968).