Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a representation of causal structure in substitution system evolution
ResourceFunction["SubstitutionSystemCausalEvolution"][rules,init,t] generates a representation of the evolution of a substitution system with the specified rules from initial condition init for t steps. | |
ResourceFunction["SubstitutionSystemCausalEvolution"][rules,init,t,"scheme"] generates a representation with evolution according to the specified updating scheme. |
| "Forward" | scan forwards, including all replacements that fit (default) |
| "Backward" | scan backwards |
| "First" | do only the first replacement |
| "Sequential" | sequential substitution system |
| "Random" | pick a single replacement at random |
| {"Random", n} | pick n replacements at random |
Evolve a substitution system for ten steps:
| In[1]:= |
|
| Out[1]= |
|
Use multiple substitution rules:
| In[2]:= |
|
| Out[2]= |
|
SubstitutionSystemCausalEvolution supports different ways of applying a substitution rule. Set up a substitution system:
| In[3]:= |
|
Scan the initial string forward:
| In[4]:= |
|
| Out[4]= |
|
Scan backwards:
| In[5]:= |
|
| Out[5]= |
|
Do the first replacement only:
| In[6]:= |
|
| Out[6]= |
|
Do sequential substitution:
| In[7]:= |
|
| Out[7]= |
|
One random replacement:
| In[8]:= |
|
| Out[8]= |
|
Multiple random replacements:
| In[9]:= |
|
| Out[9]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License