Clockwise Turing machine: Difference between revisions
creat |
No edit summary Tag: Reverted |
||
Line 33: | Line 33: | ||
[[Category:Computational models]] |
[[Category:Computational models]] |
||
[[Category:Turing complete]] |
[[Category:Turing complete]] |
||
[[Category:Turning tarpits]] |
Revision as of 20:18, 26 March 2025
A clockwise Turing machine is a Turing machine variant where the tape is circular and only clockwise moves are allowed.
Neary and Woods present the following definition for the concept:[1]
- Clockwise Turing machine definitions have
- A set of states
- A set of symbols
- A transition function
- A starting state
- A halting state
- The transition function
- Is defined for all states in except for the halting state
- Maps the pair of (current state, currently read symbol) to (symbol or symbol pair, next state)
Execution proceeds as one would expect for a normal Turing machine, with the following differences:
- The tape is circular, the head/pointer's position is modulo the size of the tape
- The head moves clockwise/rightwards during every state transition
- A state transition can either overwrite the current cell (corresponding to a rule) or split the cell in two, overwriting each half with a symbol (corresponding to a rule)
Neary and Woods prove this model Turing complete in their paper. They reduce a Turing machine model where every transition must result in a move (which is trivially Turing complete) into the clockwise model. They do this by having there be two ends of the tape which are right next to each other on the circle. These ends are marked with a special symbol, each, for the left end and for the right. These symbols allow for the simulation to expand the tape whenever the simulated machine reaches the boundaries. While rightward/clockwise moves are simple, nothing special is required, leftward/counterclockwise moves are more difficult. Another symbol is used to manage such moves, . Leftward moves place this symbol down, then proceed in a loop moving the contents of every single cell over by one, stopping when the marker is overwritten. This has the effect of moving the head left by one cell.
Clockwise Turing machines are relatively ergonomic to implement in tag systems.
See also
References
- ↑ Neary, T., Woods, D. (2007). Four Small Universal Turing Machines. In: Durand-Lose, J., Margenstern, M. (eds) Machines, Computations, and Universality. MCU 2007. Lecture Notes in Computer Science, vol 4664. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-74593-8_21