Neighbourhood: Difference between revisions
New page: Machines which perform useful work have a long history, but their operation usually has to be guided. When guidance was eventually mechanized as well, the result was called an automaton. I... |
No edit summary |
||
| Line 9: | Line 9: | ||
Transition rules admit many possibilities, usually being chosen for the intended application; certainly von Neumann carefully engineered his choices. 29 = 4 x 7 + 1; besides the quiescent state there are four directions in a plane lattice, with seven operations such as creating a new cell or erasing it for each. John Conway chose his Life rule with equal care, seeking a well balanced evolution. Symmetry constitutes a general criterion for rule selection; simply counting the occupancy of a neighborhood's symmetry class fulfills this requirement. Totalistic rules count all the cells of a given state in a neighborhood, semitotalistic rules set the reference cell apart. Golay surrounds, especially is a hexagonal lattice, make a finer distinction. | Transition rules admit many possibilities, usually being chosen for the intended application; certainly von Neumann carefully engineered his choices. 29 = 4 x 7 + 1; besides the quiescent state there are four directions in a plane lattice, with seven operations such as creating a new cell or erasing it for each. John Conway chose his Life rule with equal care, seeking a well balanced evolution. Symmetry constitutes a general criterion for rule selection; simply counting the occupancy of a neighborhood's symmetry class fulfills this requirement. Totalistic rules count all the cells of a given state in a neighborhood, semitotalistic rules set the reference cell apart. Golay surrounds, especially is a hexagonal lattice, make a finer distinction. | ||
Finally, there is the matter of neighborhoods. They could be quite capricious, but that is rarely contemplated. Distance from the reference cell is a natural choice; von Neumann chose nearest neighbors with respect to Cartesian coordinates, which means i-1, i, i+1 and j-1, j, j+1 for the site (i, j). If only one index is varied at a time, the result is the '''von Neumann neighborhood''' of whose five members one is central with four ringing it. Varying both indices independently results in the '''Moore neighborhood''' whose nine members split into a center surrounded by a ring of eight, which in turn contains four orthogonal neighbors and four diagonal neighbors. All three schemes retain the eightfold dihedral symmetry of the square lattice. | Finally, there is the matter of neighborhoods. They could be quite capricious, but that is rarely contemplated. Distance from the reference cell is a natural choice; von Neumann chose nearest neighbors with respect to Cartesian coordinates, which means i-1, i, i+1 and j-1, j, j+1 for the site (i, j). If only one index is varied at a time, the result is the '''von Neumann neighborhood''' of whose five members one is central with four ringing it. Varying both indices independently results in the '''Moore neighborhood''' whose nine members split into a center surrounded by a ring of eight, which in turn contains four orthogonal neighbors and four diagonal neighbors. All three schemes retain the eightfold dihedral symmetry of the square lattice. | ||
Even though the choice of ''first neighbors'' seems to be a sufficient and rational decision, related neighborhoods quickly make their appearance. Functional analysis employs a whole series of variants of the Pythagorean theorem, the Lp spaces, defining their respective circles; the von Neumann neighborhood could be an L1 circle of unit radius, the Moore neighborhood an Linfinity | |||
unit circle. Larger radii create characteristic discs. L2 is a natural reference topology, being the one which makes ordinary circles. | |||
Aside from explorations resulting from tinkering with the topology used to define a neighborhood, there is a natural hierarchy of neighborhoods resulting from iterating the rule of evolution; after all, the ability to do so was a motivation for creating the concept of a cellular automaton. To ascertain the result of two generations of evolution, it is necessary to go back one step to see how the first generation could have arisen. A second generation neighborhood is therefore the union of all the neighborhoods of cells in the first generation and so on backwards for the third and further generations. | |||
Revision as of 22:28, 20 October 2009
Machines which perform useful work have a long history, but their operation usually has to be guided. When guidance was eventually mechanized as well, the result was called an automaton. Irrespective of the physical form of the machine, its behavior could be summarized by calling portions of that behavior states and saying that changes in its mode of operation were accompanied by the emission and reception of signals. Altogether the result was a theory of automata, such as seen in Claude Shannon's analysis of the telephone switching system. When John von Neumann, thinking of such things as biological systems and automated factories, decided to use a mathematical model of construction and reproduction, he also decided to refer them to a two dimensional coordinate grid. Cells of the automaton were situated at integer coordinates, exchanging information with nearby cells. Thus the term cellular automaton came to mean a lattice of cells, each with a repertoire of states, uniformly connected with a neighborhood of other cells (possibly including itself), driven by signals which were simply the combined states of the cells within its neighborhood. External signals were neither recieved nor emitted. Dynamically, the states of the cells were updated at intervals according to a transition rule relating the new state of the cell to its old neighborhood; all updating was to be calculated simultaneously, and completed before altering any of the cells.
In summary, the four ingredients of a cellular automaton are: a lattice, some states, the neighborhood geometry, and a rule of evolution.
Although the states can be given names, the simplest choice is simply to state their number, and enumerate them. Binary automata with states (0, 1) are the simplest; Life calls them dead or inert, and live. It is possible to quibble whether a state which has never been alive should be called dead, but it is a convenient apellation. Von Neumann's automaton had 27 states, one of which was quiescent.
The selection of a lattice is rarely controversial; the square Cartesian grid, of any dimension, is quite common but the low dimensions are easiest to visualize. A planar hexagonal grid is sometimes convenient; there are several three dimensional lattices, but lattice types are quite restricted in higher dimensions.
Transition rules admit many possibilities, usually being chosen for the intended application; certainly von Neumann carefully engineered his choices. 29 = 4 x 7 + 1; besides the quiescent state there are four directions in a plane lattice, with seven operations such as creating a new cell or erasing it for each. John Conway chose his Life rule with equal care, seeking a well balanced evolution. Symmetry constitutes a general criterion for rule selection; simply counting the occupancy of a neighborhood's symmetry class fulfills this requirement. Totalistic rules count all the cells of a given state in a neighborhood, semitotalistic rules set the reference cell apart. Golay surrounds, especially is a hexagonal lattice, make a finer distinction.
Finally, there is the matter of neighborhoods. They could be quite capricious, but that is rarely contemplated. Distance from the reference cell is a natural choice; von Neumann chose nearest neighbors with respect to Cartesian coordinates, which means i-1, i, i+1 and j-1, j, j+1 for the site (i, j). If only one index is varied at a time, the result is the von Neumann neighborhood of whose five members one is central with four ringing it. Varying both indices independently results in the Moore neighborhood whose nine members split into a center surrounded by a ring of eight, which in turn contains four orthogonal neighbors and four diagonal neighbors. All three schemes retain the eightfold dihedral symmetry of the square lattice.
Even though the choice of first neighbors seems to be a sufficient and rational decision, related neighborhoods quickly make their appearance. Functional analysis employs a whole series of variants of the Pythagorean theorem, the Lp spaces, defining their respective circles; the von Neumann neighborhood could be an L1 circle of unit radius, the Moore neighborhood an Linfinity unit circle. Larger radii create characteristic discs. L2 is a natural reference topology, being the one which makes ordinary circles.
Aside from explorations resulting from tinkering with the topology used to define a neighborhood, there is a natural hierarchy of neighborhoods resulting from iterating the rule of evolution; after all, the ability to do so was a motivation for creating the concept of a cellular automaton. To ascertain the result of two generations of evolution, it is necessary to go back one step to see how the first generation could have arisen. A second generation neighborhood is therefore the union of all the neighborhoods of cells in the first generation and so on backwards for the third and further generations.