L ECTURE 11: C ELLULAR A UTOMATA 1 / D ISCRETE -T IME D YNAMICAL S - - PowerPoint PPT Presentation

โ–ถ
l ecture 11 c ellular a utomata 1 d iscrete t ime d
SMART_READER_LITE
LIVE PREVIEW

L ECTURE 11: C ELLULAR A UTOMATA 1 / D ISCRETE -T IME D YNAMICAL S - - PowerPoint PPT Presentation

15-382 C OLLECTIVE I NTELLIGENCE S18 L ECTURE 11: C ELLULAR A UTOMATA 1 / D ISCRETE -T IME D YNAMICAL S YSTEMS 3 I NSTRUCTOR : G IANNI A. D I C ARO S TATE VARIABLES SPATIALLY BOUNDED ON L ATTICES : C ELLULAR A UTOMATA State variable


slide-1
SLIDE 1

LECTURE 11: CELLULAR AUTOMATA 1 / DISCRETE-TIME DYNAMICAL SYSTEMS 3

INSTRUCTOR: GIANNI A. DI CARO

15-382 COLLECTIVE INTELLIGENCE โ€“ S18

slide-2
SLIDE 2

2

STATE VARIABLES SPATIALLY BOUNDED ON LATTICES: CELLULAR AUTOMATA

  • State variable โ†” State of a Spatial location / Cell
  • Cell in a 1D, or 2D, or 3D Lattice

1D 2D

๐‘ฆ1 ๐‘ฆ2 ๐‘ฆ3 ๐‘ฆ๐‘— ๐‘ฆ๐‘—โˆ’1 ๐‘ฆ๐‘—+1 ๐‘ฆ๐‘™ Example of selected neighborhood of ๐‘ฆ๐‘—, represented by the set {๐‘ฆ๐‘—โˆ’1, ๐‘ฆ๐‘—+1} ๐‘ฆ1 ๐‘ฆ2 ๐‘ฆ3 ๐‘ฆ๐‘™ ๐‘ฆ๐‘™+1 ๐‘ฆ๐‘™+2 ๐‘ฆ๐‘™+3 ๐‘ฆ๐‘™+๐‘› Example of selected neighborhood of ๐‘ฆ๐‘™+๐‘—, represented by the set {๐‘ฆ๐‘™+๐‘—โˆ’1, ๐‘ฆ๐‘™+๐‘—+1, ๐‘ฆ๐‘—, ๐‘ฆ๐‘—+1, ๐‘ฆ๐‘—โˆ’1, ๐‘ฆ2๐‘™+๐‘—, ๐‘ฆ2๐‘™+๐‘—+1, ๐‘ฆ2๐‘™+๐‘—โˆ’1}

๐‘ฆ๐‘™+๐‘—

๐‘ฆ2๐‘™

slide-3
SLIDE 3

3

CAS ARE LATTICE MODELS

  • Regular ๐’-dimensional discretization of a continuum
  • E.g., an ๐‘œ-dimensional grid
  • Periodic (toroidal) or non periodic structure
  • More abstract definition: Regular tiling of a space by a primitive cell

Bethe lattice, โˆž-connected cycle-free graph where each node is connected to ๐‘จ neighbors, where ๐‘จ is called the coordination number

slide-4
SLIDE 4

4

CELLULAR AUTOMATA 1D

1D Lattice

๐‘ฆ1 ๐‘ฆ2 ๐‘ฆ3 ๐‘ฆ๐‘— ๐‘ฆ๐‘—โˆ’1 ๐‘ฆ๐‘—+1 ๐‘ฆ๐‘™

๐‘ฆ๐‘œ+1

1

= ๐‘”

1(๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2, โ€ฆ . ๐‘ฆ๐‘œ ๐‘™)

๐‘ฆ๐‘œ+1

2

= ๐‘”

2(๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2, โ€ฆ . ๐‘ฆ๐‘œ ๐‘™)

๐‘ฆ๐‘œ+1

๐‘™

= ๐‘”

