Linear bounded automaton 2026-11-05
A linear bounded automaton is a Turing machine whose usable tape on an input of length is bounded by cells for a fixed constant . A common equivalent model places end markers around the input and permits rewriting only between them. The standard language-class characterization uses a nondeterministic machine: these machines recognize exactly the nonempty-word languages generated by context-sensitive grammars, with an explicit convention needed for the empty word.[ref]
For , repeatedly mark one unmarked , one and one , rejecting if the order is wrong or a matching symbol is absent. Accept when no symbols remain unmarked. This uses the original input cells and repeated sweeps, showing how bounded space can check three linked counts. “Linear bounded” limits space, not running time.
Nested-count context-free grammar Created 2026-09-24 Updated 2026-11-05
A context-free grammar can enforce several matched counts by nesting their dependencies. For example,
generates the context-free language . Applying the first recursive production rule times places zeros at both ends. Applying the second recursive production rule times places ones before the inner block and further zeros after it. Thus
Every terminal grammar derivation has this form, because it must switch from to exactly once. The nesting is useful: the final block records the sum of two independently chosen counts without requiring a context-sensitive grammar.