Linear-Bounded Automata

2 min read Last updated Sat Jun 27 2026 08:46:52 GMT+0000 (Coordinated Universal Time)

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 M=(Q,Σ,Γ,δ,q0,B,F)M = (Q, \Sigma, \Gamma, \delta, q_0, B, F) with 2 additional constraints:

  • The input alphabet Σ\Sigma includes 2 special symbols: left endmarker \lfloor and right endmarker \rfloor.
  • The head never moves left of \lfloor or right of \rfloor.

If the input has length nn, the usable tape is exactly nn cells. The machine accepts by entering a final state qfFq_f \in F.

Relation to Chomsky Hierarchy

LBAs accept exactly the class of context-sensitive languages (Type 1).

  • If LL is a context-sensitive language, there exists an LBA accepting LL.
  • If an LBA accepts LΣL \subseteq \Sigma^*, there exists a CSG generating L{Λ}L - \{\Lambda\}.

Comparison to TM

PropertyLBATuring Machine
TapeBounded to input lengthUnbounded
Language classContext-sensitiveRecursively enumerable
DecidabilityOpen problem (is LBA complement closed?)Undecidable (Halting Problem)
PowerStrictly weakerStrictly stronger

Example

The language L={anbncnn1}L = \{a^n b^n c^n \mid n \geq 1\} is context-sensitive but not context-free. An LBA accepts it:

  1. Scan and mark one aa, one bb, one cc in each pass.
  2. Repeat until all symbols are marked.
  3. Accept if marking completes cleanly; reject if counts mismatch.

The LBA needs only the original input tape. No extra space beyond the 3n3n input cells is required.

Was this helpful?