Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ one_dimensional.py
File
one_dimensional.py
cellular_automata/one_dimensional.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Return an image of 16 generations of one-dimensional cellular automata based on a given
3
ruleset number
4
https://mathworld.wolfram.com/ElementaryCellularAutomaton.html
Callers
nothing calls this directly
Calls
5
format_ruleset
Function · 0.85
generate_image
Function · 0.85
show
Method · 0.80
new_generation
Function · 0.70
append
Method · 0.45
Tested by
no test coverage detected