0% found this document useful (0 votes)
3 views

Cellular-Automata

Cellular Automata (CA) are mathematical models that simulate complex systems through discrete states and local rules, allowing for the emergence of intricate patterns from simple initial conditions. The document discusses various CA rules, their applications in modeling phenomena such as traffic and biological processes, and highlights the unpredictability of macroscopic behaviors despite knowing the governing laws. Examples include the Parity Rule, Conway's Game of Life, and models for cell differentiation and traffic flow.

Uploaded by

Sara Bchini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Cellular-Automata

Cellular Automata (CA) are mathematical models that simulate complex systems through discrete states and local rules, allowing for the emergence of intricate patterns from simple initial conditions. The document discusses various CA rules, their applications in modeling phenomena such as traffic and biological processes, and highlights the unpredictability of macroscopic behaviors despite knowing the governing laws. Examples include the Parity Rule, Conway's Game of Life, and models for cell differentiation and traffic flow.

Uploaded by

Sara Bchini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 54

1.

Definition and basic concepts


3.1 Définition et concepts de bases

What is a Cellular Automata?


I A mathematical abstraction of the real world, a modeling framework
I Fictitious Universe in which everything is discrete
I But, it is also a mathematical object, new paradigm for computation
I Elucidate some links between complex systems, universal computations,
algorithmic complexity, intractability.
Example: the Parity Rule
I Square lattice (chessboard)
I Possible states sij = 0, 1
I Rule: each cell sums up the states of its 4 neighbors (north, east, south and west).
I If the sum is even, the new state is sij = 0; otherwise sij = 1

Generate “complex” patterns out of a simple initial condition.


t=0 t=31 t=43

t=75 t=248 t=292

t=357 t=358 t=359

t=360 t=511 t=571


Pattern generated by the Parity Rule
CA Definition
I Discrete space A: regular lattice of cells/sites in d dimensions.
I Discrete time
I Possible states for the cells: discrete set S
I Local, homogeneous evolution rule (defined for a neighborhood N ).
I Synchronous (parallel) updating of the cells
I Tuple: < A, S, N , >
Neighborhood

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

sij (t + 1) = si 1,j (t) si+1,j (t) si,j 1 (t) si,j+1 (t)


I Lookup table
index = si 1,j (t) + 2si+1,j (t) + 4si,j 1 (t) + 8si,j+1 (t)

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:

(a) (b) (c) (d)


I Class III self-similar, chaotic attractor
I Class I Reaches a fixed point I Class IV unpredicable persistent
I Class II Reaches a limit cycle structures, irreducible, universal
computer
CA as a mathematical abstraction of reality

I Several levels of reality: macroscopic, mesoscopic and microscopic.


I The macroscopic behavior depends very little on the details of the
microscopic interactions.
I Only “symmetries” or conservation laws survive. The challenge is to find
them.
I Consider a fictitious world, particularly easy to simulate on a
(parallel) computer with the desired macroscopic behavior.
I Simple, flexible, intuitive, efficient
A Caricature of reality

t=4 t=10 t=54

What is this ?
The real thing

Wilson Bentley, From Annual Summary of the "Monthly Weather Review", 1902.
Snowflakes model

I Very rich reality, many different shapes


I Complicated true microscopic description
I Yet a simple growth mechanism can capture some essential features
• A vapor molecule solidifies (!ice) if one and only one already
solidified molecule is in its vicinity
• Growth is constrained by 60o angles
Examples of CA rules
I Growth model in physics: droplet, interface, etc
I Biased majority rule: (almost copy what the neighbors do)
Annealing Rule:
sumij (t) 0123456789
sij (t + 1) 0000101111
Examples of CA rules

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)

I the rest becomes body cells (epidermioblasts).

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

I 3 states: (1) normal (resting), (2) excited (contagious), (3)


refractory (immuned)
1. excited ! refractory
2. refractory! normal
3. normal ! excited, if there exists excited neighbors (otherwise, normal ! normal).
Greenberg-Hastings Model
I s 2 {0, 1, 2, ..., n 1}
I normal: s = 0; excited s = 1, 2, ..., n/2; the remaining states are refractory
I contamination if at least k contaminated neighbors.

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>

road spacing=256 flip-flop


road spacing=32 free rotary
road spacing=4 traffic-light
0 0
0 1 0 1
car density car density
5. Complex systems
Complex systems
Rule of the Conway’s Game of Life:
I Birth if exactly 3 living
I Square lattice, 8 neighbors neighbors
I Cells are dead or alive (0/1) I Death if less than 2 or more
than 3 neighbors

t t+10 t+20
Complex Behavior in the game of life

Collective behaviors develop (beyond the local rule)


“Gliders” (organized structures of cell) can emerge and can move collectively.

t=0 t=1 t=2 t=3 t=4


Complex Behavior in the game of life

A glider gun

I A glider gun is a structure that keeps creating


gliders
I There are more complex structures with more
complex behavior: a zoology of organisms.
I The game of life is a Universal computer

iteration=150
The Langton’s Ant

This is a hypothetical animal moving on a 2D lattice, accoring to


a simple rule. This rule depends on the “color” of the cell on
which the ant is.
The rule of motion
Several steps
Several steps
Several steps
Several steps
Several steps
Several steps
Several steps
Several steps
Several steps
Were does the ant go in the long term?
I Animation...
Were does the ant go in the long term?

I t=6900 t=10431 t=12000


The ants always escape to infinity
What about many ants?
I The trajectory can be bounded or
I Adapt the “change of color” rule not
I Cooperative and destructive effects I Past/futur symmetry explains
periodic motion

t=2600 t=4900 t=8564


Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


I ...because we define it ourselves
Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


I ...because we define it ourselves
I However we cannot predict the detailed motion of tha ant (e.g. at what
time does the highway appears)
Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


I ...because we define it ourselves
I However we cannot predict the detailed motion of tha ant (e.g. at what
time does the highway appears)
I The microscopic description is not always able to predict the macroscopic
behavior
Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


I ...because we define it ourselves
I However we cannot predict the detailed motion of tha ant (e.g. at what
time does the highway appears)
I The microscopic description is not always able to predict the macroscopic
behavior
I The only solution: observe the system
Impact on the scientific methodolgy

I We know perfectly well the fundamental law governing the system


I ...because we define it ourselves
I However we cannot predict the detailed motion of tha ant (e.g. at what
time does the highway appears)
I The microscopic description is not always able to predict the macroscopic
behavior
I The only solution: observe the system
I The only information we get on the trajectory is global and relects the
symmetry of the rule.
t=0 t=31 t=43

t=75 t=248 t=292

t=357 t=358 t=359

t=360 t=511 t=571


For other rules, on can be faster than the observation
For other rules, on can be faster than the observation

(a) (b) (c)


I Instead of n ⇥ n ⇥ T computations (direct observation), one can get the results in
n ⇥ n ⇥ log(T ) computations

You might also like