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
2 answers

Cellular automaton doesn't make new cells

I'm trying to make a program that is able to create every kind of cellular automatons, such as Conway's game of life and everything else too. The graphic implementation works perfectly already, so I wouldn't waste your time with that (especially…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Graphics2D: null pointer exception when setting color

import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.Console; import java.util.Scanner; import javax.swing.JComponent; import…
Encinaar
  • 149
  • 3
  • 12
1
vote
1 answer

game of life cellular automata using c++ vectors in openframeworks

I am building a game of life CA in C++ (openFrameworks). As I am new to C++ I was wondering if someone could let me know if I am setting up the vectors correctly in the following code. the CA does not draw to the screen and I am not sure if this is…
mr. knott
  • 61
  • 2
  • 6
1
vote
2 answers

Local, low-volume message passing for massively distributed cellular automata

I'm working on developing a simulation using massively distributed cellular automata. Cell simulations are distributed across nodes and coordinated using ZooKeeper. Persistent data is stored in Riak. The cellular automata themselves are written in…
1
vote
1 answer

2D Cellular Automata for tile based water

I have been trying to implement 2D tile based water into my game. I started out making the tiles appear on screen etc. I have a drawing function that draws each tile type. The problem I'm having is that when I call this function the Tiles that are…
Yasin Khalil
  • 59
  • 1
  • 7
1
vote
1 answer

Create a new Cellular Automata rule in Mathematica

I need to create a new CA RULE in Mathematica. How can I do? I mean, I need to create a CA with 3 colors (Black, White and Grey). May you help me?
1
vote
1 answer

Hydrodynamics on cellular automata (FHP, etc)

I am looking for CA-based fluid dynamics software like this Implementation of FHP model in Nvidia CUDA technology, but still no luck. I want to "play" with those simulations myself and at least read some related papers. It is even better, if…
Mixo123
  • 71
  • 1
  • 8
0
votes
3 answers

Speeding up a Cellular Automata

Is it possible, with some sort of algorithm or something like that, to speed up a cellular automata? I'm using a Conway's Game of Life implementation made in XNA and it works perfectly, but the problem is that when I use a grid larger than 128x128…
federico-t
  • 12,014
  • 19
  • 67
  • 111
0
votes
0 answers

Analyzing the Probability of Passenger Exit Preference in Emergency Evacuations

I'm working on an evacuation project where I'm assessing the likelihood of a passenger selecting one exit over another based on the proximity of people in the exit area. However, I'm encountering an issue where the sum of the two probabilities…
accismns
  • 37
  • 5
0
votes
0 answers

Style Transfer Neural Cellular Automata Error

Currently I'm working with NCA's, and I ran into the notebook authored by Magnus Petersen. However, I get custom error message that I'm not able to solve. In the first cell of the training loop, I get the following error: "RuntimeError: A view was…
0
votes
2 answers

Error: Expected a Literal Value When Accessing Patch Coordinates in a List

I'm writing a NetLogo code to simulate the movement of passengers in an room. I have defined a list of exits exits-list as a list of patches, and I'm trying to access the x and y coordinates of each patch in exits-list to calculate the distance…
accismns
  • 37
  • 5
0
votes
0 answers

Color coding for Cellular Automation Model in R doesn't work properly

I am trying to write a basic Cellular Automation Model to model social contamination. The code itself seems to work fine and so does the plotting of images. For any x and any y the values in [x,y,3] will either be "0", "0.5", "0.75" or "1". Using…
Kcx53
  • 1
  • 1
0
votes
1 answer

numpy vectorization of cellular automata

Trying to optimize my current implementation of a program that generates cellular automata using Wolfram Numbering. I am having trouble applying the rule to the board after calculating the neighbors for each cell. The current example uses 2 states…
0
votes
1 answer

Why does my Neural Cellular automaton not draw grphics properly

I am attempting to recreate the neural cellular automaton shown in this video using openGL and c. I am using a simple Game of Life demo shown in minute 7:08 of the video to check if my code works (the filter and and the activation function are also…
0
votes
0 answers

How to plot a graph to find cumulative daily new infected population from the following code?

This is about using cellular automata model to simulate the suspectible, infection, recovery population. I tried to plot a graph in jupyter notebook to find the daily infected population and recovery population across time. However, the code does…