This is a model plugin for Evoplex and is included by default in the software.
It implements the 256 elementary cellular automaton rules.
The model runs in a lattice grid, i.e., it uses the squareGrid
graph generator.
Each cell (node in the graph) can be in one of two possible states: on or off.
Starting from the first row in the graph, at each time step:
- based on the selected rule, compute the next state for each cell in the current row;
- assign the new states to the row below.
rule
:
An integer between 0 and 255. Its 8-bit binary representation will indicate the transition rule.
For example, for rule 110:
(110)10 = (01101110)2
pattern | 111 | 110 | 101 | 100 | 011 | 010 | 001 | 000 |
---|---|---|---|---|---|---|---|---|
state | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
The figures below were produced using this model in Evoplex.
Rule 30: initial population with all cells off (blue) and one on-cell in the first row.
Rule 110: random initial population.
Rule 110: initial population with all cells off (blue) and one on-cell in the first row.
- [1] Weisstein, Eric W. "Elementary Cellular Automaton." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
- [2] Weisstein, Eric W. "Rule 30." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Rule30.html
- [3] Weisstein, Eric W. "Rule 110." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Rule110.html
If you mention this model or the Evoplex software in a publication, please cite it as:
Cardinot, M., O’Riordan, C., Griffith, J., & Perc, M. (2019). Evoplex: A platform for agent-based modeling on networks. SoftwareX, 9, 199-204. https://doi.org/10.1016/j.softx.2019.02.009
@article{Evoplex,
author = "Marcos Cardinot and Colm O’Riordan and Josephine Griffith and Matjaž Perc",
title = "Evoplex: A platform for agent-based modeling on networks",
journal = "SoftwareX",
volume = "9",
pages = "199 - 204",
year = "2019",
issn = "2352-7110",
doi = "10.1016/j.softx.2019.02.009",
url = "http://www.sciencedirect.com/science/article/pii/S2352711018302437"
}
This plugin is licensed under the MIT License terms.