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

New to C++, "EXC_BAD_ACCESS" error I don't understand

I am attempting to translate a 2 dimensional cellular automata from Processing to openFrameworks (C++). I have written classes for the cells and for the game of life functionality. The application builds successfully but crashes immediately with the…
mr. knott
  • 61
  • 2
  • 6
0
votes
1 answer

How to start with cellular automata

I have to start working on cellular automaton so can anyone please share the link which may help a beginner to learn the basics.
harry4
  • 189
  • 1
  • 4
  • 16
0
votes
1 answer

Udacity CS101: Elementary Cellular Automaton in Python

Can anyone tell me what the issue with my code is (the line with "num" it seems). I'm getting string index out of range, but in an almost identical chunk of code it seems to work. If there's some code I can look at in python I'd love to see links…
RHH
  • 553
  • 3
  • 10
  • 21
0
votes
0 answers

Rule 30 Cellular Automata 3 colors in Mathematica

May I ask you if I can use the CA rule 30 with 3 colors in Mathematica? Regards, Daniele
-1
votes
2 answers

Simulate Cellular Automata with a four Dimensional Table in Mathematica

In the book Modelling Cellular automata Simulations with mathematica , the author is using the following code to simulate cellular automata in a two dimensional lattice, From the Moore Neighbourhood the update rule is update[site, N, E, S, W, NE,…
noni
  • 67
  • 1
  • 9
-1
votes
1 answer

converting matrix data to array, js, odd behevaior

I'm trying to translate an iteration over two arrays into one that's 4 times the size of the combined arrays, to make an image, example input => [[1][0]] expected output=> [[255][255][255][255][0][0][0][255]] the ((height*width+index)*4) (i have…
altruios
  • 986
  • 1
  • 10
  • 29
-1
votes
1 answer

Predicting Cellular Automata

I am attempting to complete an assignment for an AI course however I cannot understand a question. Unfortunately, I cannot find any information on the internet that clearly explains how to predict the next generation in a CA. I have posted a link to…
310094933
  • 59
  • 1
  • 5
-1
votes
2 answers

List index out of range when it should be in range

I have this program trying to add up the number of grid spaces around it of a certain value, and it keep giving the error "IndexError: list out of range". I've tried setting it to start on column and row late and end one column and row early to the…
-1
votes
1 answer

Is there a Python method for creating a custom convolution?

I'm trying to create an efficient implementation of a totalistic cellular automaton with three possible colors for each cell as in this image from Stephen Wolfram's book, A New Kind of Science: If I have a numpy array, can I create a new numpy…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
-1
votes
1 answer

Evaluation of arithmetic expressions with a cellular automaton

Stephen Wolfram talked about this thing called cellular automaton. The idea was building what are seemingly complex systems from simple rules and starting configurations. Some examples such as Milton Bradley's game of life are demonstrated in this…
-1
votes
2 answers

Numpy Array object converting to List object in function?

I'm attempting to create a one-dimensional cellular automata. For a given rule (between 1 and 255), the number is converted into the corresponding 8-digit binary number and paired to all 8 possible combinations of 0's and 1's. The code seems to…
apappy
  • 1
  • 1
-1
votes
2 answers

For loop that evaluates all values at once?

So i have a cellular automaton, where i can place pixels on an image and they just move down one pixel each "tick". Now the problem is since the for loop is like this: for(int x = 0; x < 100; x++){ for(int y = 0; y < 100; y++){ //Check if…
Luka Kostic
  • 314
  • 3
  • 12
-1
votes
1 answer

how can I count number of cells alive in John Conway's Game of Life using a Boolean multidimensional array,If statements and global int?

I am making John Conway's Game of Life and I have been using 2 Boolean 2D array's in my game along with If statements to determine what the next move for how the cells in my game should replicate based on the current move and number of neighbors for…
-1
votes
1 answer

What's wrong with my (Conway's Game Of) life?

I tried to write an OOP implementation of Conway's Game of Life in processing. However, it seems to be some other sort of automaton. Interesting, but not what I was going for. I can't find any problems with my code, that's what I'm hoping you can…
domojz
  • 13
  • 6
-1
votes
1 answer

How to calculate lambda parameter for Game of Life?

Game of Life is an interesting Cellular Automata and I read at many places it has lambda of 0.273 roughly. Kindly help by answering how we actually calculate this value for game of life.
Zubair J.
  • 37
  • 4
1 2 3
14
15