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

OnPaint called only once in C#

I'd like to make a Cellular Automaton in C#. This is a fairly easy task, which I almost have no problem with. However I'm getting an awful performance by just drawing rectangles of size one in Windows Forms Application, so my question is: How to…
huB1erTi2
  • 23
  • 5
0
votes
0 answers

Why is There a Drastic Difference in Speed Between These Two Cellular Automata Algorithms?

I have a question about two cellular automata algorithms I've written in D. I wrote this one first and was pretty disappointed with the speed. With a size of sizex=64 sizey=27 and an initial random fill of 40% running through takes a noticeable…
Grawprog
  • 1
  • 1
0
votes
1 answer

Tips for speeding up my Python/Cython code

I have written a Python program and Cythonize it. The speed-up gained by Cython (30%) wasn't satisfying. There is definitely room to optimise it by either changing the code structure or the way it is Cythonized. The program is basically takes a…
Behzad Jamali
  • 884
  • 2
  • 10
  • 23
0
votes
1 answer

Cellular automaton with more then 2 states(more than just alive or dead)

I am making a roguelike where the setting is open world on a procedurally generated planet. I want the distribution of each biome to be organic. There are 5 different biomes. Is there a way to organically distribute them without a huge complicated…
Zard
  • 115
  • 6
0
votes
1 answer

Cellular Automata in java

Can anyone help me ? Our teacher gave us a task it is about "game of life", he actually gave us the methods that we can use, but i really dont know how to start ! he asked us to use 3 classes: class cellule,class ruleand class Automata(and the main…
s.happy
  • 11
  • 5
0
votes
1 answer

How to improve the performance of Cellular Automata

I've made a simple terrain generator, but it takes an excessive amount of time to generate anything bigger than 50x50. Is there anything I can do to optimise the code so that I can generate larger things? I know that things such as pygame or numpy…
Mrchooch
  • 171
  • 1
  • 1
  • 9
0
votes
1 answer

Concurrent Cellular Automata actors moving

I have a two-dimensional cellular automata. In some cells there may be an actor (agent). Each actor is a thread. I need to move actor based on the 9 cells around the actor's cell. I want to do this concurrently so the actor in a cell (4,5) can use…
michalk93
  • 189
  • 2
  • 10
0
votes
3 answers

Cellular Automata Checking Neighbors

I have a pretty simple problem but I cant seem to figure it out. I believe it is a logic error having to do with the checking of neighbors in cellular automata. Here is my code that runs once a second for growing and checking neighbors: public void…
user6350970
0
votes
1 answer

Python Printing Alternative

I'm using Python in Jupyter to write Cellular Automata, and in the end I'm basically plotting a huge (such as 100*100) array/list. The problem is that the array can't be plotted as a square in Jupyter since each row is splitted due to the large size…
Leo
  • 53
  • 1
  • 5
0
votes
1 answer

Cellular automata - what to do on boundary cell?

I'm trying to implement a cellular automata simulating wave behaviour. I'm using Von Neumann neighbourhood with r=2 like here My question is: How should I count state of the cell on the boundary? For example: I'm having an array a, and I want to…
Nevaan
  • 129
  • 2
  • 11
0
votes
2 answers

Procedural Level Generation With Cellular Automaton In Swift

Is there a easy way to create a procedural level with a cellular automaton in swift/SpriteKit(library?)? I want to create a 'cave' with 11 fields in the height and 22 width. These should be randomly created and every field without a wall should be…
Lukas Köhl
  • 1,569
  • 2
  • 15
  • 28
0
votes
2 answers

Making a 2D Array in UnityScript by making an array of arrays

So I'm working in Unity 3D with UnityScript trying to make a cave generator using cellular-automata. Here is my problem, I've created two variables, width and height, and they need to be the size of my 2D array. I've also created a function to…
0
votes
1 answer

Scilab code giving submatrix incorrectly defined error

I am trying to plot a 3D graph between 2 scalars and one matrix for each of its entries. On compiling it is giving me "Submatrix incorrectly defined" error on line 11. The code: i_max= 3; u = zeros(4,5); a1 = 1; a2 = 1; a3 = 1; b1 = 1; hx =…
deba123
  • 15
  • 5
0
votes
2 answers

What is the difference between an Alphabet and an element of a set?

What is the difference between an Alphabet and an element of a set? Whether Alphabet is an element of a set or it is a set itself?
0
votes
1 answer

Program written in Processing doesn't do anything but has no errors

For my first project using classes I decided to write "The game of Life". I made a class called cell and its work is to check the nearby cells whether they are alive(variable state is true) and than decide whether the cell will be alive next frame…
user4676310
  • 383
  • 1
  • 3
  • 12