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
1
vote
1 answer

Graphics implementation of cellular automaton in C#?

In my latest project i should implement cellular automaton in C#. I want help about how to create the image of array of cells and display present state and then display the whole of next state after a tick. I am also new to C#. How should I…
1
vote
1 answer

Determine the Lucky PP (possible position) for each exit Netlgo evacuation simulation

This problem occurred to me, the passengers move but do not go towards the exit in a smart way and remain in the centre moving around, they also move out of the edge of the room. How can I solve it? I need to do this thing: If a cell is a PP…
accismns
  • 37
  • 5
1
vote
1 answer

Error: "expected command in 'choose-exit'" evacuation simulation

I'm getting an error message saying expected command in 'choose-exit' and the issue seems to be in the line "choose-exit patch-here" within the "initialize-passengers" procedure. I've checked the code and everything seems correct, so I'm not sure…
accismns
  • 37
  • 5
1
vote
1 answer

Creating a grid of cells in SFML

Using C++, I wanted to create my first C++ graphical programs by learning the SFML library through creating a Conway's Game of Life implementation. My general thought process is by first creating a simple grid of cells that have the following data…
Cr3 D
  • 153
  • 6
1
vote
0 answers

simulating diffusion with cellular automata

I am trying to implement some kind of artificial life simulation with cells propagating molecule concentration between them using an 2d cellular automata. problem is that I cannot figure out an algorithm for these diffusion processes. I first…
codymanix
  • 28,510
  • 21
  • 92
  • 151
1
vote
0 answers

Earthen Dam Failure Cellular Automata Simulation Using Python

i am working on a cellular automaton to simulate in 2D an earthen dam failure using python, the simulation is supposed to show step by step the process by setting 1. the cellular state. 2. defining a neighbour using von Neumann as the standard…
1
vote
1 answer

Why does my elementary cellular automata not display the right image given a certain rule-set?

I have recently made a simple elementary cellular automata visualisation using the built in C console, a cell that is alive is a @ and one that is dead is a space but for some reason it displays some random output to the console no matter which…
Saw
  • 115
  • 1
  • 16
1
vote
0 answers

Matplotlib animation.ArtistAnimation.save is losing cmap colors as I increase the dpi

I am currently trying to save a series of np arrays as a gif using the matplotlib animation.ArtistAnimation.save. cMap = colors.ListedColormap([black, cyan, magenta, yellow, blue, green, red]) gal = [] gallery = [] fig =…
Theophilis
  • 11
  • 1
1
vote
0 answers

C# - Cellular Automata with colors/teams

Im struggling to solve an open problem, namely, when building a cellular automata like Conways GOL, how would one go about implementing teams? Instead of just one Automata, I want two or three competing over the cells that are available. The real…
eriks jud
  • 73
  • 6
1
vote
2 answers

Brainfuck interpreter using cellular automata

Does anyone have a set of cellular automata rules for a brainfuck interpreter? I assume it would it be similar to implementations of a universal turing machine. Those exist on wolfram site but I don't know how to tweak them for a BF system.
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
1
vote
1 answer

How should I define a mesh shape so that I can select each face as its own object in c++?

I would like to create a 3-D shape that is defined on some mesh such that the shape can be defined in a Conway Polyhedron Notation and so that I can interact with each face as its own object. The goal of this project is to take a 3-D shape of some…
1
vote
0 answers

Procedurally Generating a Map

I've been trying to procedurally generate a planet for the game I'm making in Javascript. It generated a random noise grid and then iterates through it using cellular automata rules. This takes longer than 30 seconds for worlds larger than…
1
vote
0 answers

Speeding up Plotting for a Cellular Automaton

I am implementing the Biham-Middleton-Levine Traffic Model for testing and have encountered an issue with the speed of my implementation. import matplotlib.pyplot as plt from matplotlib import colors import numpy as np import random data =…
1
vote
0 answers

How can I apply calculations to each pixel in a texture with a compute shader?

I'm making a cellular automata based sand simulation in unity, and the way I'm doing it right now (looping through every pixel in the texture, checking it's color, and depending on that color I check what pixels are below and to the side of it, then…
1
vote
2 answers

Why using Cellular Automata with 2d array gives bad results?

I'm trying to make a procedurally generated map/2d_array using Cellular Automata. I found a good video explaining Cellular automata and followed it. Video link: https://www.youtube.com/watch?v=slTEz6555Ts But for some reason I only get a fully…
Au Gus Tas
  • 23
  • 5