- 2071 Chaitra
Head shifting and symbol writing TM
Short answer
Symbol-writing machine a writes a in the current cell and halts; head stays. Head-shifting machines R and L move the head one cell right or left and halt. These elementary TMs are building blocks: e.g., R⊔ moves right until blank. Combine with conditional branches to construct any TM.
Define head shifting and symbol writing Turing machines.
These are the two kinds of elementary Turing machines (Lewis and Papadimitriou), from which larger machines are built by composition.
Symbol-writing machines
For each symbol a ∈ Γ (including the blank ⊔) there is a machine, also written a, that writes a in the cell under the head and halts. The head does not move.
Formally, it has states {q0, h}, and δ(q0, x) = (h, a, S) for every x ∈ Γ. Example: the machine "1" replaces whatever symbol is scanned by 1. The machine "⊔" erases the cell.
Head-moving (head-shifting) machines
Two machines change only the head position and leave the tape contents unchanged:
- R moves the head one cell to the right and halts: δ(q0, x) = (h, x, R) for all x.
- L moves the head one cell to the left and halts: δ(q0, x) = (h, x, L) for all x.
Before: ... a [b] c ...
R : ... a b [c] ...
L : ... [a] b c ...
"x" : ... a [x] c ... (b overwritten by x)
Use
These machines are combined with arrows (conditions on the scanned symbol) to give larger machines. For example, R⊔ means "move right until a blank is found" and L⊔ means "move left until a blank is found". Any TM can be described as such a combination, which is why they are called the basic building blocks of Turing machines.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- TM that doubles a binary number · Theory of Computation, chapter 4
- TM accepting wwᴿ; process 101101 · Theory of Computation, chapter 4
- Compare TM with FA and PDA · Theory of Computation, chapter 4
- TM configuration; TM for palindromes · Theory of Computation, chapter 4
- TM for aⁿcbⁿ (single tape, deterministic) · Theory of Computation, chapter 4
- Multitape TM as copying machine · Theory of Computation, chapter 4
- Design of Pelton wheel for given power and head · Fluid Machines, chapter 3
- Centrifugal pump head, discharge and power · Fluid Machines, chapter 4