1-D Example, binary states



Similar documents
Cellular Automata. Course outline

CELLULAR AUTOMATA AND APPLICATIONS. 1. Introduction. This paper is a study of cellular automata as computational programs

Cellular Computing on a Linux Cluster

Genetic Algorithm Evolution of Cellular Automata Rules for Complex Binary Sequence Prediction

Outline 2. 1 Elementary Cellular Automata. 2 Analysis of Cellular Automata. 3 A Huge Surprise. Generalizations? 4

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

CAs and Turing Machines. The Basis for Universal Computation

Reliably computing cellular automaton, in 1-sparse noise

Claudio J. Tessone. Pau Amengual. Maxi San Miguel. Raúl Toral. Horacio Wio. Eur. Phys. J. B 39, 535 (2004)

CDM. Cellular Automata

Cellular Automaton: The Roulette Wheel and the Landscape Effect

Research Article Effect Analysis of Intermittent Release Measures in Heavy Fog Weather with an Improved CA Model

Inkrementell vekst av genomet for evolusjon av genotype representasjoner for kunstige cellulære organismer.

Properties of Stabilizing Computations

Conway s Game of Life makes use of sparse matrices.

Supervised and unsupervised learning - 1

PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 4: LINEAR MODELS FOR CLASSIFICATION

MAS.836 HOW TO BIAS AN OP-AMP

Self Organizing Maps: Fundamentals

The Halting Problem is Undecidable

A Simple Pseudo Random Number algorithm

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Decentralized Method for Traffic Monitoring

Modeling of Graph and Automaton in Database

Classification and probabilistic description of a sand site based on CPTU

Recurrent Neural Networks

Gamesman: A Graphical Game Analysis System

Self-Organizing g Maps (SOM) COMP61021 Modelling and Visualization of High Dimensional Data

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

An investigation of the efficient implementation of Cellular. Automata on multi-core CPU and GPU hardware.

SCAN-CA Based Image Security System

Honors Class (Foundations of) Informatics. Tom Verhoeff. Department of Mathematics & Computer Science Software Engineering & Technology

Raster Data Structures

Heat equation examples

BINOMIAL OPTIONS PRICING MODEL. Mark Ioffe. Abstract

Revisiting the Edge of Chaos: Evolving Cellular Automata to Perform Computations

Speedy Signature Based Intrusion Detection System Using Finite State Machine and Hashing Techniques

5. Tutorial. Starting FlashCut CNC

The art of linking the elements.

Zero-knowledge games. Christmas Lectures 2008

EC313 - VHDL State Machine Example

Name Partners Date. Energy Diagrams I

Brain-in-a-bag: creating an artificial brain

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites:

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Pheromone based artificial-life routing system for IP networks *

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile

Basic Network Design

Understanding the dynamics and function of cellular networks

jorge s. marques image processing

Self-Organization in Nonequilibrium Systems

Introduction to Machine Learning and Data Mining. Prof. Dr. Igor Trajkovski

Web Server Software Architectures

Mark Shifrin. YEQT 2015 Eurandom, Eindhoven 12th November 2015

Genetic Algorithms and Sudoku

Protocol Data Units and Encapsulation

6.080/6.089 GITCS Feb 12, Lecture 3

N Q.3 Choose a level of accuracy appropriate to limitations on measurement when reporting quantities.

walberla: Towards an Adaptive, Dynamically Load-Balanced, Massively Parallel Lattice Boltzmann Fluid Simulation

Finite Difference Time Domain and BPM: Flexible Algorithm Selection Technology

and Maths in School. Addition in School. by Kate Robinson

Colored Hats and Logic Puzzles

VAY-ZON. Light Gun System. Quick Start Guide. VAY-Zon from Forest Electronic Developments

A STUDY OF DES ALGORITHM WITH CELLULAR AUTOMATA

Chaotic Turing Patterns displaying the beauty of chaos

Supporting Online Material for

3. Add an Event: Alarm Alarm 0 a. Add an Action: Set Variable i. Applies to: Self ii. Variable: time_left iii. Value: +1 iv. Check the Relative box

Learning in Abstract Memory Schemes for Dynamic Optimization

