cellular automata derek karssenberg, utrecht university, the netherlands life (conway)

19
CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

Post on 20-Dec-2015

228 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

CELLULAR AUTOMATADerek Karssenberg, Utrecht University, the Netherlands

LIFE (Conway)

Page 2: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionPrinciple of cellular automata

Local (spatial) interactions create global pattern of changeExample: vegetation patterns

local global

Page 3: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionPrinciple of cellular automataLocal (spatial) interactions create global pattern of changeExample: forest fire local

Page 4: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionPrinciple of cellular automataLocal (spatial) interactions create global pattern of changeExample: forest fire global

Page 5: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionSpatial discretization: regular lattice of cells

Page 6: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionFormulating cellular automata

General case for dynamic spatial models:

with:zk 1..k state variables

ij 1..j inputs

fk 1..k functionals

Page 7: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionFormulating cellular automata

General case for dynamic spatial models:

which can be rewritten as:

z vector of state variables (was zk),

the ‘state of the cell’i vector of inputs (was ij)

f number of functionals (was fk)

( ) ttnjtimktztz jkkk each for ;..1),( ;..1),(f)1( ===+

Page 8: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionFormulating cellular automata

Cellular automata:

• no inputs (although in practice inputs may be used)

• all variables in z are classified (although scalars are sometimes used)

• f is a function (‘transition rule’) of a direct neighbourhood and the cell itself only

• the change from t to t + 1 is not a function of time

What is f?

Page 9: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionNotation rules: referring to neighbouring cells

the state of the cell on row i, column j

Page 10: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

transition rulesTransition rule: von Neumann Neighborhood

Page 11: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

transition rulesTransition rule: Moore neighborhood

Page 12: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

transition rulesTransition rule: extended von Neumann neighborhood

Page 13: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionLife, also known as Game of Life

Developed by John Conway, 1970

One boolean variable: TRUE (= live cell) or FALSE (= dead cell)

Uses the Moore neighborhood

Page 14: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionLife, also known as Game of Life

Transition rules (i.e. f)

• a dead cell with exactly three alive neighbors becomes a live cell (birth)

Page 15: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionLife, also known as Game of Life

Transition rules (i.e. f)

• a dead cell with exactly three alive neighbors becomes a live cell (birth)• a live cell with two or three neighbors stays alive (survival)

Page 16: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionLife, also known as Game of Life

Transition rules (i.e. f)

• a dead cell with exactly three alive neighbors becomes a live cell (birth)• a live cell with two or three neighbors stays alive (survival)• in all other cases, a cell dies or remains dead

Page 17: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

introductionLIFE in PCRaster

initial Alive=uniform(1) gt 0.5;

dynamic

NumberOfAliveNeighbors=windowtotal(scalar(Alive),3)-

scalar(Alive); Alive=(NumberOfAliveNeighbors eq 3) or

((NumberOfAliveNeighbors eq 2) and Alive); 

Page 18: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

stochastic variables in PCRasterDemo

game of life

edit tot.moddisplay ini.mapaguila –2 alive000.001+1000 test0000.001+1000

Page 19: CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)

stochastic variables in PCRasterSelf-organization

Internal organization of a system increases in complexity without being guided by an input variable

Emergent properties

Complex pattern formation from more basic constituent parts or behaviors

Example: game of life

Many examples in ecology, sedimentology