Everything2
Near Matches
Ignore Exact
Full Text
Everything2

one-dimensional cellular automaton

created by enth

(thing) by enth (1.9 d) (print)   ?   1 C! I like it! Wed Jan 02 2002 at 16:15:11

As with any cellular automaton, this variation is composed of a "universe" which contains the current information at any time t and the rules which specify how that information will be transformed at t + 1. Von Neumann and Conway both studied two-dimensional cellular automata, which have a universe composed of a two-dimensional field of bits (or integers, etc.). These are remarkable for the patterns they may generate in each frame, easily viewable as separate entities. Viewing the evolution of one over its entire history is problematic, however, as you can only look at the frames one or two at a time. One-dimensional cellular automata do not have this problem because their universe is a line of values, called sites. Hence, to display the evolution of this kind of automaton, you need only to look at a stack of these lines over time.

Rules may be examined in terms of k and r, where k is the number of possible states a site may take, and r is the distance in sites that are taken into consideration. Thus, a binary automaton that looks at itself and its two neighbors to decide its next state has k = 2 and r = 1.

The number of possible rules to use for computation with a given k and r are kk2r+1, a number that becomes huge for even small values of either. For the elementary k = 2 and r = 1 automatons, there are 256 possible rules by which the automaton can evolve. For example, one rule might be to take the XOR of the surrounding two values at t to decide a site's value at t + 1. This rule, viewed as a table, would look like:

Values at t:      111 110 101 100 011 010 001 000
                  --- --- --- --- --- --- --- ---
Value at t + 1:    0   1   0   1   1   0   1   0 

This brute-force way of expressing the rules is powerful because it can create rules that are not based on any mathematical formula (like XOR). In other words, a completely arbitrary rule can be expressed as a table in the above form, regardless of its derivation. This expression of rules is also great because it lends itself to enumerating the whole set of rules, so they can each be easily and uniquely identified. To get the "rule number" of any k = 2 and r = 1 one-dimensional cellular automaton, just convert the Value at t + 1: fields into a single integer, like 01011010 from above. Then, convert the integer to base 10, so the above is rule number 90 (010110102 = 9010).

As an example of why one-dimensional automata are interesting, here's a nice fractal that is generated from a seed value of a single site at t = 1, using rule 90 from above. It is the Sierpinski triangle, also known as the odd values of Pascal's triangle.

t = 1:                                *
                                     * *
                                    *   *
                                   * * * *
                                  *       *
                                 * *     * *
                                *   *   *   *
                               * * * * * * * *
                              *               *
t = 10:                      * *             * *
                            *   *           *   *
                           * * * *         * * * *
                          *       *       *       *
                         * *     * *     * *     * *
                        *   *   *   *   *   *   *   *
                       * * * * * * * * * * * * * * * *
                      *                               *
                     * *                             * *
                    *   *                           *   *
t = 20:            * * * *                         * * * *

And so forth, but my hands are getting tired.


I made a script to display rule 110 mentioned below as well as any others you might be curious about; try it at http://www.postreal.org/onedca .


(thing) by danila (2 y) (print)   ?   I like it! Tue Feb 10 2004 at 14:35:22

There is a better reason why one-dimensional automata are interesting than the Sierpinski triangle and the Rule-90 (90 is the decimal representation of 01011010) responsible for its creation. This reason is the Rule-110 (01101110). In the 1990's Matthew Cook, a research assistant of Stephen Wolfram proved that Rule-110 is (drumroll, please!) Turing-complete. That's right, folks, these eight extremely simple rules, combined with an infinite one-dimensional strip, form a universal Turing machine, capable of answering any answerable question and simulating the whole Universe, including every one of us with arbitrary precision, given the right input.

Before Rule-110 was found, the simpliest universal Turing machine required not 8, but 28 rules. It is possible, though, that an even simplier machine with 6 rules is possible.

Now behold the beauty, greatness and simplicity of the Rule-110.

Values at t:      111 110 101 100 011 010 001 000
                  --- --- --- --- --- --- --- ---
Value at t + 1:    0   1   1   0   1   1   1   0 

t = 1:                                         *
                                              **
                                             ***
                                            ** *
                                           *****
                                          **   *
                                         ***  **
                                        ** * ***
                                       ******* *
t = 10:                               **     ***
                                     ***    ** *
                                    ** *   *****
                                   *****  **   *
                                  **   * ***  **
                                 ***  **** * ***
                                ** * **  ***** *
                               ******** **   ***
                              **      ****  ** *
                             ***     **  * *****
t = 20:                     ** *    *** ****   *
                           *****   ** ***  *  **
                          **   *  ***** * ** ***
                         ***  ** **   ******** *
                        ** * ******  **      ***
                       *******    * ***     ** *
                      **     *   **** *    *****
                     ***    **  **  ***   **   *
                    ** *   *** *** ** *  ***  **
                   *****  ** *** ****** ** * ***
t = 30:           **   * ***** ***    ******** *
                 ***  ****   *** *   **      ***
                ** * **  *  ** ***  ***     ** *
               ******** ** ***** * ** *    *****
              **      ******   ********   **   *
             ***     **    *  **      *  ***  **
            ** *    ***   ** ***     ** ** * ***
           *****   ** *  ***** *    ********** *
          **   *  ***** **   ***   **        ***
         ***  ** **   ****  ** *  ***       ** *
t = 40: ** * ******  **  * ***** ** *      *****

I can go on an on, but if you really want to see a lot of generations, like a few billions, get Mathematica and try it yourself with different inputs.

Further watching: a MIT lecture by Stephen Wolfram, available for download at http://mitworld.mit.edu/video/149/ (fast forward to 46th minute for the discussion of Rule-110)


printable version
chaos

Similarities between cellular automata and the universe cellular automaton Rule 30 Sierpinski triangle
Stephen Wolfram vs. Charles Darwin on natural selection Wolfram's classes of cellular automata Prime number language Pascal's Triangle
John von Neumann Stephen Wolfram deterministic finite automaton There exists no 1:1 mapping between words in different languages
A simple cellular automaton XOR Combinatorics knitting
kiddush angiogenesis Game of Life Your radical ideas about philosophy have already occurred to others
Mathematica CDMA fractal gasket Cybernetic theory and homeostasis
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help


cooled by Gritchka

Cool Staff Picks
The best nodes of all time:
Cathedral of St. John the Divine
M. Butterfly
My meeting with Laetitia Casta
Send me the pillow, the one that you dream on
The Wild Ass and the Lion
Chicago Fire Department
bed bug
The Everything2 Podcast
Willow pattern
Everything as a literary composition
Nate on the Voting/Experience System
Bahá'í
London's calling, and it's calling you gay
New Writeups
locke baron
Tyan Thunder K8WE(thing)
locke baron
Udaloy class destroyer(thing)
Scaevola
Same-sex marriage(idea)
SteveMurrayFromNZ
British Standard Handful(idea)
nailbiter
nerve stapling(thing)
locke baron
Multiple Myeloma(thing)
SubSane
blonde, freckles, skinny, short(person)
arcanamundi
A Ruba'iyat for May(person)
riverrun
Timed Writing(idea)
auraseer
Fling(fiction)
StrawberryFrog
Iron Man(review)
devolution
Misogyny and Porn, East to West - An Empirical Analysis(idea)
devolution
Korea is a place that refuses to stand still(idea)
Beanie127
The Pacifist Soldier(fiction)
VergilKint
Distilled from Dreams(fiction)
This page courtesy of The Everything Development Company