[alternate layout centered about a single seed cell] - A New Kind of Science: The NKS Forum

Pages:1

alternate layout centered about a single seed cell

Posted by: Philip Ronald Dutton

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.

Posted by: Jesse Nochella

apply this function to the output:

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

Posted by: Philip Ronald Dutton

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

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]]