Cellular-Automata
Cellular-Automata
I von Newmann
I Moore
I Margolus
I ...
(a) (b)
Boundary conditions
I periodic
I fixed
I reflexive
I ....
b a b 1 a
periodic fixed
a a b a b
adiabatic reflection
Generalization
I Stochastic CA
I Asynchronous update: loss of parallelism, but avoid oscillations
I Non-uniform CA
Implementation of the evolution rule
I On-the-fly calculation
and then
sij (t + 1) = Rule[index]
The possible universes...
k
I Finite number of possible universes: mm possible rules where m is the number of
states per cell and k the number of neighbors.
I Most of them are uninteresting
Wolfram classification of 1D rules with m = 1, k = 3:
What is this ?
The real thing
Wilson Bentley, From Annual Summary of the "Monthly Weather Review", 1902.
Snowflakes model
http://cui.unige.ch/~chopard/CA/Animations/img-root.html
Cells differentiation in drosophila
In the embryo all the cells are identical. Then during evolution they
differentiate
I slightly less than 25% become neural cells (neuroblasts)
Biological hypotheses:
I Cells produce a substance S (protein) which leads to differentiation when
a threshold S0 is reached.
I Neighboring cells inhibit the local S production.
CA model for a competition/inhibition process
I Hexagonal lattice
I The values of S can be 0 (inhibited) or 1 (active) in each lattice cell.
I A S = 0 cell will grow (i.e. turn to S = 1) with probability pgrow
provided that all its neighbors are 0. Otherwise, it stays inhibited.
I A cell in state S = 1 will decay (i.e. turn to S = 0) with probability
pdecay if it is surrounded by at least one active cell. If the active cell is
isolated (all the neighbors are in state 0) it remains in state 1.
Differentiation: results
The two limit solutions with density 1/3 and 1/7, respectively.
I CA produces situations with about 23% of active cells, for almost any
value of panihil and pgrowth .
I Model robust to the lack of details, but need for hexagonal cells
Excitable Media, contagion models
t=5 t=110
t=115 t=120
Forest fire
(1) a burning tree becomes an empty site;
(2) a green tree becomes a burning tree if at
least one of its nearest neighbors is burning;
(3) at an empty site, a tree grows with
probability p;
(4) A tree without a burning nearest neighbor
becomes a burning tree during one time step
with probability f (lightning).
4. Cellular Automata Models for Traffic
Traffic Models
A vehicle can move only when the downstream cell is free (Wolfram rule 184).
time t
time t+1
Flow diagram
The car density at time t on a road segment of length L is defined as
N (t)
⇢(t) =
L
where N is the no of cars along L
The average velocity < v > at time t on this segment is defined as
M (t)
< v >=
N (t)
where M (t) is the number of car moving at time t
The traffic flow j is defined as
j=⇢<v>
Flow diagram of rule 184
1
flow
0
0 1
car density
Traffic in a Manhattan-like city
f g
(a) (b)
d c
a b h (a) (b)
1 0.35
e free rotary
Traffic flow
<v>
t t+10 t+20
Complex Behavior in the game of life
A glider gun
iteration=150
The Langton’s Ant