Cellular automata

From GenerativeArt

(Difference between revisions)
Jump to: navigation, search
(One Dimensional Cellular Automaton: clean up)
(Example of a Basic Cellular Automaton Rule and Rule Number)
==Example of a Basic Cellular Automaton Rule and Rule Number==
==Example of a Basic Cellular Automaton Rule and Rule Number==
-
'''Number of rules = number of possible states'''
+
For each possible state combination of a cell and its neighbors, a state for the next time step must be specified. The entire set of transitions is a rule set, and the base N number (where N is the number of states a cell can have) can be used as a rule number.
 +
 
 +
<blockquote>
 +
the number transitions in a rule set = K<sup>(2R+1)</sup> <br />
 +
 
 +
</blockquote>
 +
 
 +
In the most basic one dimensional cellular automaton:
* K = 2 (two binary states, 1 and 0).
* K = 2 (two binary states, 1 and 0).
-
* R = 1 (left right neighbors)
+
* R = 1 (on neighbor to the left, and one to the right, allowing for wrap around)
<blockquote>
<blockquote>
-
General case: K<sup>(2R+1)</sup> <br />
 
-
<br />
 
2<sup>((2 &times; 1) + 1)</sup>= 2<sup>3</sup> = 8
2<sup>((2 &times; 1) + 1)</sup>= 2<sup>3</sup> = 8
</blockquote>
</blockquote>
-
There are 8 states/rules in the typical example.
+
In the basic CA there are eight possible transitions. Note the rule set can be exhaustively listed by counting in binary using eight bits.
 +
 
 +
Here is an example of a rule set.
 +
 
{{SingleImage|imageWidthPlusTen=510|imageURL=http://www.viz.tamu.edu/courses/viza626/10Fall/cellAut1.gif|caption=}}<br />
{{SingleImage|imageWidthPlusTen=510|imageURL=http://www.viz.tamu.edu/courses/viza626/10Fall/cellAut1.gif|caption=}}<br />
-
The eight result bits are then used to name the rule set with a rule number
+
The eight result bits can be used to uniquely name the rule set with a rule number.
C<sub>i</sub>(T+1) = 00110101 = 53  
C<sub>i</sub>(T+1) = 00110101 = 53  
-
thus it is named "rule number 53"
+
thus the set of transitions shown above are called "rule number 53."
[[http://philipgalanter.com/howdy/applets/1dca/index.html Click here to run a one dimensional cellular automata applet.]]
[[http://philipgalanter.com/howdy/applets/1dca/index.html Click here to run a one dimensional cellular automata applet.]]

Revision as of 18:36, 27 February 2012

Personal tools