A New Kind of Science: The NKS Forum > Pure NKS > Cellular automata two dimensions
Author
M.Abdeldjalil

Registered: Nov 2008
Posts: 39

Cellular automata two dimensions

Hello,

Please, what i'll say is right or no?

About CA two dimensions, with 2 states(black/white), five neightbors, we have (2power2power5) rules .?!

So the rules will be codified with 32 binary number (0...31).

i tried this, but i can't find the same figure in this pages:
www.wolframscience.com/nksonline/page-173 www.wolframscience.com/nksonline/page-174

Is the code 475 the same rule 475?

Please, the rules in the section of notes
are wroten with wich language???

For example this:
CAStep[rule_, a_] := Map[rule[[10-#]] &,
ListConvolve[{{0, 2, 0}, {2, 1, 2}, {0, 2, 0}}, a, 2], {2}]

Last edited by M.Abdeldjalil on 03-03-2009 at 10:57 AM

Report this post to a moderator | IP: Logged

03-03-2009 10:08 AM
Jason Cawley
Wolfram Science Group
Phoenix, AZ USA

Registered: Aug 2003
Posts: 712

For a general CA rule, yes that is true. The rules shown in the book at a special case with extra symmetries, called "outer totalistic" rules. See the thread "Unpacking NKS codes" for details.

The implementation notes in the back of the book at written in Mathematica. Mathematica now has a built in function to evolve all kinds of CAs, called simple CellularAutomaton. Which is much easier to use than the older code you see in the notes. That is what I used in the examples I gave you in the previous thread.

I hope this helps.

Report this post to a moderator | IP: Logged

03-03-2009 02:20 PM
M.Abdeldjalil

Registered: Nov 2008
Posts: 39

Hello,

I understand some things, but my problem
is how we can apply the rules, for example for 545 rule, i obtain this figure, it's not like in the book:
I think that the rule is applicated like that:

if(oldCell[i][j]==0 &&
oldCell[i][left]==0&&
oldCell[i][right]==1
&&oldCell[top][j]==0&&
oldCell[bottom][j]==0)
cell[i][j]=binaryRule[1];

where binaryRule is the 454 on binary.

M.Abdeldjalil has attached this image:

Last edited by M.Abdeldjalil on 03-03-2009 at 04:14 PM

Report this post to a moderator | IP: Logged

03-03-2009 03:23 PM

wolframscience.com  |  wolfram atlas  |  NKS online  |  Wolfram|Alpha  |  Wolfram Science Summer School  |  web resources  |  contact us

Forum Sponsored by Wolfram Research

© 2004-15 Wolfram Research, Inc. | Powered by vBulletin 2.3.0 © 2000-2002 Jelsoft Enterprises, Ltd. | Disclaimer | Archives