๐‘™(๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2, โ€ฆ . ๐‘ฆ๐‘œ ๐‘™)

โ€ฆ.. ๐‘ฆ๐‘œ+1

1

= ๐‘”

1(๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2)

๐‘ฆ๐‘œ+1

2

= ๐‘”

2(๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2, ๐‘ฆ๐‘œ 3)

๐‘ฆ๐‘œ+1

๐‘—

= ๐‘”

๐‘—(๐‘ฆ๐‘œ ๐‘—โˆ’1, ๐‘ฆ๐‘œ ๐‘— , ๐‘ฆ๐‘œ ๐‘—+1)

โ€ฆ.. ๐‘ฆ๐‘œ+1

๐‘™

= ๐‘”

๐‘™(๐‘ฆ๐‘œ ๐‘™โˆ’1, ๐‘ฆ๐‘œ ๐‘™)

โ€ฆ.. ๐‘ฆ๐‘œ+1

1

= ๐‘”

1(๐‘ฆ๐‘œ ๐‘™, ๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2)

๐‘ฆ๐‘œ+1

๐‘—

= ๐‘”

๐‘—(๐‘ฆ๐‘œ ๐‘—โˆ’1, ๐‘ฆ๐‘œ ๐‘— , ๐‘ฆ๐‘œ ๐‘—+1)

โ€ฆ.. ๐‘ฆ๐‘œ+1

๐‘™

= ๐‘”

๐‘™(๐‘ฆ๐‘œ ๐‘™โˆ’1, ๐‘ฆ๐‘œ ๐‘™, ๐‘ฆ๐‘œ 1)

โ€ฆ.. Toroidal boundary conditions ๐‘ฆ๐‘œ+1

1

= ๐‘”(๐‘ฆ๐‘œ

๐‘™, ๐‘ฆ๐‘œ 1, ๐‘ฆ๐‘œ 2)

๐‘ฆ๐‘œ+1

๐‘—

= ๐‘”(๐‘ฆ๐‘œ

๐‘—โˆ’1, ๐‘ฆ๐‘œ ๐‘— , ๐‘ฆ๐‘œ ๐‘—+1)

โ€ฆ.. ๐‘ฆ๐‘œ+1

๐‘™

= ๐‘”(๐‘ฆ๐‘œ

๐‘™โˆ’1, ๐‘ฆ๐‘œ ๐‘™, ๐‘ฆ๐‘œ 1)

Single map โ€ฆ.. โ€ฆ..

slide-5
SLIDE 5

5

CA: A FORMAL DEFINITION

  • We can give a definition of CAs aside the general framework of DTDS
  • CAs are defined by:
  • Components/Cells (Connected FSMs)
  • Lattice (Geometry + Topology)
  • Schedule (Time + Synchronization)
slide-6
SLIDE 6

6

CA: COMPONENTS

  • A set of ๐‘ automata (cells) ๐‘๐‘—, ๐‘— = 1, โ€ฆ ๐‘: finite-state machines

(in a more general sense, each cell could a function)

  • Each machine has a specified set of possible states, ๐‘‡๐‘— = {๐‘ก1, ๐‘ก2, โ€ฆ , ๐‘ก๐‘ค}
  • For each machine ๐‘๐‘—, state transitions are defined by a local state

transition function, that depends on the current state of ๐‘๐‘— and the state of the ๐‘œ๐‘— cells that are in ๐‘๐‘—โ€™s neighborhood, ๐’ช(๐‘๐‘—), ๐บ๐‘—: ๐‘‡๐‘— โˆช ๐’ช(๐‘๐‘—) โ†’ ๐‘‡๐‘—

  • At discrete time ๐‘ข = 0, each cell has an initial state, where the vector
  • f all initial states define the initial condition of the CA

๐บ๐‘— ๐‘ก๐‘— = 3 ๐‘๐‘—

slide-7
SLIDE 7

7

CA: LATTICE

  • Cells are defined on a lattice, that induces a topology structure
  • Associated to the topology, is the neighborhood map, ๐’ช, of a cell ๐‘๐‘—,

