In[]:=
GPUStructureSearchFast[{1329,{3,1},1},0,1000];//AbsoluteTiming
Out[]=
{1.19269,Null}
In[]:=
GPUStructureSearchFast[{1329,{3,1},1},0,1000]//AbsoluteTiming
Out[]=
{1.20286,{400,9571,22234,22960,20990041,525304562024518979,880853240277422984}}
In[]:=
GPUStructureSearchFast[{1329,{3,1},1},0,1000,"ReturnOriginal"->True]//AbsoluteTiming
Out[]=
{1.22616,{{400,400},{1,9571},{800,22234},{52,22960},{916,20990041},{457,525304562024518979},{475,880853240277422984}}}
k=2, r=2
k=2, r=2
In[]:=
potentialrules=;
In[]:=
Length[potentialc4]
Out[]=
18546
Structure search to 10^6
In[]:=
structs=;
In[]:=
Length[structs]
Out[]=
1000
structsall=Monitor[GPUStructureSearch[{#,2,2},0,1000000]&/@potentialrules];
Out[]=
$Aborted
In[]:=
ResourceFunction["InteractiveListSelector"][ParallelMap[With[{r=#[[1]]},Function[ic,Rasterize[AArrayPlot[{r,2,2},IntegerDigits[ic,2]],RasterSize->{Automatic,300}]]/@BlockRandom[RandomSample[#[[2]],UpTo[5]],RandomSeeding->{9876567890,r}]->r]&,Transpose[{potentialrules[[;;1000]],ress}][[;;500]]]]
In[]:=
structs[[20]]
Out[]=
{1,4263,136353}
In[]:=
KeySort[Counts[Length/@structs]]
Out[]=
1302,2156,359,432,516,618,738,821,917,108,1111,1229,1317,147,1515,162,178,182,191,204,217,226,234,247,2510,265,272,283,291,304,311,321,3312,341,355,367,372,383,391,413,424,432,441,454,461,476,488,495,521,536,545,551,562,582,591,612,622,642,671,681,693,702,731,763,771,821,852,872,911,922,938,961,981,994,1004,1041,1083,1115,1221,1271,1281,1301,1321,1331,1381,1391,1433,1442,1472,1591,1651,1671,1721,1861,1901,2302,2461,2541,2681,2722,2971,3021,3071,3141,3281,3601,3891,5003,5801,5901,6091,6301,6581,6731,8521,8991,9361,9981,10781,2129961
In[]:=
SeedRandom[32525323];rand=RandomSample[potentialrules,100];
In[]:=
res=Monitor[#->GPUStructureSearchFast[{#,2,2},0,10^6,"ReturnOriginal"->True]&/@rand];
In[]:=
Iconize[res]
Out[]=
In[]:=
Length@*Last/@res
Out[]=
{1,2,1,25,2,233,9,2,2,25,1,1,2,9,2,1,1,6,1,34,242,172,50,69,1,61,1,1,68288,3,1,1,22,1,57,1,34,1,93,2,21,9,1,5,609,4,357,2,1,4,2,10,64,12,53,1,5,742,5,3,1,2,1314,13,15,3,1,159,44,1,19,53,452,20,39,56694,5,9,4,357,57,13,439,47331,2,30,5,1,318,400,18,7,135,41,11,9,5,7,12,2}
In[]:=
Take[res,5]
Out[]=
{548684596{{1,1}},3016500872{{3,3},{19,19}},864698504{{7,31}},1393460872{{3,3},{19,19},{31,387},{931,2323},{607,2435},{6307,6419}},3276580360{{3,3},{19,19}}}
In[]:=
GPUStructureSearchFast[{1393460872,2,2},0,10^6,"ReturnOriginal"->True]
Out[]=
{{3,3},{19,19},{31,387},{931,2323},{607,2435},{6307,6419},{10167,49539},{12831,49555},{81283,297235},{30303,297347},{32055,297363},{81171,297395},{73955,311683},{78367,311699},{256419,792851},{256275,793011},{803747,821523},{202335,821635},{205407,821651},{807331,821683},{127007,1585539},{402387,6340995},{508131,6341011},{508511,6343043},{407583,6343059}}
In[]:=
CellularAutomatonPlot[{1393460872,2,2},{IntegerDigits[First@#,2],0},100]&/@
Out[]=
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
In[]:=
If[#=!={"TimedOut"},#[[1,"Rule"]]->(If[#["IsGliderGun"],"Gun",{#["Period"],#["Shift"]}]&/@#),Nothing]&/@
Out[]=
In[]:=
Length/@%
Out[]=
{1,2,1,25,2,233,9,2,2,25,1,1,2,9,2,1,1,6,1,34,1,172,50,69,1,61,1,1,1,3,1,1,22,1,57,1,34,1,93,2,21,9,1,5,609,4,357,2,1,4,2,10,64,12,53,1,5,742,5,3,1,2,1314,13,15,3,1,159,44,1,19,53,452,20,39,1,5,9,4,357,57,13,439,1,2,30,5,1,318,1,18,7,135,41,11,9,5,7,12,2}
In[]:=
Select[%47,!FreeQ[#,"Gun"]&]
Out[]=
{{2945079368,2,2}{{1,1},{1,1},{2,0},{2,0},{2,0},Gun,Gun,Gun,Gun,Gun,Gun,{2,0},Gun,Gun,Gun,Gun,Gun,Gun,{2,0},Gun,Gun}}
In[]:=
GPUStructureSearchFast[{2945079368,2,2},0,10^6,"ReturnOriginal"->True]
Out[]=
{{11,11},{13,13},{23,23},{7447,7447},{47383,47383},{54907,54907},{56939,56939},{104219,104219},{109814,109814},{111059,111059},{113878,113878},{119063,119063},{202523,202523},{208438,208438},{218907,218907},{222123,222123},{437814,437814},{444246,444246},{758039,758039},{859627,859627},{883595,883595}}
In[]:=
CellularAutomatonPlot[{2945079368,2,2},{IntegerDigits[First@#,2],0},100,ColorRules->{0->White,1->Black}]&/@Take,10
Out[]=
,
,
,
,
,
,
,
,
,
All configurations of given period
All configurations of given period
Rule Filtering
Rule Filtering
Testing
Testing
NOTE: Only for k=2
k=3, r=1
k=3, r=1