Another PCA rule:
Code: Select all
/* Put your state count, neighbor count, and function here */
final static int numStates = 16;
final static int numNeighbors = 4;
private int rule[] = {0,2,4,3,8,10,6,14,1,9,5,7,12,11,13,15};
/* order for nine neighbors is nw, ne, sw, se, n, w, e, s, c */
/* order for five neighbors is n, w, e, s, c */
int f(int[] a)
{
int s = 0;
if ((a[3] & 4) > 0)
s = s | 1;
if ((a[1] & 8) > 0)
s = s | 2;
if ((a[0] & 1) > 0)
s = s | 4;
if ((a[2] & 2) > 0)
s = s | 8;
return rule[s];
}
Code: Select all
@RULE PCA_6
@TREE
num_states=16
num_neighbors=4
num_nodes=31
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
2 3 3 3 3 4 4 4 4 3 3 3 3 4 4 4 4
3 2 2 5 5 2 2 5 5 2 2 5 5 2 2 5 5
1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
2 7 7 7 7 8 8 8 8 7 7 7 7 8 8 8 8
1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
1 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
2 10 10 10 10 11 11 11 11 10 10 10 10 11 11 11 11
3 9 9 12 12 9 9 12 12 9 9 12 12 9 9 12 12
4 6 6 6 6 6 6 6 6 13 13 13 13 13 13 13 13
1 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
2 15 15 15 15 16 16 16 16 15 15 15 15 16 16 16 16
1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
1 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11
2 18 18 18 18 19 19 19 19 18 18 18 18 19 19 19 19
3 17 17 20 20 17 17 20 20 17 17 20 20 17 17 20 20
1 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
1 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14
2 22 22 22 22 23 23 23 23 22 22 22 22 23 23 23 23
1 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13
1 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
2 25 25 25 25 26 26 26 26 25 25 25 25 26 26 26 26
3 24 24 27 27 24 24 27 27 24 24 27 27 24 24 27 27
4 21 21 21 21 21 21 21 21 28 28 28 28 28 28 28 28
5 14 29 14 29 14 29 14 29 14 29 14 29 14 29 14 29
Two oscillator sets:
Code: Select all
x = 112, y = 22, rule = PCA_6
102.B$69.B$38.B64.D$9.B60.D30.HD$39.D28.HD$10.D26.HD$8.HD4$.A11.AB14.
A13.AB14.A15.AB14.A17.AB$2.AB10.AH14.AB12.AH14.AB14.AH14.AB16.AH$H27.
H29.H31.H$6.A.B25.A.B27.A.B29.A.B$5.A.B25.A.B27.A.B29.A.B3$7.HD$7.D
B27.HD$36.DB29.HD$67.DB31.HD$100.DB!
Periods 188, 236, 284, 332.
Code: Select all
x = 90, y = 69, rule = PCA_6
O34.6O34.11O17$2O33.7O33.12O17$3O32.8O32.13O17$4O31.9O31.14O17$5O30.
10O30.15O!
Periods:
Code: Select all
1 4
2 4
3 28
4 28
5 280
6 40
7 520
8 52
9 832
10 64
11 1216
12 76
13 1672
14 88
15 2200
Brian Prentice