Questions tagged [cellular-automata]

A cellular automaton is a discrete model studied in computability theory.

By wikipedia,

A cellular automaton is a discrete model studied in computability theory, mathematics, physics, complexity science, theoretical biology and microstructure modeling.

A cellular automaton consists of a regular grid of cells, each in one of a finite number of states, such as on and off (in contrast to a coupled map lattice)

225 questions
0
votes
1 answer

How can I iterate over a function

I'm simulating forest-fire, and one of my tasks is to plot the density of trees vs those currently burning and empty plots. I have the disparate parts, however I need assistance in putting them together as I can't work out how to put my code…
tho
  • 1
0
votes
0 answers

Why does my falling sand simulator have weird behaviour?

I've been spending the last two days trying to figure out why my falling sand simulation does weird things it obviously shouldn't. I have moved from 2D Arrays to HashSets and finally to ConcurrentSkipListMap, with my own Point class as keys, and…
0
votes
0 answers

Swapping multidimensional arrays in C

I'm doing a code for Elementary Cellular Automata and trying to get it more efficient. One of my goals is to combine it with the Game of Life Cellular Automata in the same array, computing one half values by the Elementary Wolfram rules, and the…
nb0me
  • 39
  • 4
0
votes
1 answer

Errant segments in cellular automata encryption algorithm

I've been implementing a paper that is targeting IoT encryption using a 64-bit block cipher via elementary cellular automata. The paper is in the repository/linked in the README. I am trying to verify that an implementation of this algorithm…
0
votes
0 answers

Finding second-order cellular automaton

I've been generating cellular automaton with the following Python code. I'm trying to find reversible second-order automata for the second phase of the project but am having trouble understanding the core concept. Would I map the time steps of the…
0
votes
0 answers

Map generation by Cellular Automata not working

I have been developing a tile game and I implemented Cellular Automata for Random Map generation but it seems to not work properly. The steps using which I generate a Map are as follows: *First I generate noise in my Map using the following…
0
votes
1 answer

Cellular Automata returns all 0s [PYTHON]

I have written a program (see below) as an implementation of cellular automata in python. When I run the program, I receive a pattern of random seeded noise and the new pattern that has been run through the program. The "." are zeros and the "#" is…
4rmy
  • 9
  • 2
0
votes
0 answers

Implementing a Laplacian in a Reaction Diffusion Simulation

I'm trying to implement a Reaction Diffusion Simulation by following this article: https://www.karlsims.com/rd.html. Where I'm running into trouble is the implementation of the 2D Laplacian function mentioned in this diagram: The article later…
0
votes
1 answer

Graphics behaving oddly with zelle graphics library for cellular automata

Image: graphical display vs intended outcome I am getting the expected outcome in the console, however when I try to convert it to a graphical form, the tiles are not being displayed in the correct location. I tried adjusting the tile offset and…
0
votes
1 answer

A cellular automata code to simulate the spread of an epidemic

I'm only beggining at python so sorry if my question seems simple. I want to simulate the spread of an epidemic using cellular autamata. Here's my code : import matplotlib.colors import numpy as np import matplotlib.pyplot as plt from matplotlib…
0
votes
2 answers

How can I annotate a cell grid in matplotlib?

first, I'm sorry if my question seems really simple, but I am a python beginner. I've been writing for a while this code modeling the spread of an epidemic using cellular automata. The code is the following : import matplotlib.colors import numpy as…
0
votes
1 answer

Conway's Game of Life in Python generates random long lines in what should be dead zones

Decided to try my hand at implementing Conway's Game of Life in Python. Wasn't going for a particularly efficient implementation or anything, just wanted something that works. My board is a 2 dimensional list, each cell has a 1 or 0 to denote…
0
votes
1 answer

Python - numpy arrays - Abelian sandpile

I'm trying to do the Abelian sandpile model using a simple numpy array. When a 'pile' is 4 >=, then it collapse among its neighbors. I understand how the "gravity" thing works, but I can't think of a way of making it. Here's the code to make my…
Lulzsec
  • 281
  • 2
  • 11
0
votes
2 answers

std::vector VS std::string, which one is faster?

I've been messing around with cellular-automata for a while now, and the way I chose to implement them is by creating a 2D vector of cells, where each cell was initially a vector of integers itself (because I want each cell to store more than one…
The Riser
  • 309
  • 2
  • 4
  • 12
0
votes
1 answer

Stablized cellular automation

I'm working on cellular automation simulation. Rule are the following: Each cell interacts with its Moore's neighborhood to update its value. The cell is in any infinite-dimensional grid. The cell may have a randomized initial value. Rules are…
user14610738