Skip to content

This is a model plugin for Evoplex. It implements a few elementary cellular automaton rules.

Notifications You must be signed in to change notification settings

evoplex/model-cellularAutomata1D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cellular Automata 1D Model

What is it?

This is a model plugin for Evoplex and is included by default in the software.

It implements the 256 elementary cellular automaton rules.

How it works

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.

Parameters

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

Examples

The figures below were produced using this model in Evoplex.

Example
Rule 30: initial population with all cells off (blue) and one on-cell in the first row.

Example
Rule 110: random initial population.

Example
Rule 110: initial population with all cells off (blue) and one on-cell in the first row.

References

How to cite

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"
}

License

This plugin is licensed under the MIT License terms.

About

This is a model plugin for Evoplex. It implements a few elementary cellular automaton rules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 65.1%
  • CMake 34.9%