Think Complexity: Exploring Complexity Science in Python

Total Page:16

File Type:pdf, Size:1020Kb

Think Complexity: Exploring Complexity Science in Python Think Complexity Version 2.6.2 Think Complexity Version 2.6.2 Allen B. Downey Green Tea Press Needham, Massachusetts Copyright © 2016 Allen B. Downey. Green Tea Press 9 Washburn Ave Needham MA 02492 Permission is granted to copy, distribute, transmit and adapt this work under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: https://thinkcomplex.com/license. If you are interested in distributing a commercial version of this work, please contact the author. The LATEX source for this book is available from https://github.com/AllenDowney/ThinkComplexity2 iv Contents Preface xi 0.1 Who is this book for?...................... xii 0.2 Changes from the first edition................. xiii 0.3 Using the code.......................... xiii 1 Complexity Science1 1.1 The changing criteria of science................3 1.2 The axes of scientific models..................4 1.3 Different models for different purposes............6 1.4 Complexity engineering.....................7 1.5 Complexity thinking......................8 2 Graphs 11 2.1 What is a graph?........................ 11 2.2 NetworkX............................ 13 2.3 Random graphs......................... 16 2.4 Generating graphs........................ 17 2.5 Connected graphs........................ 18 2.6 Generating ER graphs..................... 20 2.7 Probability of connectivity................... 22 vi CONTENTS 2.8 Analysis of graph algorithms.................. 24 2.9 Exercises............................. 25 3 Small World Graphs 27 3.1 Stanley Milgram......................... 27 3.2 Watts and Strogatz....................... 28 3.3 Ring lattice........................... 30 3.4 WS graphs............................ 32 3.5 Clustering............................ 33 3.6 Shortest path lengths...................... 35 3.7 The WS experiment....................... 36 3.8 What kind of explanation is that?............... 38 3.9 Breadth-First Search...................... 39 3.10 Dijkstra's algorithm....................... 41 3.11 Exercises............................. 43 4 Scale-free networks 47 4.1 Social network data....................... 47 4.2 WS Model............................ 50 4.3 Degree.............................. 51 4.4 Heavy-tailed distributions................... 53 4.5 Barab´asi-Albert model..................... 55 4.6 Generating BA graphs..................... 57 4.7 Cumulative distributions.................... 59 4.8 Explanatory models....................... 62 4.9 Exercises............................. 63 CONTENTS vii 5 Cellular Automatons 67 5.1 A simple CA........................... 67 5.2 Wolfram's experiment...................... 68 5.3 Classifying CAs......................... 69 5.4 Randomness........................... 71 5.5 Determinism........................... 72 5.6 Spaceships............................ 73 5.7 Universality........................... 76 5.8 Falsifiability........................... 77 5.9 What is this a model of?.................... 78 5.10 Implementing CAs....................... 81 5.11 Cross-correlation........................ 82 5.12 CA tables............................ 85 5.13 Exercises............................. 86 6 Game of Life 89 6.1 Conway's GoL.......................... 89 6.2 Life patterns........................... 92 6.3 Conway's conjecture...................... 92 6.4 Realism............................. 94 6.5 Instrumentalism......................... 95 6.6 Implementing Life........................ 97 6.7 Exercises............................. 99 7 Physical modeling 103 7.1 Diffusion............................. 103 7.2 Reaction-diffusion........................ 105 viii CONTENTS 7.3 Percolation............................ 109 7.4 Phase change.......................... 110 7.5 Fractals............................. 113 7.6 Fractals and Percolation Models................ 115 7.7 Exercises............................. 116 8 Self-organized criticality 119 8.1 Critical Systems......................... 119 8.2 Sand Piles............................ 120 8.3 Implementing the Sand Pile.................. 121 8.4 Heavy-tailed distributions................... 125 8.5 Fractals............................. 127 8.6 Pink noise............................ 131 8.7 The sound of sand........................ 132 8.8 Reductionism and Holism................... 134 8.9 SOC, causation, and prediction................ 137 8.10 Exercises............................. 138 9 Agent-based models 141 9.1 Schelling's Model........................ 142 9.2 Implementation of Schelling's model.............. 143 9.3 Segregation........................... 145 9.4 Sugarscape............................ 147 9.5 Wealth inequality........................ 150 9.6 Implementing Sugarscape.................... 151 9.7 Migration and Wave Behavior................. 154 9.8 Emergence............................ 155 CONTENTS ix 9.9 Exercises............................. 157 10 Herds, Flocks, and Traffic Jams 159 10.1 Traffic jams........................... 159 10.2 Random perturbation...................... 163 10.3 Boids............................... 164 10.4 The Boid algorithm....................... 165 10.5 Arbitration........................... 168 10.6 Emergence and free will.................... 169 10.7 Exercises............................. 171 11 Evolution 173 11.1 Simulating evolution...................... 174 11.2 Fitness landscape........................ 175 11.3 Agents.............................. 176 11.4 Simulation............................ 177 11.5 No differentiation........................ 178 11.6 Evidence of evolution...................... 179 11.7 Differential survival....................... 182 11.8 Mutation............................. 183 11.9 Speciation............................ 186 11.10 Summary............................ 189 11.11 Exercises............................. 190 12 Evolution of cooperation 191 12.1 Prisoner's Dilemma....................... 192 12.2 The problem of nice....................... 193 x CONTENTS 12.3 Prisoner's dilemma tournaments................ 195 12.4 Simulating evolution of cooperation.............. 196 12.5 The Tournament........................ 198 12.6 The Simulation......................... 200 12.7 Results.............................. 202 12.8 Conclusions........................... 205 12.9 Exercises............................. 207 A Reading list 209 Preface Complexity science is an interdisciplinary field | at the intersection of math- ematics, computer science and natural science | that focuses on complex systems, which are systems with many interacting components. One of the core tools of complexity science is discrete models, including net- works and graphs, cellular automatons, and agent-based simulations. These tools are useful in the natural and social sciences, and sometimes in arts and humanities. For an overview of complexity science, see https://thinkcomplex.com/complex. Why should you learn about complexity science? Here are a few reasons: Complexity science is useful, especially for explaining why natural and social systems behave the way they do. Since Newton, math-based physics has focused on systems with small numbers of components and simple interactions. These models are effective for some applications, like celestial mechanics, and less useful for others, like economics. Com- plexity science provides a diverse and adaptable modeling toolkit. Many of the central results of complexity science are surprising; a recur- ring theme of this book is that simple models can produce complicated behavior, with the corollary that we can sometimes explain complicated behavior in the real world using simple models. As I explain in Chapter1, complexity science is at the center of a slow shift in the practice of science and a change in what we consider science to be. xii Chapter 0 Preface Studying complexity science provides an opportunity to learn about di- verse physical and social systems, to develop and apply programming skills, and to think about fundamental questions in the philosophy of science. By reading this book and working on the exercises you will have a chance to explore topics and ideas you might not encounter otherwise, practice program- ming in Python, and learn more about data structures and algorithms. Features of this book include: Technical details Most books about complexity science are written for a popular audience. They leave out technical details, which is frustrating for people who can handle them. This book presents the code, the math, and the explanations you need to understand how the models work. Further reading Throughout the book, I include pointers to further reading, including original papers (most of which are available electronically) and related articles from Wikipedia and other sources. Jupyter notebooks For each chapter I provide a Jupyter notebook that in- cludes the code from the chapter, additional examples, and animations that let you see the models in action. Exercises and solutions At the end of each chapter I suggest exercises you might want to work on, with solutions. For most of the links in this book I use URL redirection. This mechanism has the drawback of hiding the link destination, but it makes the URLs shorter and less obtrusive. Also, and more importantly, it allows me to update the links without updating the book. If you find a broken link, please let me know and I will change the redirection. 0.1 Who is this book for? The examples and supporting code for this book are in Python. You should know core Python and be familiar with
Recommended publications
  • A Quick Guide to Southeast Florida's Coral Reefs
    A Quick Guide to Southeast Florida’s Coral Reefs DAVID GILLIAM NATIONAL CORAL REEF INSTITUTE NOVA SOUTHEASTERN UNIVERSITY Spring 2013 Prepared by the Land-based Sources of Pollution Technical Advisory Committee (TAC) of the Southeast Florida Coral Reef Initiative (SEFCRI) BRIAN WALKER NATIONAL CORAL REEF INSTITUTE, NOVA SOUTHEASTERN Southeast Florida’s coral-rich communities are more valuable than UNIVERSITY the Spanish treasures that sank nearby. Like the lost treasures, these amazing reefs lie just a few hundred yards off the shores of Martin, Palm Beach, Broward and Miami-Dade Counties where more than one-third of Florida’s 19 million residents live. Fishing, diving, and boating help attract millions of visitors to southeast Florida each year (30 million in 2008/2009). Reef-related expen- ditures generate $5.7 billion annually in income and sales, and support more than 61,000 local jobs. Such immense recreational activity, coupled with the pressures of coastal development, inland agriculture, and robust cruise and commercial shipping industries, threaten the very survival of our reefs. With your help, reefs will be protected from local stresses and future generations will be able to enjoy their beauty and economic benefits. Coral reefs are highly diverse and productive, yet surprisingly fragile, ecosystems. They are built by living creatures that require clean, clear seawater to settle, mature and reproduce. Reefs provide safe havens for spectacular forms of marine life. Unfortunately, reefs are vulnerable to impacts on scales ranging from local and regional to global. Global threats to reefs have increased along with expanding ART SEITZ human populations and industrialization. Now, warming seawater temperatures and changing ocean chemistry from carbon dioxide emitted by the burning of fossil fuels and deforestation are also starting to imperil corals.
    [Show full text]
  • RML Algol 60 Compiler Accepts the Full ASCII Character Set Described in the Manual
    I I I · lL' I I 1UU, Alsol 60 CP/M 5yst.. I I , I I '/ I I , ALGOL 60 VERSION 4.8C REI.!AS!- NOTE I I I I CP/M Vers1on·2 I I When used with CP/M version 2 the Algol Ifste. will accept disk drive Dames extending from A: to P: I I I ASSEMBLY CODE ROUTINES I I .'n1~ program CODE.ALG and CODE.ASe 1s an aid to users who wish ·to add I their own code routines to the runtime system. The program' produc:es an I output file which contains a reconstruction of the INPUT, OUTPUT, IOC and I ERROR tables described in the manual. 1111s file forms the basis of an I assembly code program to which users may edit in their routines... Pat:ts I not required may be removed as desired. The resulting program should I then be assembled and overlaid onto the runtime system" using DDT, the I resulti;lg code being SAVEd as a new runtime system. It 1s important that. I the CODE program be run using the version of the runtimesY$tem to. which I the code routines are to be linked else the tables produced DUly, be·\, I incompatible. - I I I I Another example program supplied. 1. QSORT. the sortiDI pro~edure~, I described in the manual. I I I I I I I I I I , I I I -. I I 'It I I I I I I I I I I I ttKL Aleol 60 C'/M Systea I LONG INTEGER ALGOL Arun-L 1s a version of the RML zao Algol system 1nwh1c:h real variables are represented, DOt in the normal mantissalexponent form but rather as 32 .bit 2 s complement integers.
    [Show full text]
  • Workplace Learning Connection Annual Report 2019-20
    2019 – 2020 ANNUAL REPORT SERVING SCHOOLS, STUDENTS, EMPLOYERS, AND COMMUNITIES IN BENTON, CEDAR, IOWA, JOHNSON, JONES, LINN, AND WASHINGTON COUNTIES Connecting today’s students to tomorrow’s careers LINN COUNTY JONES COUNTY IOWA COUNTY CENTER REGIONAL CENTER REGIONAL CENTER 200 West St. 1770 Boyson Rd. 220 Welter Dr. Williamsburg, Iowa 52361 Hiawatha, Iowa 52233 Monticello, Iowa 52310 866-424-5669 319-398-1040 855-467-3800 KIRKWOOD REGIONAL CENTER WASHINGTON COUNTY AT THE UNIVERSITY OF IOWA REGIONAL CENTER 2301 Oakdale Blvd. 2192 Lexington Blvd. Coralville, Iowa 52241 Washington, Iowa 52353 319-887-3970 855-467-3900 BENTON COUNTY CENTER CEDAR COUNTY CENTER 111 W. 3rd St. 100 Alexander Dr., Suite 2 WORKPLACE LEARNING Vinton, Iowa 52349 Tipton, Iowa 52772 CONNECTION 866-424-5669 855-467-3900 2019 – 2020 AT A GLANCE Thank you to all our contributors, supporters, and volunteers! Workplace Learning Connection uses a diverse funding model that allows all partners to sustain their participation in an equitable manner. Whether a partners’ interest are student career development, future workforce development, or regional economic development, all funds provide age-appropriate career awareness and exploration services matching the mission of WLC and our partners. Funding the Connections… 2019 – 2020 Revenue Sources Kirkwood Community College (General Fund) $50,000 7% State and Federal Grants (Kirkwood: Perkins, WTED, IIG) $401,324 54% Grant Wood Area Education Agency $40,000 5% K through 12 School Districts Fees for Services $169,142 23% Contributions,
    [Show full text]
  • Coral 66 Language Reference Makrjal
    CORAL 66 LANGUAGE REFERENCE MAKRJAL The Centre for Computing History Nl www.CompuUngHistofy.ofg.uk \/ k > MICRO FOCUS CORAL 66 LANGUAGE REFERENCE MANUAL Version 3 Micro Focus Ltd. Issue 2 March 1982 Not to be copied without the consent of Micro Focus Ltd. This language definition reproduces material from the British Standard BS5905 which is hereby acknowledged as a source. / \ / N Micro Focus Ltd. 58,Acacia Rood, St. Johns Wbod, MICRO FOCUS London NW8 6AG Telephones: 017228843/4/5/6/7 Telex: 28536 MICROFG CX)PYRI(fflT 1981, 1982 by Micro Focus Ltd. ii CORAL 66 LANGUAGE REFERENCE MANUAL AMENDMENT RECORD AMENDMENT DATED INSERTED BY SIGNATURE DATE NUMBER iii PREFACE This manual defines the programming language CORAL 66 as implemented in Version 3 of the CORAL compilers known as RCC80 and RCC86. Now that British Standard BS5905 has become the main source for CORAL implementation its structure and style have been adopted. Con5)ared to previous version's of the RCC compilers. Version 3 incorporates 'TABLE' and 'OVERLAY', and allows additional forms of Real numbers in line with the British Standard. Coiiq}iler error reporting has been .modified slightly - in particular all error messages now have identifying numbers and are listed in appendices to the operating manuals. Micro Focus has now assumed direct responsibility for production of all RCC CORAL manuals and believes that this will offer users a better service than has been possible in the past. iv AUDIENCE This manual is intended as a description of CORAL 66 for reference and assumes familiarity with use of the language.
    [Show full text]
  • Conway's Game of Life
    Conway’s Game of Life Melissa Gymrek May 2010 Introduction The Game of Life is a cellular-automaton, zero player game, developed by John Conway in 1970. The game is played on an infinite grid of square cells, and its evolution is only determined by its initial state. The rules of the game are simple, and describe the evolution of the grid: ◮ Birth: a cell that is dead at time t will be alive at time t + 1 if exactly 3 of its eight neighbors were alive at time t. ◮ Death: a cell can die by: ◮ Overcrowding: if a cell is alive at time t +1 and 4 or more of its neighbors are also alive at time t, the cell will be dead at time t + 1. ◮ Exposure: If a live cell at time t has only 1 live neighbor or no live neighbors, it will be dead at time t + 1. ◮ Survival: a cell survives from time t to time t +1 if and only if 2 or 3 of its neighbors are alive at time t. Starting from the initial configuration, these rules are applied, and the game board evolves, playing the game by itself! This might seem like a rather boring game at first, but there are many remarkable facts about this game. Today we will see the types of “life-forms” we can create with this game, whether we can tell if a game of Life will go on infinitely, and see how a game of Life can be used to solve any computational problem a computer can solve.
    [Show full text]
  • Numerical Models Show Coral Reefs Can Be Self -Seeding
    MARINE ECOLOGY PROGRESS SERIES Vol. 74: 1-11, 1991 Published July 18 Mar. Ecol. Prog. Ser. Numerical models show coral reefs can be self -seeding ' Victorian Institute of Marine Sciences, 14 Parliament Place, Melbourne, Victoria 3002, Australia Australian Institute of Marine Science, PMB No. 3, Townsville MC, Queensland 4810, Australia ABSTRACT: Numerical models are used to simulate 3-dimensional circulation and dispersal of material, such as larvae of marine organisms, on Davies Reef in the central section of Australia's Great Barner Reef. Residence times on and around this reef are determined for well-mixed material and for material which resides at the surface, sea bed and at mid-depth. Results indcate order-of-magnitude differences in the residence times of material at different levels in the water column. They confirm prevlous 2- dimensional modelling which indicated that residence times are often comparable to the duration of the planktonic larval life of many coral reef species. Results reveal a potential for the ma~ntenanceof local populations of vaiious coral reef organisms by self-seeding, and allow reinterpretation of the connected- ness of the coral reef ecosystem. INTRODUCTION persal of particles on reefs. They can be summarised as follows. Hydrodynamic experiments of limited duration Circulation around the reefs is typified by a complex (Ludington 1981, Wolanski & Pickard 1983, Andrews et pattern of phase eddies (Black & Gay 1987a, 1990a). al. 1984) have suggested that flushing times on indi- These eddies and other components of the currents vidual reefs of Australia's Great Barrier Reef (GBR) are interact with the reef bathymetry to create a high level relatively short in comparison with the larval life of of horizontal mixing on and around the reefs (Black many different coral reef species (Yamaguchi 1973, 1988).
    [Show full text]
  • Coral Populations on Reef Slopes and Their Major Controls
    Vol. 7: 83-115. l982 MARINE ECOLOGY - PROGRESS SERIES Published January 1 Mar. Ecol. Prog. Ser. l l REVIE W Coral Populations on Reef Slopes and Their Major Controls C. R. C. Sheppard Australian Institute of Marine Science, P.M.B. No. 3, Townsville M.S.O.. Q. 4810, Australia ABSTRACT: Ecological studies of corals on reef slopes published in the last 10-15 y are reviewed. Emphasis is placed on controls of coral distributions. Reef slope structures are defined with particular reference to the role of corals in providing constructional framework. General coral distributions are synthesized from widespread reefs and are described in the order: shallowest, most exposed reef slopes; main region of hermatypic growth; deepest studies conducted by SCUBA or submersible, and cryptic habitats. Most research has concerned the area between the shallow and deep extremes. Favoured methods of study have involved cover, zonation and diversity, although inadequacies of these simple measurements have led to a few multivariate treatments of data. The importance of early life history strategies and their influence on succession and final community structure is emphasised. Control of coral distribution exerted by their dual nutrition requirements - particulate food and light - are the least understood despite being extensively studied Well studied controls include water movement, sedimentation and predation. All influence coral populations directly and by acting on competitors. Finally, controls on coral population structure by competitive processes between species, and between corals and other taxa are illustrated. Their importance to general reef ecology so far as currently is known, is described. INTRODUCTION ecological studies of reef corals beyond 50 m to as deep as 100 m.
    [Show full text]
  • Cellular Automata
    Cellular Automata Dr. Michael Lones Room EM.G31 [email protected] ⟐ Genetic programming ▹ Is about evolving computer programs ▹ Mostly conventional GP: tree, graph, linear ▹ Mostly conventional issues: memory, syntax ⟐ Developmental GP encodings ▹ Programs that build other things ▹ e.g. programs, structures ▹ Biologically-motivated process ▹ The developed programs are still “conventional” forwhile + 9 WRITE ✗ 2 3 1 i G0 G1 G2 G3 G4 ✔ ⟐ Conventional ⟐ Biological ▹ Centralised ▹ Distributed ▹ Top-down ▹ Bottom-up (emergent) ▹ Halting ▹ Ongoing ▹ Static ▹ Dynamical ▹ Exact ▹ Inexact ▹ Fragile ▹ Robust ▹ Synchronous ▹ Asynchronous ⟐ See Mitchell, “Biological Computation,” 2010 http://www.santafe.edu/media/workingpapers/10-09-021.pdf ⟐ What is a cellular automaton? ▹ A model of distributed computation • Of the sort seen in biology ▹ A demonstration of “emergence” • complex behaviour emerges from Stanislaw Ulam interactions between simple rules ▹ Developed by Ulam and von Neumann in the 1940s/50s ▹ Popularised by John Conway’s work on the ‘Game of Life’ in the 1970s ▹ Significant later work by Stephen Wolfram from the 1980s onwards John von Neumann ▹ Stephen Wolfram, A New Kind of Science, 2002 ▹ https://www.wolframscience.com/nksonline/toc.html ⟐ Computation takes place on a grid, which may have 1, 2 or more dimensions, e.g. a 2D CA: ⟐ At each grid location is a cell ▹ Which has a state ▹ In many cases this is binary: State = Off State = On ⟐ Each cell contains an automaton ▹ Which observes a neighbourhood around the cell ⟐ Each cell contains
    [Show full text]
  • Complexity Properties of the Cellular Automaton Game of Life
    Portland State University PDXScholar Dissertations and Theses Dissertations and Theses 11-14-1995 Complexity Properties of the Cellular Automaton Game of Life Andreas Rechtsteiner Portland State University Follow this and additional works at: https://pdxscholar.library.pdx.edu/open_access_etds Part of the Physics Commons Let us know how access to this document benefits ou.y Recommended Citation Rechtsteiner, Andreas, "Complexity Properties of the Cellular Automaton Game of Life" (1995). Dissertations and Theses. Paper 4928. https://doi.org/10.15760/etd.6804 This Thesis is brought to you for free and open access. It has been accepted for inclusion in Dissertations and Theses by an authorized administrator of PDXScholar. Please contact us if we can make this document more accessible: [email protected]. THESIS APPROVAL The abstract and thesis of Andreas Rechtsteiner for the Master of Science in Physics were presented November 14th, 1995, and accepted by the thesis committee and the department. COMMITTEE APPROVALS: 1i' I ) Erik Boaegom ec Representativi' of the Office of Graduate Studies DEPARTMENT APPROVAL: **************************************************************** ACCEPTED FOR PORTLAND STATE UNNERSITY BY THE LIBRARY by on /..-?~Lf!c-t:t-?~~ /99.s- Abstract An abstract of the thesis of Andreas Rechtsteiner for the Master of Science in Physics presented November 14, 1995. Title: Complexity Properties of the Cellular Automaton Game of Life The Game of life is probably the most famous cellular automaton. Life shows all the characteristics of Wolfram's complex Class N cellular automata: long-lived transients, static and propagating local structures, and the ability to support universal computation. We examine in this thesis questions about the geometry and criticality of Life.
    [Show full text]
  • The Fantastic Combinations of John Conway's New Solitaire Game "Life" - M
    Mathematical Games - The fantastic combinations of John Conway's new solitaire game "life" - M. Gardner - 1970 Suche Home Einstellungen Anmelden Hilfe MATHEMATICAL GAMES The fantastic combinations of John Conway's new solitaire game "life" by Martin Gardner Scientific American 223 (October 1970): 120-123. Most of the work of John Horton Conway, a mathematician at Gonville and Caius College of the University of Cambridge, has been in pure mathematics. For instance, in 1967 he discovered a new group-- some call it "Conway's constellation"--that includes all but two of the then known sporadic groups. (They are called "sporadic" because they fail to fit any classification scheme.) Is is a breakthrough that has had exciting repercussions in both group theory and number theory. It ties in closely with an earlier discovery by John Conway of an extremely dense packing of unit spheres in a space of 24 dimensions where each sphere touches 196,560 others. As Conway has remarked, "There is a lot of room up there." In addition to such serious work Conway also enjoys recreational mathematics. Although he is highly productive in this field, he seldom publishes his discoveries. One exception was his paper on "Mrs. Perkin's Quilt," a dissection problem discussed in "Mathematical Games" for September, 1966. My topic for July, 1967, was sprouts, a topological pencil-and-paper game invented by Conway and M. S. Paterson. Conway has been mentioned here several other times. This month we consider Conway's latest brainchild, a fantastic solitaire pastime he calls "life". Because of its analogies with the rise, fall and alternations of a society of living organisms, it belongs to a growing class of what are called "simulation games"--games that resemble real-life processes.
    [Show full text]
  • Symbiosis Promotes Fitness Improvements in the Game of Life
    Symbiosis Promotes Fitness Peter D. Turney* Ronin Institute Improvements in the [email protected] Game of Life Keywords Symbiosis, cooperation, open-ended evolution, Game of Life, Immigration Game, levels of selection Abstract We present a computational simulation of evolving entities that includes symbiosis with shifting levels of selection. Evolution by natural selection shifts from the level of the original entities to the level of the new symbiotic entity. In the simulation, the fitness of an entity is measured by a series of one-on-one competitions in the Immigration Game, a two-player variation of Conwayʼs Game of Life. Mutation, reproduction, and symbiosis are implemented as operations that are external to the Immigration Game. Because these operations are external to the game, we can freely manipulate the operations and observe the effects of the manipulations. The simulation is composed of four layers, each layer building on the previous layer. The first layer implements a simple form of asexual reproduction, the second layer introduces a more sophisticated form of asexual reproduction, the third layer adds sexual reproduction, and the fourth layer adds symbiosis. The experiments show that a small amount of symbiosis, added to the other layers, significantly increases the fitness of the population. We suggest that the model may provide new insights into symbiosis in biological and cultural evolution. 1 Introduction There are two main definitions of symbiosis in biology, (1) symbiosis as any association and (2) symbiosis as persistent mutualism [7]. The first definition allows any kind of persistent contact between different species of organisms to count as symbiosis, even if the contact is pathogenic or parasitic.
    [Show full text]
  • Logical Universality from a Minimal Two-Dimensional Glider Gun 3
    Logical Universality from a Minimal Two- Dimensional Glider Gun José Manuel Gómez Soto Department of Mathematics Autonomous University of Zacatecas Zacatecas, Zac. Mexico [email protected] http://matematicas.reduaz.mx/~jmgomez Andrew Wuensche Discrete Dynamics Lab [email protected] http://www.ddlab.org To understand the underlying principles of self-organization and com- putation in cellular automata, it would be helpful to find the simplest form of the essential ingredients, glider guns and eaters, because then the dynamics would be easier to interpret. Such minimal components emerge spontaneously in the newly discovered Sayab rule, a binary two- dimensional cellular automaton with a Moore neighborhood and isotropic dynamics. The Sayab rule’s glider gun, which has just four live cells at its minimal phases, can implement complex dynamical interac- tions and the gates required for logical universality. Keywords: universality; cellular automata; glider gun; logical gates 1. Introduction The study of two-dimensional (2D) cellular automata (CAs) with com- plex properties has progressed over time in a kind of regression from the complicated to the simple. Just to mention a few key moments in cellular automaton (CA) history, the original CA was von Neumann’s with 29 states designed to model self-reproduction, and by exten- sion—universality [1]. Codd simplified von Neumann’s CA to eight states [2], and Banks simplified it further to three and four states [3,�4]. In modeling self-reproduction it is also worth mentioning Lang- ton’s “Loops” [5] with eight states, which was simplified by Byl to six states [6]. These 2D CAs all featured the five-cell von Neumann neigh- borhood.
    [Show full text]