Title: Evolving Transition Rules for Multi Dimensional Cellular Automata
1Evolving Transition Rules for Multi Dimensional
Cellular Automata
University of Leiden (LIACS)
Ron Breukelaarrbreukel_at_liacs.nl
2Evolving Transition Rules for Multi Dimensional
Cellular Automata
3Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata
4Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata Transition Rules for Cellular
Automata
5Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata Transition Rules for Cellular
Automata Evolving Transition Rules for Cellular
Automata
6Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata Transition Rules for Cellular
Automata Evolving Transition Rules for Cellular
Automata Multi Dimensional Cellular Automata
7Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata Transition Rules for Cellular
Automata Evolving Transition Rules for Cellular
Automata Multi Dimensional Cellular
Automata Transition Rules for Multi Dimensional
Cellular Automata
8Evolving Transition Rules for Multi Dimensional
Cellular Automata
Cellular Automata Transition Rules for Cellular
Automata Evolving Transition Rules for Cellular
Automata Multi Dimensional Cellular
Automata Transition Rules forMulti Dimensional
Cellular Automata Evolving Transition Rules
forMulti Dimensional Cellular Automata
9Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
C a1, a2, , an
a2
a1
a7
a6
a5
a4
a3
a8
an
an is linked to a1
ai ? 0,1
2n different states of C
10Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
si
si is the neighborhood of ai with r as radius
(here r 3)
11Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Ct state of CA at time t
C0
C1
C2
C3
12Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Ct state of CA at time t
C0
? 0,12r1 ? 0,1 ? (si) ? ai
0
0
0
1
1
0
1
1
1
C1
13Transition Rules
Evolving Transition Rules for Multi Dimensional
Cellular Automata
1
0
1
0
0
1
0
0
1
1
0
1001011101101022r1 bits in rule
14Majority Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- relative number of ones in C0
- Task? 0.5 ? iterate to all ones state ?
- within maximum I iterations.
15Majority Problem (GKL)
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(81,6 correct classifications)
16M. Mitchell, J.P. Crutchfield, P.T. Hraber
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- A Genetic Algorithm to evolve the rules
- A pool of 100 transition rules
- Evaluation by iterating CA on 100 random
initial states uniformly dist. over nr. of ones - Selecting 10 to survive every generation
- Generating the other 90 using crossover on the
selected 10 and then mutation - r 3, therefore 27 128 bits in rule and
2128 possible rules
17M. Mitchell, J.P. Crutchfield, P.T. Hraber
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Fn,m the relative number of correct
classifications out of m initial states with a
width of n cells.
18M. Mitchell, J.P. Crutchfield, P.T. Hraber
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(copied experiment)
(a) and (b) are block expanding rules(c) and (d)
are particle based rules
19M. Mitchell, J.P. Crutchfield, P.T. Hraber
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(copied experiment)
Block expanding rules
Particle communication based rules
Very bad rules
20M. Mitchell, J.P. Crutchfield, P.T. Hraber
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(copied experiment)
21Two Dimensional Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
von Neumann neighborhood
Moore neighborhood
22Two Dimensional Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
r 1
r 2
r 3
23Multi Dimensional Cellular Automata
Evolving Transition Rules for Multi Dimensional
Cellular Automata
In a CA with d dimensions e1, e2, , ed and
connected borders von Neumann neighborhood
Moore neighborhood
24Number of cells
Evolving Transition Rules for Multi Dimensional
Cellular Automata
25Transition Rules
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- Rules are defined the similar way as in one dim.
CA - Cells are numbered
- ? 0,1n ? 0,1 , n S(d, r)
- Bitstring length explodes in high
dimensions 22S(d, r) bits in a rule. Only small
number of dimensions or small radius look seem
doable. - Experiments will focus on two dimensional CA
with r 1 to simplify them.
26Genetic Algorithm
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- Improved Genetic Algorithm
- Using tournament selection.
- Using a gliding distribution instead of uniform.
- Using crossover for only 60 of the population.
27Experiments
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- Four multi-dimensional experiments
- Majority Problem with von Neumann
neighborhood to compare two and three dim. with
one dim. - AND and XOR problem to better show
communication in 2D CA. - Checkerboard Problem to test robustness
of algorithm and again compare dimensionality. - Bitmap generation to show the potential of
multi dimensional CA and work towards a
real-time application.
28Multi Dimensional Majority Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
- The same pool size, evaluation method,
selection method, crossover and mutation for
d1, 2 or 3. - CA with linked borders.
- A von Neumann neighborhood with r 1. For d2
25 32 bits in rule and 232 possible rules for
d2. (This is 296 times smaller then one dim.)
29Multi Dimensional Majority Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
1D
3D
30Multi Dimensional Majority Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
31Checkerboard Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Given a random initial state Generate a
checkerboard pattern. (alterning blank and white
in every direction) Note that the CA must have
even dimensions
32Checkerboard Problem 1D
Evolving Transition Rules for Multi Dimensional
Cellular Automata
33Checkerboard Problem 2D
Evolving Transition Rules for Multi Dimensional
Cellular Automata
34Checkerboard Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
35AND and XOR Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Given two special input cells v1 and v2 AND
problem If (v1 AND v2 TRUE) ? iterate to an
all ones stateelse ? iterate to an all zeros
state. XOR problem If (v1 XOR v2 TRUE) ?
iterate to an all ones stateelse ? iterate to
an all zeros state.
36AND and XOR Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
v2
v1
- Borders of the CA are unlinked to increase
the distance between v1 and v2. - I was set to 10 to increase challenge.
37AND Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(a) von Neumann, (b) Moore
38XOR Problem
Evolving Transition Rules for Multi Dimensional
Cellular Automata
(a) von Neumann, (b) Moore
39Bitmap generation
Evolving Transition Rules for Multi Dimensional
Cellular Automata
Given a target bitmap and an initial state Find
a transition rule that generates the target
bitmap from the initial state.
Initial state
Five target bitmaps(5 x 5)
40Bitmap generation
Evolving Transition Rules for Multi Dimensional
Cellular Automata
41Bitmap generation
Evolving Transition Rules for Multi Dimensional
Cellular Automata
42Bitmap generation
Evolving Transition Rules for Multi Dimensional
Cellular Automata
A von neumann neighborhood trying to spell the
name RON in a 11x5 CA and ending up having only
3 errors.
43Bitmap generation
Evolving Transition Rules for Multi Dimensional
Cellular Automata
A CA using a Moore neighborhood generating a 9 x
9 image that looks like a gecco.
44Conclusions
- From the results can be concluded
- Multi dimensional CA are able to solve the
Majority Problem with results similar to the
one dimensional CA, but with shorter
duration times and with d2 smaller
neighborhood. - Multi dimensional CA can be used to
evolve transition rules that exhibit
communicational behaviour. - Multi dimensional CA can be trained to exhibit
very diverse behaviour and might well have
real-world applications in Parallel Computing
and modelling social / biological behaviour.
45Further Work
- Some ideas on continuation of this project
- Explore how far Bitmap Generation is
possible. (is compression an option?) - Try this approach on real-world applications.
- Investigate how other forms of crossover
influence the results. -
46Questions?
Any questions / ideas?