Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert numbers specifying a Turing machine into an explicit list of rules
ResourceFunction["TuringMachineFromNumber"][n,s,k] converts a Turing machine specified with rule number n,s states and k colors into an equivalent List of rules. | |
ResourceFunction["TuringMachineFromNumber"][n,s] converts a Turing machine specified with rule number n,s states and two colors into an equivalent List of rules. | |
ResourceFunction["TuringMachineFromNumber"][n] converts a Turing machine specified with rule number n, two states and two colors into an equivalent List of rules. |
2-state, 2-color machines | 4096 |
s-state, k-color machines | (2 s k)s k |
Generate the List of rules corresponding to 2-state, 2-color machine 2506:
In[1]:= |
Out[1]= |
Show that the two specifications are equivalent:
In[2]:= |
Out[2]= |
Generate the rule representation of Wolfram’s simplest universal Turing machine:
In[3]:= |
Out[3]= |
Generate the rule representation of a 3-state, 2-color machine:
In[4]:= |
Out[4]= |
Generate the rule representation of a 2-state, 2-color machine:
In[5]:= |
Out[5]= |
Supplying a rule number outside the allowed range imposed by the state and color specifications results in an error:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License