cellular automata (reading: chapter 10, complexity: a guided tour )

30
Cellular Automata (Reading: Chapter 10, Complexity: A Guided Tour)

Upload: xenos

Post on 23-Feb-2016

50 views

Category:

Documents


0 download

DESCRIPTION

Cellular Automata (Reading: Chapter 10, Complexity: A Guided Tour ). What is a cellular automaton? . light bulbs pictures relation to Turing machines “non-von-Neumann-style architecture” invented by von Neumann CAs and universal computation. What is a cellular automaton?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Cellular Automata

(Reading: Chapter 10, Complexity: A Guided Tour)

Page 2: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

What is a cellular automaton?

• light bulbs pictures

• relation to Turing machines– “non-von-Neumann-style architecture”

• invented by von Neumann

• CAs and universal computation

Page 3: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

What is a cellular automaton?

Circular (“toroidal”) boundary conditions

Page 4: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

time = 1 time = 2

Page 5: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Example: Game of Life

(John Conway, 1970s)

• Neighborhood: 2 dimensional 3x3 neighborhood:

• Rules: – A dead cell with exactly three live neighbors becomes a

live cell (birth). – A live cell with two or three live neighbors stays alive

(survival). – In all other cases, a cell dies or remains dead

(overcrowding or loneliness).

Page 6: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Demo: http://golly.sourceforge.net

A “glider”

Page 7: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Netlogo models library: Computer science –> Cellular Automata –> Life

Go through code

See http://www.bitstorm.org/gameoflife/

Seehttp://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

Page 8: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

• Is there a general way (a “definite procedure”) to predict the behavior of Life from a given initial configuration?

Page 9: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

• Is there a general way (a “definite procedure”) to predict the behavior of Life from a given initial configuration?

• Relation to the Halting Problem.

Page 10: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

• Is there a general way (a “definite procedure”) to predict the behavior of Life from a given initial configuration?

• Relation to the Halting Problem.

• Answer: No.

Page 11: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

• Is there a general way (a “definite procedure”) to predict the behavior of Life from a given initial configuration?

• Relation to the Halting Problem.

• Answer: No.

• Reason “Life is Universal.” http://rendell-attic.org/gol/tm.htm

Page 12: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Elementary cellular automata

One-dimensional, two states (black and white)

Page 13: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Elementary cellular automata

One-dimensional, two states (black and white)

Rule:

Page 14: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Rule:

Elementary cellular automata

One-dimensional, two states (black and white)

Page 15: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Rule:

Elementary cellular automata

One-dimensional, two states (black and white)

Page 16: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Elementary cellular automata

One-dimensional, two states (black and white)

Rule:

Page 17: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Elementary cellular automata

One-dimensional, two states (black and white)

Rule:

Page 18: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Elementary cellular automata

One-dimensional, two states (black and white)

Rule:

Page 19: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )
Page 20: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

http://mathworld.wolfram.com/ElementaryCellularAutomaton.html

See Netlogo models library –> Computer Science –> Cellular Automata –> CA 1D Elementary

Page 21: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Wolfram’s Four Classes of CA Behavior

• Class 1: Almost all initial configurations relax after a transient period to the same fixed configuration (e.g., all black).

• Class 2: Almost all initial configurations relax after a transient period to some fixed point or some temporally periodic cycle of configurations, but which one depends on the initial configuration

• Class 3: Almost all initial configurations relax after a transient period to chaotic behavior. (The term ``chaotic'‘ here refers to apparently unpredictable space-time behavior.)

• Class 4: Some initial configurations result in complex localized structures, sometimes long-lived.

Page 22: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Rule:

ECA 110 is a universal computer(Matthew Cook, 2002)

Wolfram’s numbering of ECA:

0 1 1 0 1 1 1 0 = 110 in binary

Page 23: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

– Transfer of information: moving particles

From http://www.stephenwolfram.com/publications/articles/ca/86-caappendix/16/text.html

Page 24: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

– Transfer of information: moving particles

From http://www.stephenwolfram.com/publications/articles/ca/86-caappendix/16/text.html

Page 25: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

– Transfer of information: moving particles

– Integration of information from different spatial locations: particle collisions

From http://www.stephenwolfram.com/publications/articles/ca/86-caappendix/16/text.html

Page 26: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

– Transfer of information: moving particles

– Integration of information from different spatial locations: particle collisions

From http://www.stephenwolfram.com/publications/articles/ca/86-caappendix/16/text.html

Page 27: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Outline of proof

1. Define “cyclic tag systems” and prove they are universal (they can emulate Turing machines).

2. Show ECA 110 can emulate a cyclic tag system.

Page 28: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Wolfram’s hypothesis:

All class 4 CAs can support universal computation

Page 29: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Outline of Wolfram’s A New Kind of Science (from MM review, Science, 2002)

• Simple programs can produce complex, and random-looking behavior– Complex and random-looking behavior in nature comes

from simple programs.

• Natural systems can be modeled using cellular-automata-like architectures

• Cellular automata are a framework for understanding nature

• Principle of computational equivalence

Page 30: Cellular  Automata (Reading:  Chapter 10,  Complexity:  A Guided Tour )

Principle of Computational Equivalence

1. The ability to support universal computation is very common in nature.

2. Universal computation is an upper limit on the sophistication of computations in nature.

3. Computing processes in nature are almost always equivalent in sophistication.