Grid adaptivity for systems of conservation laws

Technical document. Group 3 Mate Tomin Pieter van Ede Raymond Weijermars Daniel Faustino Stefan Hospes

ME6130 An introduction to CFD 1-1

Turing Machines: An Introduction

GEOENGINE MSc in Geomatics Engineering (Master Thesis) Anamelechi, Falasy Ebere

A Cost-Efficient and Reliable Resource Allocation Model Based on Cellular Automaton Entropy for Cloud Project Scheduling

Analysis of Micromouse Maze Solving Algorithms

Representing Reversible Cellular Automata with Reversible Block Cellular Automata

A Beginner s Guide to Materials Studio and DFT Calculations with Castep. P. Hasnip (pjh503@york.ac.uk)

Use of System Dynamics for modelling customers flows from residential areas to selling centers

VALAR: A BENCHMARK SUITE TO STUDY THE DYNAMIC BEHAVIOR OF HETEROGENEOUS SYSTEMS

PROGRAM DIRECTOR: Arthur O Connor Contact: URL : THE PROGRAM Careers in Data Analytics Admissions Criteria CURRICULUM Program Requirements

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

Intro to the Art of Computer Science

Jan F. Prins. Work-efficient Techniques for the Parallel Execution of Sparse Grid-based Computations TR91-042

Automata Theory. Şubat 2006 Tuğrul Yılmaz Ankara Üniversitesi

Lottery Looper. User Manual

Increasing Interaction and Support in the Formal Languages and Automata Theory Course

CS311 Lecture: Sequential Circuits

Coding and decoding with convolutional codes. The Viterbi Algor

StateFlow Hands On Tutorial

Interactive simulation of an ash cloud of the volcano Grímsvötn

Introduction to Cellular Automata. J.L. Schiff

Ch5: Discrete Probability Distributions Section 5-1: Probability Distribution

Representing Geography

How to Build a Simple Pac-Man Game

Introduction to nonparametric regression: Least squares vs. Nearest neighbors

Scientific Programming

Random Map Generator v1.0 User s Guide

Critical Phenomena and Percolation Theory: I

Part 4 fitting with energy loss and multiple scattering non gaussian uncertainties outliers

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

Transcription:

Cellular Automata

Sources Sources: Bar-Yam: Dynamics of Complex Systems Gros: Complex and Adaptive Dynamical Systems http://en.wikipedia.org/wiki/cellular_automaton http://mathworld.wolfram.com/cellularautomaton.html http://en.wikipedia.org/wiki/conway%27s_game_of_life

Overview Deterministic 1-D cellular automata 2-D cellular automata: Game of Life, pattern formation sand pile model and self-organized criticality branching process

Cellular Automata Class of models of dynamical systems Appealingly simple yet producing rich set of behaviors. Example of emergence. Applications in very many diverse scientific fields: crystallization, tumor growth, chemical reactions, traffic flow,... System composed of cells, usually in some lattice-like arrangement Cells can be in a (finite) set of discrete states A cell's state at the next time step depends on the states of its neighbors at the previous time step

1-D Example, binary states Rule: majority rule: assume state corresponding to majority of 3-neighborhood How to deal with edges: 1) define extra update rules for edges 2) keep edge cells clamped to specific value 3) periodic boundary conditions: connect outer edges (most elegant)

More 1-D CAs Each cell has 2 states, i.e. the three cells in the neighborhood can have 8 possible states A specific CA is defined by how it maps the 8 possible states of each cell's neighborhood onto the cell's next state How many different CAs are there? (Wolfram code)

Rule 30 Very complex pattern emerging. Has been used as pseudo random number generator, but there seem to be better ones.

Conus textile (cloth of gold cone)

Rule 110 Note: this rule has been shown to be Turing complete, i.e. it is as powerful as any computer. To this end, the program to be run and the input data are encoded as the initial configuration. After a finite time, the CA's configuration represents the output of the program.

Rule 184 25% 50% 1 0 1 0 1 1 75% Traffic flow interpretation: car moves right only if the cell to the right is not occupied

