Non-Uniform Cellular Automata
Non-Uniform Cellular Automata
A.H. Dediu, A.M. Ionescu, and C. Martı́n-Vide (Eds.): LATA 2009, LNCS 5457, pp. 302–313, 2009.
c Springer-Verlag Berlin Heidelberg 2009
Non-uniform Cellular Automata 303
Reliability. CA are more and more used to perform (fast parallel) computations
(see for example [2]). Each cell of the CA is implemented by a simple electronic
device (FPGAs for example). Then, how reliable are computations w.r.t. failure
of some of these devices? (Here failure is interpreted as a device which behaves
differently from its “default” way).
Finally, remark that the study of these generalizations has an interest in its
own since the new model coincides with the set of continuous functions in Cantor
topology.
This rule describes the global evolution of the CA from the generic configuration
x ∈ AZ at time-step t ∈ N to the configuration F (x) at the next time-step t + 1.
The configuration set AZ is equipped with the distance d(x, y) = 2−n where
n = min{i ≥ 0 : xi = yi or x−i = y−i }. With respect to the topology induced by
d, the configuration set is a Cantor space and F is continuous. Hence, (AZ , F )
is a discrete (time) dynamical system.
The meaning of (1) is that the same local rule f is applied to each site of
the CA. Relaxing this last constraint gives us the definition of a ν-CA. More
formally one can give the following.
Definition 1 (Non-Uniform Cellular Automaton (ν-CA)). A non-uniform
Cellular Automaton (ν-CA) is a structure A, {hi , ri }i∈Z defined by a family of
local rules hi : A2ri +1 → A of radius ri all based on the same set of states A.
Similarly to CA, one can define the global rule of a ν-CA as the map H : AZ → AZ
given by the law
∀x ∈ AZ , ∀i ∈ Z, H(x)i = hi (xi−ri , . . . , xi+ri ) .
From now on, we identify a ν-CA (resp., CA) with the discrete dynamical system
induced by itself or even with its global rule H (resp., F ).
It is well known that the Hedlund’s Theorem [17] characterizes CA as the
class of continuous functions commuting with the shift map σ : AZ → AZ , where
∀x ∈ AZ , ∀i ∈ Z, σ(x)i = xi+1 . It is possible to give a characterization also of
the class of ν-CA since it is straightforward to prove the following.
Proposition 1. A function H : AZ → AZ is the global map of a ν-CA iff it is
continuous.
The previous proposition gives the important information that the pair (AZ , H)
is a discrete dynamical system, but in many practical cases this setting is by far
too general to be useful. Therefore, we are going to focus our attention only over
two special subclasses of ν-CA.
Definition 2 (dν-CA). A ν-CA H is a dν-CA if there exist two natural k, r
and a rule h : A2r+1 → A such that for all integers i with |i| > k it holds that
hi = h. In this case, we say that H has default rule h.
Definition 3 (rν-CA). A ν-CA H is a rν-CA if there exists an integer r such
that any local rule hi has radius r. In this case, we say that H has radius r.
The first class restricts the number of positions at which non-default rules can
appear, while the second class restricts the number of different rules but not the
number of occurrences nor it imposes the presence of a default rule. Some easy
examples follow.
Example 1. Consider the ν-CA H (1) : AZ → AZ defined as ∀x ∈ AZ , H (1) (x)i = 1
if i = 0; 0 otherwise. Remark that H (1) is a dν-CA which cannot be a CA since
it does not commute with σ. So the class of ν-CA is larger than the original class
of all CA.
Example 2. Consider the ν-CA H (2) : AZ → AZ defined as ∀x ∈ AZ , H (2) (x)i = 1
if i is even; 0 otherwise. Remark that H (2) is a rν-CA but not a dν-CA.
Example 3. Consider the ν-CA H (3) : AZ → AZ defined as ∀x ∈ AZ , H (3) (x)i =
x0 . Remark that H (3) is a ν-CA but not a rν-CA.
Focusing the study on dν-CA and rν-CA is not a great loss in generality since
(at some extent) each ν-CA can be viewed as the limit of a sequence of dν-CA.
Non-uniform Cellular Automata 305
Proof. The inclusions ⊆ easily follow from the definitions. For the strict inclu-
sions refer to Examples 1 to 3.
Finally, the following result shows that every rν-CA is a subsystem of a suitable
CA. Therefore, the study of rν-CA dynamics might reveal new properties for CA
and vice-versa.
Theorem 1. Any rν-CA H : AZ → AZ of radius r is a subsystem of a CA,
i.e., there exist a CA F : B Z → B Z on a suitable alphabet B and a continuous
injection φ : AZ → B Z such that φ ◦ H = F ◦ φ.
3 CA vs. ν-CA
holds is called period of x. A ν-CA is surjective (resp. injective) if its global rule
is surjective (resp. injective).
It is well known that in the case of CA the collection of all ultimately periodic
configurations is dense in the configurations space AZ . This property is not true
in the general case of ν-CA. We will show this result making reference to the
following interesting example of ν-CA.
Example 4. Let A = {0, 1} and define the following dν-CA H (4) : AZ → AZ as
xi if i = 0
∀x ∈ AZ , ∀i ∈ Z, H (4) (x)i =
xi−1 otherwise .
The following proposition proves that H (4) is not surjective, despite it is based
on two local rules each of which generates a surjective CA (namely, the identity
CA and the shift CA). Moreover, unlike the CA case (see [17]), H (4) has no
configuration with an infinite number of pre-images although it is not surjective.
Proposition 5. The dν-CA H (4) is not surjective and any configuration has
either 0 or 2 pre-images.
Proof. Since ∀x ∈ AZ , H (4) (x)0 = H (4) (x)1 , configurations in the set B = {x ∈
AZ : x0 = x1 } have no pre-image. Then any x ∈ AZ \ B has 2 pre-images y and
z such that ∀i ∈/ {−1, 0}, yi = zi = xi+1 , y0 = z0 = x0 , y−1 = 0; z−1 = 1.
In order to explore some other no-go results, we introduce an other example.
Example 5. Let A = {0, 1} and define a ν-CA H (5) : AZ → AZ by
Z 0 if i = 0
∀x ∈ A , ∀i ∈ Z, H (x)i =
(5)
xi−1 ⊕ xi+1 otherwise ,
Recall that for CA, the compactness of AZ and the uniformity of the local rule
allow one to prove that injective CA are surjective. The following result shows
that this does not hold in the case of ν-CA.
Proposition 8. The ν-CA H (6) is injective but not surjective.
Proof. Let H = H (6) . Concerning non-surjectivity, just remark that only con-
figurations x such that x−1 = x0 = x1 have a pre-image. Let x, y ∈ AZ with
H(x) = H(y). Then, we have ∀i > 0, xi−1 = yi−1 and ∀i < 0, xi+1 = yi+1 . So
x = y and H is injective.
4 Surjectivity
In the context of (1D) CA, the notion of De Bruijn graph is very handy to find
fast decision algorithms for surjectivity, injectivity and openness. Here, we extend
308 G. Cattaneo et al.
this notion to work with dν-CA and find decision algorithm for surjectivity. We
stress that surjectivity is undecidable for two (or higher) dimensional dν-CA,
since surjectivity is undecidable for 2D CA [20].
Definition 4. Consider a dν-CA H of radius r and let f be its default rule. Let
k ∈ N be the largest integer such that hk = f or h−k = f . The De Bruijn graph of
H is the pair (V, E) where V = A2r ×{−k −1, . . . , k +1} and E is the set of pairs
((a, i), (b, j)) with label in A × {0, 1} and such that ∀i ∈ {0, . . . , 2r − 1}, ai = bi+1
and one of the following condition is verified
a) i = j = −k − 1; in this case the label is (f (a0 b), 0)
b) i + 1 = j; in this case the label is (hk (a0 b), 0)
c) i = j = k + 1; in this case the label is (f (a0 b), 1)
f q (s(i) t(i) u(i) v (i) w(i) )[pr,(p+1)r) = (t(i+q) u(i+q) v (i+q) )[pr,(p+1)r) = u(i+q) . Sum-
marizing, for all i ∈ N, u(i) is determined by the word x[0,(2q+2p+1)r) which
is then strongly r-blocking. Since x had been chosen arbitrarily, we have the
thesis.
Theorem 3. Let F be a CA with local rule f admitting a strongly r-blocking
word u. Let H be a rν-CA of radius r. If H is |u|-compatible with f then H is
almost equicontinuous.
Proof. Let p and n be the offset and the length of u, respectively. For any k ∈ N,
consider the set Tu,k of configurations x ∈ AZ having the following property
P: there exist l > k and m < −k such that x[l,l+n) = x[m,m+n) = u and
∀i ∈ [l, l + n) ∪ [m, m + n) hi = f . Remark that Tu,k is open,
being a union of
cylinders. Clearly, each Tu,k is dense, thus the set Tu = k≥n Tu,k is residual.
We claim that any configuration in Tu is an equicontinuity point. Indeed, choose
arbitrarily x ∈ Tu . Set = 2−k , where k ∈ N is such that x ∈ Tu,k . Then, there
exist k1 > k and k2 < −k − n satisfying P. Fix δ = min{2−(k1 +n) , 2−k2 } and
let y ∈ AZ be such that d(x, y) < δ. Then y[k2 ,k1 +|u|) = x[k2 ,k1 +|u|) . Since u is r-
blocking, ∀t ∈ N, H t (x) and H t (y) are equal inside the intervals [k1 +p, k1 +p+r]
and [k2 + p, k2 + p + r], then d(H t (x), H t (y)) < .
In a similar manner one can prove the following.
Theorem 4. Let F be an equicontinuous CA of local rule f . Let k ∈ N be as in
Proposition 9. Any rν-CA k-compatible with f is equicontinuous.
Remark that positive and negative cells do not interact each other under the
action of H (8) . Therefore, in order to study the behavior of H (8) , it is sufficient
to consider the action of H (8) on AN .
Lemma 1. For any u ∈ A∗ , ∃n0 ∈ N such that ∀n > n0 , (H (8) )n (u0∞ )1 = 1.
Lemma 2. ∀u ∈ A∗ , ∀n0 ≥ 0, ∃n > n0 , (H (8) )n (u2∞ )1 = 2.
Proposition 11. The dν-CA H (8) is sensitive.
Proof. Let H = H (8) and F be the set of all a-finite configurations for a ∈ {0, 2}.
By a theorem of Knudesen [23], we can prove the statement w.r.t. F . Then, for
any u ∈ A∗ . Build x = u0∞ and y = u2∞ . By Lemma 1 and 2, there exists n
such that 1 = H n (x)1 = H n (y)1 = 2. And hence H is sensitive with sensitivity
constant = 1/2.
The following example shows that default rules individually defining almost
equicontinuous CA can also constitute ν-CA that have a completely different
behavior from the one in Example 8.
Example 9. Let A = {0, 1, 2} and define the local rule f : A3 → A as: ∀x, y, z ∈
A, f (x, y, z) = 2 if x = 2 or y = 2 or z = 2, z otherwise. The CA F of local
rule f is almost equicontinuous since 2 is a blocking word. The restriction of F
to {0, 1}Z gives the shift map which is sensitive. Thus F is not equicontinuous.
Define now the following dν-CA H (9) :
2 if i = 0
∀x ∈ AZ , ∀i ∈ Z, H (9) (x)i =
f (xi−1 , xi , xi+1 ) otherwise .
The requirements of the previous theorem are very strong. Indeed, there exist
ν-CA which are topologically conjugated to a full shift but that are not permu-
tive. As an example, consider the ν-CA H defined as follows
xi−1 if i ≤ 0
∀x ∈ AZ , ∀i ∈ Z, H(x)i =
xi+1 otherwise .
6 Conclusions
In this paper we started exploring the dynamical behavior of ν-CA. Many specific
properties for CA are no longer true for ν-CA. However, under certain conditions,
some stability forms turned out to be quite robust when altering a CA to obtain a
ν-CA. Despite of the many no-go results proved in this paper, we strongly believe
that ν-CA can be useful for many practical applications and hence deserve further
studies.
References
1. Farina, F., Dennunzio, A.: A predator-prey ca with parasitic interactions and en-
vironmentals effects. Fundamenta Informaticae 83, 337–353 (2008)
2. Chaudhuri, P., Chowdhury, D., Nandi, S., Chattopadhyay, S.: Additive Cellular
Automata Theory and Applications, vol. 1. IEEE Press, Los Alamitos (1997)
3. Chopard, B.: Modelling physical systems by cellular automata. In: Rozenberg, G.,
et al. (eds.) Handbook of Natural Computing: Theory, Experiments, and Applica-
tions. Springer, Heidelberg (to appear, 2009)
4. Formenti, E., Kůrka, P.: Dynamics of cellular automata in non-compact spaces.
In: Meyers, B. (ed.) Mathematical basis of cellular automata. Encyclopedia of
Complexity and System Science. Springer, Heidelberg (2008)
5. Kůrka, P.: Topological dynamics of one-dimensional cellular automata. In: Meyers,
B. (ed.) Mathematical basis of cellular automata. Encyclopedia of Complexity and
System Science. Springer, Heidelberg (2008)
6. Cervelle, J., Dennunzio, A., Formenti, E.: Chaotic behavior of cellular automata.
In: Meyers, B. (ed.) Mathematical basis of cellular automata. Encyclopedia of
Complexity and System Science. Springer, Heidelberg (2008)
7. Kari, J.: Tiling problem and undecidability in cellular automata. In: Meyers, B.
(ed.) Mathematical basis of cellular automata. Encyclopedia of Complexity and
System Science. Springer, Heidelberg (2008)
8. Di Lena, P., Margara, L.: Undecidable properties of limit set dynamics of cellu-
lar automata. In: 26th Symposium on Theoretical Aspects of Computer Science
(STACS 2009). LNCS. Springer, Heidelberg (to appear, 2009)
Non-uniform Cellular Automata 313