a simulation of cellular automata on hexagons by cellular automata on rings

4
Theoretical Computer Science 263 (2001) 231–234 www.elsevier.com/locate/tcs A simulation of cellular automata on hexagons by cellular automata on rings Bruno Martin Laboratoire d’Informatique, Signaux et Syst emes de Sophia-Antipolis, Universit e de Nice-Sophia-Antipolis, I3S-CNRS-UPRES-A 6070, B.P. 145, F-06903 Sophia-Antipolis Cedex, France Accepted April 2000 Abstract We consider cellular automata on Cayley graphs and compare their computational power according to their topology. We prove that cellular automata dened over a hexagonal grid can be simulated by cellular automata over a ring. c 2001 Elsevier Science B.V. All rights reserved. Keywords: Cellular automata; Cayley graphs; Simulation 1. Introduction Cellular automata on Cayley graphs have been introduced to prove a generalization of the Moore and Myhill theorem in [3] and serve to the general denition in [2]. This model permits to simplify and generalize some proofs. We extend R oka’s simulations results [7, 9]; we prove that cellular automata dened over a hexagonal grid can be simulated by cellular automata over a ring. We use as intermediate steps, the simulation of a cellular automaton over a hexagonal grid by a cellular automaton over a torus and the simulation of a cellular automaton over a torus by a cellular automaton over a ring. 2. Cellular automata on Cayley graphs Let us recall some denitions. Let be a nitely presented group = G|R with G = {g 0 ;g 1 ;:::;g d1 } the set of generators not containing the identity and R the set of relators [1]. The associated Cayley (di)graph G =(V; E) is the graph whose vertices are the elements of and whose arcs are the pairs (x; g i :x) for x and g i G.A cellular automaton (CA) over a Cayley digraph G =(V; E) is a 4-tuple A =(Q; G; N; ) where Q denotes the nite set of the states, G the Cayley digraph of a nitely presented group 0304-3975/01/$ - see front matter c 2001 Elsevier Science B.V. All rights reserved. PII: S0304-3975(00)00244-9

Upload: bruno-martin

Post on 03-Jul-2016

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: A simulation of cellular automata on hexagons by cellular automata on rings

Theoretical Computer Science 263 (2001) 231–234www.elsevier.com/locate/tcs

A simulation of cellular automata on hexagons bycellular automata on rings

Bruno MartinLaboratoire d’Informatique, Signaux et Syst�emes de Sophia-Antipolis, Universit�e de

Nice-Sophia-Antipolis, I3S-CNRS-UPRES-A 6070, B.P. 145, F-06903 Sophia-Antipolis Cedex, France

Accepted April 2000

Abstract

We consider cellular automata on Cayley graphs and compare their computational poweraccording to their topology. We prove that cellular automata de)ned over a hexagonal grid canbe simulated by cellular automata over a ring. c© 2001 Elsevier Science B.V. All rights reserved.

Keywords: Cellular automata; Cayley graphs; Simulation

1. Introduction

Cellular automata on Cayley graphs have been introduced to prove a generalizationof the Moore and Myhill theorem in [3] and serve to the general de)nition in [2]. Thismodel permits to simplify and generalize some proofs.

We extend R1oka’s simulations results [7, 9]; we prove that cellular automata de)nedover a hexagonal grid can be simulated by cellular automata over a ring. We use asintermediate steps, the simulation of a cellular automaton over a hexagonal grid by acellular automaton over a torus and the simulation of a cellular automaton over a torusby a cellular automaton over a ring.

2. Cellular automata on Cayley graphs

Let us recall some de)nitions. Let � be a )nitely presented group �= 〈G|R〉 withG= {g0; g1; : : : ; gd−1} the set of generators not containing the identity and R the set ofrelators [1]. The associated Cayley (di)graph G= (V; E) is the graph whose vertices arethe elements of � and whose arcs are the pairs (x; gi:x) for x∈� and gi ∈G. A cellularautomaton (CA) over a Cayley digraph G= (V; E) is a 4-tuple A = (Q;G; N; �) whereQ denotes the )nite set of the states, G the Cayley digraph of a )nitely presented group

0304-3975/01/$ - see front matter c© 2001 Elsevier Science B.V. All rights reserved.PII: S0304 -3975(00)00244 -9