that associates to ๐‘๐‘— a set of neighbors, ๐’ช ๐‘๐‘— = {๐‘๐‘˜ โˆถ ๐‘๐‘˜ ๐‘—๐‘ก ๐‘œ๐‘“๐‘—๐‘•โ„Ž๐‘๐‘๐‘  ๐‘๐‘”๐‘๐‘—}

  • Neighborhood ๏ƒ  Range for a cell to be influenced by other cells,

range of influence of a cell

  • Boundary conditions define how the notion of topological neighborhood

includes the boundaries, if any, of the lattice

  • Infinite vs. Finite lattices (Hard boundaries vs. soft boundaries)

1D

๐‘1 ๐‘2 ๐‘3 ๐‘๐‘—โˆ’1 ๐‘๐‘— ๐‘๐‘—+1 ๐’ช ๐‘๐‘— = {๐‘๐‘—โˆ’1, ๐‘๐‘—+1}

2D Regular grid

Von Neumann Moore Extended Moore

slide-8
SLIDE 8

8

CA: LATTICE, BOUNDARIES

  • Infinite/adaptive lattice
  • The grid grows as the pattern propagates
  • Finite lattice
  • Hard boundary: reflective, leftmost (rightmost) cell only diffuse right (left)
  • Soft boundary: periodic boundary conditions, edges wrap around
  • Hard boundary: fixed, edge cells have a fixed state
slide-9
SLIDE 9

9

CA: LATTICE, BOUNDARIES

  • Edge wraps around
  • 1D is a ring
  • 2D is torus
  • Weird(er) topologies with a twist: Moebius bands, Klein bottles
slide-10
SLIDE 10

10

CA: SCHEDULES

  • Synchronized updating: at time ๐‘ข the state value of the cells is frozen,

and all cells update their state based on their own state and that of their neighbors, then time steps up to ๐‘ข + 1 and process is repeated

  • States are updated in sequence or in parallel, depending on the

available hardware, but it doesnโ€™t matter for the final result

  • Asynchronous updating: at time ๐‘ข the state of one of more cells is

updated based on their own state and that of their neighbors at ๐‘ข, at ๐‘ข + 1 the state of possibly different cells is updated and process is repeated

  • States are selected according to some criterion, or self-trigger the

update, the updating sequence matters for the final result

๐‘๐‘— ๐‘๐‘—โˆ’1 ๐‘๐‘—+1 ๐‘๐‘—+2 ๐‘๐‘—โˆ’2 ๐‘๐‘— ๐‘๐‘—โˆ’1 ๐‘๐‘—+1 ๐‘๐‘—+2 ๐‘๐‘—โˆ’2

๐‘ข ๐‘ข + 1

๐บ(๐‘๐‘—, ๐‘๐‘—โˆ’1, ๐‘๐‘—+1)

slide-11
SLIDE 11

11

DESIGN CHOICES

  • In principle a great freedom choosing:
  • number and type of states,
  • state transition functions (for each cell),
  • topology and neighborhood mapping (for each cell),
  • cells updating scheme,
  • number of cells,
  • boundary conditions
  • โ€ฆ
  • In an homogeneous CA, neighborhoods, state transition functions, topology, are

the same for all cells, in a non homogenous CA thereโ€™s some heterogeneity, in space and/or time, in terms of transitions, topology / neighborhood

  • Freedom in the design space has been exploited in a number of interesting

applications, that precisely might require a diversity of local behaviors, problem- specific interconnection topologies that reflect complex realities such as ecosystems, immune systems, car traffic flows, bio-chemical reactions,โ€ฆ

  • CAs are discrete time and space models of partial differential equations
slide-12
SLIDE 12

12

DESIGN CHOICES TO STUDY CAS

  • Being multidimensional iterated maps, CAs are very complex entities, therefore, to

study them, letโ€™s make a few reasonably simplifying assumptions:

  • Homogeneous CAs:
  • Lattice is a regular grid, in 1D or 2D
  • All cell functions ๐‘ have the same (relatively simple) neighborhood

