Function Repository Resource:

# AutomatonParticleDetect

Search through one-dimensional cellular automata for periodic structures

 ResourceFunction["AutomatonParticleDetect"][rule,seed,pad,time] tests for periodic structure after time steps of the iterator CellularAutomaton[rule] acting initially on a seed surrounded by pad values, and returns a descriptive association in case of a true positive.

## Details

The algorithm assumes rule to be 1D.
Both seed and pad must be lists with valid values (in the domain of rule).
Where possible, the pad should be chosen to generate a static or periodic background, upon which seed can be observed to grow.
The search algorithm has a conservative search criterion requiring three complete periods for particle (one dimensional glider) identificiation.
A useful heuristic when searching for a particle of period T0 is to set time=3T0+10, but search success also depends on seed.
ResourceFunction["AutomatonParticleDetect"] takes the following options:
 "Canonicalize" True determines whether or not to post process output data Method "Structured" specify how canonicalization handles throughput data
Either Method "Structured" or "Simple" passes to a hidden call of the resource function SubmatrixReplace, which is used when trimming raw particle data.

## Examples

### Basic Examples (6)

Test seed {1,0,0,0,1} against the dominant periodic background of Rule 110:

 In[1]:=
 Out[1]=

Depict the particle as it moves through about four periods:

 In[2]:=
 Out[2]=

Detect particles in elementary Cellular Automaton Rule 110 by noting when "Result" equals True:

 In[3]:=
 Out[3]=

Make a data table for the first positive of Rule 110:

 In[4]:=
 Out[4]=

Map over a small search space for unique particles and check their velocity statistic:

 In[5]:=
 Out[5]=

Change the time parameter to run search longer and possibly find more positive results:

 In[6]:=
 Out[6]=

### Options (2)

For the purpose of algorithm timing analysis, it is possible to pass Method "Simple":

 In[7]:=
 Out[7]=

However, Method "Simple" is expected to be slow relative to the default "Structured":

 In[8]:=
 Out[8]=

### Neat Examples (2)

Search for, find and depict numerous different particles in one short-time call:

 In[9]:=
 In[10]:=
 Out[10]=

Look farther out and find even more remarkable results:

 In[11]:=
 Out[11]=