Page 2: A simulation of cellular automata on hexagons by cellular automata on rings

232 B. Martin / Theoretical Computer Science 263 (2001) 231–234

�, N the neighborhood such that N = {w1; : : : ; wk} where the wi are words over G and� :Q|N | →Q is the local transition function. We associate a cell of the CA to eachvertex of the digraph. The local transition function � gives a new state to cell i attime t according to the states of its neighbors at time t − 1. We only consider thevon Neumann neighborhood de)ned as the set of vertices at distance one from everycell, also including the cell itself. More formally, the words which de)ne N are all theletters over the alphabet G plus the identity.

R1oka [9] de)nes CAs over di@erent Cayley graphs as hexagons, two- and three-dimensional torus (resp. �r;p;q

H = 〈a; b; c : ab= ba; ac= ca; bc= cb; abc= 1; arc1−q = 1;bp−1c−q = 1〉, �n;m

T = 〈u; v : uv= vu; un = 1; vm = 1〉 and �n;m;kT = 〈a; b; c : ab= ba; ac= ca;

bc= cb; abc= 1; an =1; bm = 1; ck = 1〉). We add to these de)nitions the CAs over ringswhose de)nition is �l

R = 〈w :ww−1 = 1; wl = 1〉.

3. First simulation results

Theorem 1 (R1oka [8]). Any CA over �r;p;qH can be simulated by a CA over �n;m;k

T withn= |�1(p+ r−1)− 1p|; m= |�2(p−1)− 2(p+q−1)|; k = |�3(1−p− r)+ 3p| and(p−1)�1 = lcm(p−1; p+q−1); (p+r−1)�2 = lcm(p+r−1; p); (−r)�3 = lcm(r; q−1);(p+q−1) 1 = lcm(p−1; p+q−1) and p 2 = lcm(p+r−1; p); (q−1) 3 = lcm(r; q−1).

Proof. Let !H be a CA over �r;p;qH whose initial con)guration is c0

!H . To prove thatthere exists !3D a CA over �n;m;k

T which simulate !H , it suCces to prove that c0!H is

periodical in all the directions given by the generators. That is, there exists n; m and kthree naturals such that an = 1; bm = 1 and ck = 1.

Let vh ∈�r;p;qH and v3D ∈�n;m;k

T . The initial con)guration of !3D is de)ned as c0!3D

(v3D)= c0

!H (vh), c0!3D

(v3Dai) = c0!H (vhai) for 16i¡n; c0

!3D(v3Dbj) = c0

!H (vhbj) for 16j¡m,c0!3D

(v3Dcl) = c0!H (vhcl) for 16l¡k.

Neighbors of c0!H are also neighbors for c0

!3D. Thus, we can de)ne !3D as Q3D =QH

and �3D = �H which simulates !H without loss of time.We show that c!H is periodical in all the directions given by the generators. We

present the proof only for generator a, the construction is similar for the others. Wehave the set of relations R= {c= a−1b−1; arc1−p = 1; bq−1c−p = 1} which de)nes asystem of two equations {ap+r−1bp−1 = 1; apbp+q−1 = 1} to be solved in variable a.

Let

�1 =lcm(p− 1; q + p− 1)

p− 1and 1 =

lcm(p− 1; q + p− 1)q + p− 1

;

we obtain a�1(p+r−1)− 1p = 1. The other values of the theorem are obtained similarlyby solving R in b and c and by de)ning �2; �3; 2 and 3.

Corollary 2 (R1oka [8]). Any CA over �r;p;qH can be simulated by a CA over �n;m

T withn= |�1(p + r − 1) − 1p|; m= |�2(p − 1) − 2(p + q − 1)|; (p − 1)�1 = lcm(p − 1;

Page 3: A simulation of cellular automata on hexagons by cellular automata on rings

B. Martin / Theoretical Computer Science 263 (2001) 231–234 233

p + q − 1); (p + r − 1)�2 = lcm(p + r − 1; p); (p + q − 1) 1 = lcm(p − 1;p + q− 1) and p 2 = lcm(p + r − 1; p).

This is proved by observing that the third direction depends on the others.

