A New Kind of Science: The NKS Forum (http://forum.wolframscience.com/index.php)
- Pure NKS (http://forum.wolframscience.com/forumdisplay.php?forumid=3)

Posted by Philip Ronald Dutton on 12-18-2006 10:08 PM:

alternate layout centered about a single seed cell

I wanted to play around with alternating layouts for the elementary CA rules. The idea I had would be to use a single cell for the seed. Apply the rule once and layout the output on one "side" (top or bottom) of the previous step's output. Going about in an alternate fashion, one might find interesting patterns. I did this with rule 90 in the attached .gif file.

I am sure the mathematica code would be simple to write if you have mathematica. It would be fun to see a few runs from each of the elementary rules.

If someone out there is up to the 10 minute challenge then please post your results.

__________________
P h i l i p . R . D u t t o n

Posted by Jesse Nochella on 12-19-2006 08:41 PM:

apply this function to the output:

alternateLayout[output_] :=
Flatten[Reverse@{#[[1]], Reverse[#[[2]]]}, 1] &[
Transpose[Partition[output, 2]]]

Posted by Philip Ronald Dutton on 12-21-2006 08:46 PM:

applied

...Now, if only my trial version of Mathematica had not expired. Thanks for the feedback. I sure would like to see some pics.

__________________
P h i l i p . R . D u t t o n

Posted by Lawrence J. Thaden on 12-22-2006 01:51 AM:

alternateLayout[output_] := Flatten[Reverse@{#[[1]], Reverse[#[[2]]]},
1] &[Transpose[Partition[output, 2]]]

r90 = ArrayPlot[plotdata = CellularAutomaton[90, {{1},
0}, 128], PlotLabel -> "R 90"];

altr90 = ArrayPlot[alternateLayout[plotdata], PlotLabel -> "Alt R 90"];

SetDirectory["C:\\Documents and Settings\\Lawrence\\My \
Documents\\Mathematica"]

Show[GraphicsArray[{r90, altr90}], ImageSize -> 775];

Export["r90altr90.gif", %, First@AbsoluteOptions[%, ImageSize]]

__________________