Behavior for different densities Fukś, Henryk; Boccara, Nino (1998). "Generalized deterministic traffic rules". Journal of Modern Physics C 9 (1): 1 12. doi:10.1142/s0129183198000029

Wolfram Classification Stephen Wolfram 1959 - Class 1: quickly goes to stable homogeneous state Class 2: quickly goes to stable or oscillating patterns, locality Class 3: pseudo-random or chaotic behavior Class 4: development of structures interacting in complex and interesting ways

Examples of the 4 classes class I class II class III class IV Computation at the edge of chaos ; Life at the edge of chaos

2D Cellular Automata

Conway's Game of Life

2-D cellular automaton on a square lattice Cells in two states: on/off (alive/dead) Cells interact with their 8 neighbors totalistic : update rule depends only on total number of neighbors in each state, not their spatial pattern Deterministic zero player game. Everything is completely determined by the initial condition John Horton Conway

Game of Life Rules 1) Any live cell with fewer than two live neighbours dies, as if caused by underpopulation. 2) Any live cell with more than three live neighbours dies, as if by overcrowding. 3) Any live cell with two or three live neighbours lives on to the next generation. 4) Any dead cell with exactly three live neighbours becomes a live cell.

Illustration of Game of Life rules: Some common/interesting patterns: block blinker glider Gosper's glider gun

Play time: http://www.ibiblio.org/lifepatterns/ Notes: Game of life has very simple rules, but is capable of generating very rich (maybe complex?) patterns. Game of life is in fact capable of universal computation, i.e., it is no more or less powerful than a Turing machine.

2D Pattern Formation CA

Setup: Regular grid of cells each in binary state s i in{-1,1} asynchronous updating: pick single unit at random, update, pick next, update rule: Parameters: strength of activation/inactivation: J 1, J 2 range of activation/inactivation: R 1, R 2 bias : h

% Parameters length = 200; % size of layer fraction = 0.2; % fraction of units updated each turn j1 = 1.0; % strength of activation j2 = -0.3; % strength of inactivation r1 = 3; % range of activation r2 = 6; % range of inactivation h = 0; % strength of bias % Initializations X = unidrnd(2,length,length)*2-3; f_size = 2*ceil(r2)+1; f = j2*ones(f_size); for(x=1:f_size) for(y=1:f_size) rr = (x-(f_size+1)/2.0)^2+(y-(f_size+1)/2.0)^2; if rr <= r1^2 f(x,y)=j1; elseif rr > r2^2 f(x,y)=0; end end end figure(1) imagesc(f); % display filter colormap(gray); axis equal; % Main loop while(1) figure(2) imagesc(x); % display state colormap(gray); axis equal; axis off; pause % synchronous update leading to oscillations, so update % only a fraction of the units New = ((h+conv2(x,f,'same'))>0)*2-1; Update = unifrnd(0,1,length,length)<fraction; X(Update)=New(Update); end

Simulations Varying bias field h: j1=1, j2=-0.3, r1=3, r2=6, h=6 j1=1, j2=-0.3, r1=3, r2=6, h=0 j1=1, j2=-0.3, r1=3, r2=6, h=-6

Simulations Varying inactivation range r2: j1=1, j2=-0.3, r1=3, r2=6, h=-6 j1=1, j2=-0.3, r1=3, r2=12, h=-6 j1=1, j2=-0.3, r1=3, r2=18, h=-6

Using smaller J2: j1=1, j2=-0.01, r1=3.5, r2=6, h=0 j1=1, j2=-0.1, r1=3.5, r2=6, h=0

Discussion of Pattern Formation CA nice example of formation of patterns from local interactions fairly abstract compared to reaction diffusion DE (Turing instabilities) same scheme of local activation/global inhibition range of qualitatively different patterns from same dynamics Basis for simple models for formation of animal coat patterns such as spots on a leopard or stripes on a zebra role of boundary conditions: periodic, non-square lattice

CA Extensions, Generalizations, Applications Spatial structure: Higher dimensional lattice, triangular or hexagonal lattice Stochasticity: probabilistic component in the update rule History dependence: new state of cell may depend on states of neighbors several time steps back Introducing conservation laws Numerous applications in many fields of science: physics, biology, social sciences,...