We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
TuringMachine[rule,init,t]
generates a list representing the evolution of the Turing machine with the specified rule from initial condition init for t steps.
TuringMachine[rule,init]
gives the result of evolving init for one step.
Details2-state, 2-color machine 2506 with an initial tape of four 0s, evolving for 3 steps:
2-state, 2-color machine 2506 with an infinite tape of 0s, evolving for 4 steps:
Plot the successive configurations of the tape:
Show the rule icon for a Turing machine:
Plot the evolution, including the state of the head:
Show the rule icon for a Turing machine specified by explicit transitions:
Plot the evolution, including the state of the head:
A Turing machine specified by pattern-based transition rules:
Scope (17) One-Dimensional Rules (6)2-state, 2-color machine 2506:
Plot the evolution, including the state of the head:
3-state, 2-color machine 2139050:
2-state, 2-color machine 16220, with range 2:
3-state, 2-color machine 2139050, with jump offsets and 2:
Give explicit transition rules:
Explicitly specify values of the number of states s and the number of colors k for the same transition rules:
Initial Conditions (9) Head Specification (4)2-state, 2-color machine 2506 with head initially in state 1:
2-state, 2-color machine 2506 with head initially in state 2:
Place the head at position 3 on the initial tape:
Place the head at position 5 on the initial tape:
Tape Specification (5)Start with a finite tape of four 0s, assumed cyclic:
The left neighbor of the leftmost cell is the rightmost cell, and vice versa:
Start with an infinite tape of 0s:
Start with a tape of 1 on an infinite background of 0s:
Start with a tape consisting of the block 211 on a background of 0s:
Start with the block 211 on a background of repeated 02 blocks:
Multidimensional Rules (2)2D 2-state, 2-color Turing machine 977401:
2D Turing machine specified by explicit transitions:
Applications (12)Evolution of Wolfram's simplest universal Turing machine from an infinite tape of 0s:
Alternative form using explicit rules:
Show the evolutions of a sequence of 2-state, 2-color machines:
Trajectory of the machine head from successive initial conditions:
Path traced by the head of a 2D machine:
Averaging tape of a 2D machine over many steps:
Successive states sequences from successive initial conditions:
Sequence of left or right movements for successive initial conditions:
Computed function on a one-sided tape:
Show only steps on which the head reaches a new cell:
Show only steps on which the head returns to its initial location:
Causal network from random initial tape:
Properties & Relations (4)For rules of the form {n,s,k,…}, head states and cell values can be integers in the range 1 to s and 0 to k-1, respectively:
For rules of the form {n,s,k,…}, if the head reaches a cell whose value is not in the range 0 to k-1, the evolution of the machine halts:
Another Turing machine whose evolution halts:
Use an explicit set of rules to define a halting state:
Generate a Turing machine evolution:
"Inject" the state information into a representation of the tape:
Show the position of the head as a red square:
Use RulePlot to generate a complete evolution picture:
Wolfram Research (2007), TuringMachine, Wolfram Language function, https://reference.wolfram.com/language/ref/TuringMachine.html (updated 2021). TextWolfram Research (2007), TuringMachine, Wolfram Language function, https://reference.wolfram.com/language/ref/TuringMachine.html (updated 2021).
CMSWolfram Language. 2007. "TuringMachine." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/TuringMachine.html.
APAWolfram Language. (2007). TuringMachine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TuringMachine.html
BibTeX@misc{reference.wolfram_2025_turingmachine, author="Wolfram Research", title="{TuringMachine}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/TuringMachine.html}", note=[Accessed: 11-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_turingmachine, organization={Wolfram Research}, title={TuringMachine}, year={2021}, url={https://reference.wolfram.com/language/ref/TuringMachine.html}, note=[Accessed: 11-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4