What algorithm can be implemented to speed up the simulation of cellular automata?

I am writing a ncurses CA-based simulator for (almost) any type of CA that uses Moore or Neumann neighborhoods.

With the current (hard-coded and most obvious [current state of state]) simulation works very well; until the screen is filled with 'on' cells (or any active ones).

So my question is: Are there effective algorithms for processing at least the rules of life? or generations, balanced life / generations ...

Thanks.

+3
source share
3 answers

, . " ?" "on" .

+3

You can study the HashLife algorithm and try to adapt its concept to the authors you are working on.

+1
source

Source: https://habr.com/ru/post/1721146/


All Articles