Aka. LBA. A nondeterministic Turing machine whose read/write head is restricted to the portion of the tape occupied by the input. Tape length is bounded linearly by input length.
Formal Definition
An LBA is a nondeterministic TM with 2 additional constraints:
- The input alphabet includes 2 special symbols: left endmarker and right endmarker .
- The head never moves left of or right of .
If the input has length , the usable tape is exactly cells. The machine accepts by entering a final state .
Relation to Chomsky Hierarchy
LBAs accept exactly the class of context-sensitive languages (Type 1).
- If is a context-sensitive language, there exists an LBA accepting .
- If an LBA accepts , there exists a CSG generating .
Comparison to TM
| Property | LBA | Turing Machine |
|---|---|---|
| Tape | Bounded to input length | Unbounded |
| Language class | Context-sensitive | Recursively enumerable |
| Decidability | Open problem (is LBA complement closed?) | Undecidable (Halting Problem) |
| Power | Strictly weaker | Strictly stronger |
Example
The language is context-sensitive but not context-free. An LBA accepts it:
- Scan and mark one , one , one in each pass.
- Repeat until all symbols are marked.
- Accept if marking completes cleanly; reject if counts mismatch.
The LBA needs only the original input tape. No extra space beyond the input cells is required.