A Toolkit for Programming Cellular Automata
The structure of a CA is extremely simple when written in the Mathematica programming language: a matrix is set up, a function (CA rule) is defined, and the function is repeatedly applied to the matrix. In this chapter we will lay the foundations for the CA programming in the chapters that follow. We first give both a physical and a computational definition of a cellular automaton. Then we discuss the operation of code fragments that repeatedly appear in CA programs throughout the book. Reading the programs in the book with an understanding of how these code fragments work will allow you to focus on the principal programming task in writing a CA program in Mathematica—defining the CA rules.
KeywordsLattice Site Cellular Automaton Left Border Cellular Automaton Model Mobile Object
Unable to display preview. Download preview PDF.