Theorem 3 ([5]). Any CA over �n;mT can be simulated by a CA over �nm

R .

Proof. Let !T = (QT ; Gn;mT ; N; �T ) with Gn;m

T the graph of the group 〈u; u−1; v; v−1 :um = 1; uu−1 = 1; vn = 1; vv−1 = 1; uv= vu〉 and N = {1; u; u−1; v; v−1}.

We consider the CA over a ring of nm cells: !R = (QR;GmnR ; N; �R) with Gmn

R thegraph of the group �nm

R , N = {1; w; w−1} and �R : (QR)3 →QR. QR has four layers:QR = (QT )3×QSync = (C;U;D; Sync) where C is the ‘central’ layer (where the simula-tion takes place), U a copy of the upper neighbor, D a copy of the bottom neighborand Sync the synchronization layer.

The embedding of a con)guration of !T into a con)guration of !R (and conversely)is as follows:• Let (= uxvy be the cell of !T of coordinates (x; y) and *=wk be the kth cell of!R. Let T (() denote the contents of cell ( of !T . U (*), C(*) and D(*) denoterespectively the contents of layer U , C and D of cell * of !R. T (() is mapped onU (wm(x+1)+y), C(wmx+y) and D(wm(x−1)+y).Conversely, the !T ’s cell corresponding to the !R’s cell * is T

(u(k mod n)v(k|n)) =C(*)

where j|k denotes the quotient of euclidian division of j by k, mod the modulo. Thecontents of the other layers is out of interest since they contain a copy of the statesof !T at the previous time.

• The synchronization layer is as follows: there is a general on cells 0; (m − 1); m;(2m − 1); 2m; : : : ; (nm − 1). The local transition function which rules this layer isobtained from the solution to the two-general Firing Squad Synchronization Problemgiven in [6].

The simulation’s sketch is as follows:(a) the central layer of QR’s states are moved rightwards on layer U as long as no

)ring state appears on the synchronization layer;(b) the central layer of QR’s states are moved leftwards on layer D as long as no

)ring state appears on the synchronization layer;(c) when the )ring states appear, the moving information is where it must be and

on the central layers and !R can simulate one step of !T . Afterwards, the movingprocess (a) and (b) is again performed.

The way to send information synchronously is detailed in [4].

4. A simulation of a CA over hexagons by a CA over a ring

Theorem 4. Any CA over �r;p;qH can be simulated by a CA over �nm

R where n and mare those of Corollary 2.

Page 4: A simulation of cellular automata on hexagons by cellular automata on rings

234 B. Martin / Theoretical Computer Science 263 (2001) 231–234

This is a straightforward combination of the previous results. Observe that the con-verse simulations are not possible since it has been proved in [8] that there exists acellular automaton over a three-dimensional torus which cannot be simulated by anycellular automaton over a hexagon.

References

[1] P.M. Cohn, Algebra, Wiley, New York, 1989.[2] M. Garzon, in: Models of Massive Parallelism: Analysis of Cellular Automata and Neural Networks,

EATCS Monographs, Springer, Berlin, 1995.[3] A. Mach1J, F. Mignosi, Garden of eden con)gurations for cellular automata on cayley graphs of groups,

SIAM J. Discrete Math. 6 (1) (1993) 44–56.[4] B. Martin, A universal cellular automaton in quasi-linear time and its S–m–n form, Theoret. Comput.

Sci. 123 (1994) 199–237.[5] B. Martin, Embedding torus automata into a ring of automata, Int. J. Found. Comput. Sci. 8 (4) (1997)

425–431.[6] J. Mazoyer, N. Reimen, A linear speed-up theorem for cellular automata, Theoret. Comput. Sci. 101

(1992) 59–98.[7] Zs. R1oka, One-way cellular automata on Cayley graphs, Proc. FCT’93, Lecture notes in computer science,

vol. 710, Springer, Berlin, 1993, pp. 406–417.[8] Zs. R1oka, Automates cellulaires sur graphes de Cayley, Ph.D. Thesis, 1Ecole Normale Sup1erieure de Lyon,

1994.[9] Zs. R1oka, Simulations between cellular automata on Cayley graphs, Research Report 94-40,

LIP-ENS-Lyon, 1994.