Professional Documents
Culture Documents
Easily Calculable For The Complexity Spatiotemporal Patterns
Easily Calculable For The Complexity Spatiotemporal Patterns
[:=1
it from s~sq s„~). The string up to s„will be denoted
by S =s~s2 . . s„~, where the dot indicates that s„ is new-
ly inserted. In order to check whether the rest of S, i.e. , i:= 0
s„can be reconstructed by simple copying (or
:
s„+~
whether one has to insert new digits), Lempel and Ziv
proceeded with the following steps. First, one takes
Q—s, +~ and asks whether this term is contained in the es
k: =k+1
vocabulary (i.e. , in one of the substrings or words) of the
string S so that Q can simply be obtained by copying a Ao
word of S. This is, of course, equivalent to the question
Il I
C: =C+1
of whether Q is contained in the vocabulary U(SQm) of yes
SQ~ where SQrr denotes the string which is composed of Stop
S and Q and n means that the last digit has to be deleted
(i.e. , here SQrr=S). This last formulation of the question
can be generalized to situations where Q also contains two
(i.e. , Q =s„+~s„+q) or more elements. Let us, for exam-
ple, assume that s, + can indeed be copied from the voca-
~
C: = C+1
yes
bulary of s. Then, by using the formulation given above, I:= I+k
we next ask whether Q =s„+~s„+2 is contained in the vo-
cabulary of SQm [i.e. , in U (Ss„+&)] and so on until Q be-
comes so large that it can no longer be obtained by copy- k:=1
ing a word from U(SQrr) and one has to insert a new di-
git. The number c of production steps to create a string, FIG. 1. Diagram for the algorithm to calculate the complexi-
i.e. , the number of newly inserted digits (plus one if the ty c (n) of a string of length n.
last copy step is not followed by inserting a digit), is used
by Lempel and Ziv as a measure of the complexity of a
given string.
Let us give a few examples. If we have a sequence in [0, 1] (i.e., for all irrationals) the string of zeros and
which contains only zeros we could intuitively say that it ones which represents their binary decomposition is not
should have the smallest possible complexity of all strings. periodic. Therefore we expect that almost all strings
Indeed one has only to insert the first zero and can then which correspond to a binary representation of a number
reconstruct the whole string by copying this digit, i.e. , x C[0, 1] should be random and have maximal complexi-
ty. It has indeed been shown by Lempel and Ziv that for
00000. . . ~0-000 almost all xi[0,
1) the complexity c(n) (of the string
and the complexity of this string is c =2.
Similarly one finds for a sequence which is only com-
posed of units 01, i.e. ,
01 01 01 - ~0. 1.01 01. . .
same value:
lim
n~ oo
c(n)=b(n)—n/logan :
which represents the binary decomposition) tends to the
due to the formation of a pattern in the string (if c(n)/b(n) that are independent of n . For n & 10 one
lim„[c (n )/b (n ) ] & h ). can compare strings of different length and it makes sense
These examples show that the complexity measure c (n) to speak of a complexity per digit. Figure 3 shows that
can be calculated easily and its numerical value agrees the computer time I(n) (Ref. 13) needed to analyze a ran-
with our intuitive notion of complexity. In the following dom string of length n increases approximately as n .
we will investigate what can be learned about the behavior This can be understood crudely by the argument that the
of dynamical systems from a computation of c (n). computer program for c (n) has to compare, at most, each
number in the string with the rest of the string in order to
find out which new digit has to be added, i.e. , one has ap-
III. ANALYSIS OF TIME SERIES GENERATED proximately n elementary operations. For a string of
BY SOME ONE-DIMENSIONAL MAPS only zeros or ones [i.e. , for c(n)=2] the computer time
In this section we analyze strings that are generated by needed is of course of order n. This means one has
and by simple one- n &I(n) & n which implies that one can analyze, e.g. , on
a random-number generator
dimensional maps, in order to answer the following ques- a Univac 1091 within one minute a string of length
tions. n=10 .
(1) How fast does the complexity c (n) of a string pro- Next we analyzed the complexity c (n) of strings
duced by a random-number generator converge to the s~sq s, generated by the piecewise linear map
asymptotic value n /logan? This determines the minimum x'+I —rx, modl; x; & [0, 1] (3)
length n;„needed to approach the asymptotic value of
c (n)n /log2n if one analyzes a general string. as a function of the control parameter r which is for this
(2) How does the computer time that is needed to com- example related to the Liapunov exponent A, via X=log2r.
pute c(n) depend on n? This gives an estimate of the Again we used s; = 1 if x; & x [where x =( I/n)g, " I x;
largest length n „which can be analyzed by our method. is the mean value of x;] and s;=0 otherwise. In order to
(3) How is the complexity of a given string related to avoid computational artifacts we added to Eq. (3) a small
the (largest) Liapunov exponent k of the corresponding random-noise term roc„where the g'„were homogeneous-
time series, i.e. , what is the relation between the complexi- ly distributed in 0&/„& 1 and cr =10 . Figure 4 shows
ty measured by c (n) and the conventional measure k of that c(n) increases monotonically with r, i.e. , with the
chaos? Liapunov exponent A, until it saturates at r = 2, i.e. ,
(4) How is the period-doubling route to chaos' mirrored A, =log2. This can be understood as follows. For r =1
in the complexity of the corresponding time series? This Eq. (3) is the identity. All x; are equal and we obtain a
should tell us how well different nonchaotic time patterns string which contains only zeros and therefore has the
are mirrored in c (n). complexity c (n) = 2.
Let us begin with the answers to the first question. Fig- For r =2 the generated string is just the binary repre-
ure 2 shows the normalized complexity c(n)/b(n) of a sentation of the initial point xo which is with probability 1
string s~s2 s, that has been generated by a pseudo- an irrational number such that the string has the com-
random-number-generator. ' (The program produced plexity of a random number lim„c
(n ) = n /log2n. Be-
random numbers x; [0, 1] and we took s; = 0 if x; & 0. 5
E tween r =1 and r =2 c(n) increases with r because one
and s; = 1 otherwise. ) It follows that the limit interpolates between c(n)=2 and c(n)=n/log2n. Since
lim„„[c( n—) /b (n ) ] = 1 is already reached to within 5% n/log2n which is reached at r =2, is already the largest
for n & n o 10 . This means that one needs at least possible value of c(n), the complexity remains constant
strings with a length n ~ 10 in order to obtain results for for r ~2.
10'
7
10
12-
10
C:
10
1. 1—
-+
10
+ +- +-
+.
++ + ++. + +++ +++++ ++.++ +++~
+ +++
'
+
10 I i I
10" I
0 ! ! ! !
-I.O
104
-2.0
10
CD
Cc) ~ I!
~~~ 103
~po
10 CD
CD
II
10 102
10 80 100
3.0 4.0 time t
'Reference 5.
c(n)=n/log2n decreases only to hn/log2n with h &1. graph of the regular language defined by a CA. Because
That means that the only thing which changes during the of the limitation of available computer time Wolfram was
time evolution of the CA is the probability of finding 1 (p only able to calculate the AC for three time steps.
becomes different from 0.5). Otherwise the string remains Grassberger followed this idea and calculated the AC and
completely random, i.e. , there is no order within the l's a similar measure [the set complexity (SC)] for t =1,2, 3.
and 0's. We say that a CA shows pattern selection only if But this method yielded no evidence for his conjecture
c (n) decreases below hlog2n In, i.e., if the string becomes that rule 22 is the most complex among those mentioned
ordered (a mere change of p is not enough). above. Our approach clearly reveals the reason for this.
Figures 6 —8 show the time evolution of c(n =10 ) for The difference between rule 22 and the other rules shows
several legal class-3 CA's. Our observations are summa- up only if more than four time steps are investigated.
rized in Table I. They agree —
with one exception with — A statistical approach to the investigation of pattern
previous results obtained by other methods. ' The excep- formation which differs from our approach is to calculate
tion is the CA which corresponds to rule 22. It displays block entropies, i.e. , probabilities for the occurrence of
two time scales in the development of c(n). In the first substrings of specific length in a string. Block entropies
four time steps c (n) decreases rather rapidly until p takes were used in Ref. 8 to define the so-called effective mea-
the value 0.35, then the decay slows down considerably sure complexity (EMC) denoted C(n). In the case of
(see Fig. 8). This result is new. dynamical systems block entropies can be viewed as ap-
Indeed Grassberger' found that rule 22 shows a totally proximants of the Kolmogorov entropy' and the EMC
different behavior compared to the other legal class-3 can be understood as measuring how fast these approxi-
two-state CA with nearest-neighbor interaction by map- mants converge to the Kolmogorov entropy.
ping the CA onto one-dimensional maps. This result con- Grassberger investigated with the EMC the spatiotem-
cerned the behavior for all times. Wolfram introduced poral behavior of some CA's. For two-state CA's the
an algorithmic complexity (AC) measure to investigate the determination of block entropies for spatial, temporal, or
time evolution of the complexity of a CA. The AC for spatiotemporal patterns of length n requires the computa-
the CA at a specific time is given in terms of the minimal tion of 2" probabilities which correspond to the possible
080 096
0 CD
CD
0.76— 0
II OWO 0 II
092
0 00
CD @~0 CD
0. 72—
CD
CD
II
~00~ ~0
0 &0
~~~0
CD
CD
II 0.88 — ~ @
0 (9 GD
00 0 0'
n.
0
0 ~0~ O~WO e 0 0Was 0 gPO+@0 ~ 0
0 0+
+ + 0 000
q
Oavo 0 0 GEX:C)0 000-00
068-- 0
~O 0
Q~O&& o&+
00
0 0
0.84
I I I I
20 40 80 100 0 100
time t time t
FICs. 7. Same as Fig. 6 with rule 18. FIG. 8. Same as Fig. 6 with rule 22.
36 EASILY CALCULABLE MEASURE FOR THE COMPLEXITY OF. . . 847
XX)
XX
X
XX
X
XXXXX XXXXXX
CD x x x xx xx+x+x ocxx
CD I)PI)
ooo X X XX X
CD oo0 x +3cxx30
X
fl
o 0cc)o~ ~ t=600
0 00 00 o 0
0 o ~**~ 0 0
CD
CD 0 ~ t=&00
08—
."...
CD
CD
u 0 ~ ~ ~ ~ ~ ~ ~ ~ ~
~
~
~ ~
~
, t=200
~ ~
0
L3
0 ~ ~ ~
0.7—
20 60 80 100 20 30 40 50
ti[T]e t distance l
7l
g[x, (l +i) x][— ~
M~ —--- —— t = 8tl tl
1.0
Vl
~~~@V ---- —-------~- t =600
CD
CD
CD
CD
u ~
C: ~~~~~~~~vnNr ~ «4w t ~v0
CD
0
CD 0
CD 0. 6 — o0 t =200
u
cal equilibrium which is probably characterized by a Another complexity measure, the EMC, was proposed
dynamical kink structure with a conserved number of recently by Grassberger. It was discussed briefly in Sec.
kinks. However the time scale differs in the two cases by III in connection with the characterization of CA's. Let
three orders of magnitude. It is important to note that us summarize the most important differences to our mea-
this pattern selection process leaves no trace at all in more sure: EMC works best for "strongly chaotic" systems
conventional measures of spatial pattern selection such as with short correlation length and is less suited for an
the spatial correlation function or its Fourier transforma- analysis of long-range patterns. c(n) is suited best to
tion (see Figs. 11 and 12). This shows that c(n) can be detect order, i.e. , pattern selection, in long chains and
used generally (and not only for CA's) as a convenient does not discriminate very sharply among different
tool to obtain new results about spatial pattern formation. strengths of chaos in short chains.
But it is, of course, of vital importance to encode the vari- It should also be noted that it is easier to compute c (n)
able (which varies in space and time) efficiently, i.e., via the algorithm shown in Fig. 1 than to determine the
without loss of important information into a finite alpha- probabilities which enter C(n). Both methods "suffer"
bet. This problem will be considered in a forthcoming pa- from the problem that before they can be applied the
16
measuring variable, space, and time all have to be discre-
tized appropriately. For the case of c(n) we will discuss
VI. CONCLUSIONS AND DISCUSSION the influence of different partitioning on the results, as
well as an extension of our method to higher dimensional
It has been shown that the complexity measure c (n) al-
patterns in a future publication.
lows an analysis of spatiotemporal patterns which indi-
cates (i) whether a dynamical equilibrium state is reached
and what its complexity is as compared to a random pat-
tern, (ii) how this state is reached in the course of time, ACKNOWLEDGMENTS
and (iii) whether true pattern selection takes place or only
the true source entropy shows up. This analysis concerns We thank Dr. S. Grillenberger for calling our attention
only the pattern in real space and time but not the motion to the work of Lempel and Ziv and the Sonderforschungs-
in phase space, i.e., it tells nothing about the structure of bereich 65 Frankfurt/Darmstadt for financial support.
a possible strange attractor of the system (as do other Furthermore, we thank Professor L. Hirst and K. Pawel-
methods). zik for carefully reading the manuscript.
H. G. Schuster, Deterministic Chaos (Physik Verlag, Weinheim, 9S. Wolfram, Commun. Math. Phys. 96, 15 (1984).
1984). ' A. N. Kolmogorov, Probl. Inf. Transmission 1, 1 (1965).
2T. C. Halsey, M. H. Jensen, L. P. KadanoF, I. Procaccia, and R. J. SolomonoA; Inf. Control. 7, 224 (1964); P. Martin-Lof,
B. I. Shraiman, Phys. Rev. A 33, 1141 (1986). ibid. 9, 602 (1966); G. J. Chaitin, J. Assoc. Comput.
A. Lempel and J. Ziv, IEEE Trans. Inf. Theory IT-22, 75 Machinery 13, 547 (1966).
(1976). The subroutines GOSCBE and Cs05CAE from the NAG library
4M. Metropolis, M. L. Stein, and P. R. Stein, J. Combinatorial of the Numerical Algorithm Group Ltd. , Mark 11, Oxford
Theory (A) 15, 25 (1973). (1984) were used.
~S. Wolfram, Rev. Mod. Phys. 55, 601 (1983); N. H. Packard, ' As the measure I for the computer time we took the number of
and S. Wolfram, J. Stat. Phys. 38, 901 (1985). comparisons of digits needed to obtain c.
F. Kaspar and H. G. Schuster, Phys. Lett. 113A, 451 (1986). '~P. Grassberger, Physica D 10, 52 (1984).
7I. Wailer and R. Kapral, Phys. Rev. A 30, 2047 (1984); K. ~5J. P. Eckmann and D. Ruelle, Rev. Mod. Phys. 57, 617 (1985).
Kaneko, Prog. Theor. Phys. 72, 480 (1984); 74, 1033 (1985). F. Kaspar and H. G. Schuster (unpublished).
~P. Grassberger (unpublished).