mapping ๐’ช(๐‘) ๏ƒ  they all have the same number of neighbors defined according to the lattice

  • All cell functions have the same state transition function, ๐บ(๐‘, ๐’ช ๐‘ )
  • States are encoded in a few bits, typically, 2 or 3
  • Synchronous updating
slide-13
SLIDE 13

13

1D CA

  • Simplest case: State variables / Cells are Boolean units, ๐‘‡ = {0,1}
  • The neighborhood of a cell ๐‘๐‘—, ๐’ช ๐‘๐‘— corresponds to the one or two closest

neighbors in both left and right directions

  • ๏ƒ  Transition function ๐บ is a Boolean function of ๐‘œ = 3 or ๐‘œ = 5 arguments

๐บ(๐‘๐‘—, ๐‘๐‘—โˆ’1, ๐‘๐‘—+1, ๐‘๐‘—โˆ’2, ๐‘๐‘—+2) = แ‰Š1 if ๐‘๐‘— + ๐‘๐‘—โˆ’1 + ๐‘๐‘—+1 + ๐‘๐‘—โˆ’2 + ๐‘๐‘—+2 > 2

  • therwise
  • ๏ƒ  A 1D Boolean CA with ๐‘œ cells is an ๐‘œ-dimensional binary vector

๐’ƒ(t), the state vector of the CA, that evolves over time by the iterated application of the map ๐บ : ๐’ƒ t + 1 = ๐บ(๐’ƒ t )

  • State space of the CA: All possible configurations of the vector ๐’ƒ
slide-14
SLIDE 14

14

1D BOOLEAN CA, SOME NUMBERS

  • ๐‘™ = ๐‘‡ = number of (cell) states
  • ๐‘‡ = {0,1} ๏ƒ  ๐‘™ = 2
  • ๐‘ = number of cells ๏ƒ  2๐‘ possible configurations of CAโ€™s state vector,
  • ๐‘ = 100, ๐‘™ = 2 ๏ƒ  2100 โ‰ˆ 1030 !!!!

One specific function ๐บ

๐’ช = 8

  • ๐‘  = range = ๐’ช ๐‘ /2 (assuming a symmetric neighborhood)
  • ๐‘™2๐‘ +1 = ๐‘™|๐’ช|+1 possible configurations of neighbor set
  • If ๐‘  = 1, ๐‘™ = 2 ๏ƒ  8 possible neighbor configurations
  • If ๐‘  = 2, ๐‘™ = 2 ๏ƒ  32 possible neighbor configurations
  • ๐‘™๐‘™2๐‘ +1 = ๐‘™๐‘™|๐’ช|+1 = possible evolution functions for the CA
  • If ๐‘  = 1, ๐‘™ = 2 ๏ƒ  256 possible Boolean evolution functions
  • If ๐‘  = 2, ๐‘™ = 2 ๏ƒ  4 โˆ™ 109 possible Boolean functions!
slide-15
SLIDE 15

15

ELEMENTARY CA: WOLFRAM CODE

  • ๐‘‡ = 0,1 , ๐‘  = 1 ๏ƒ  ๐‘™ = 2, ๐’ช + 1 = 8, 256 possible Boolean functions

Transition function ๐‘ฎ (rule of the CA) Example: Rule 30 This is a bit string ๏ƒ  Decimal number Rule 30: (00011110) ๏ƒ  30 Wolfram code

slide-16
SLIDE 16

16

SOME RULES โ€ฆ

slide-17
SLIDE 17

17

STUDYING CAS: NON-LINEAR BUSINESS AS USUAL

Direct problem (Prediction): Given the function, whatโ€™s the behavior?

slide-18
SLIDE 18

18

RULE 30

Class 3 cellular automata: overall the evolution presents regularities, however, the state sequence generated by the central cell is used as random generator in Mathematica! (randomness deriving from a purely deterministic process with no external โ€™noisyโ€™ inputs)

slide-19
SLIDE 19

19

A ZOO OF BEHAVIORS