Linear Bounded Automata - LBA
Linear Bounded Automaton (LBA)
A Linear Bounded Automaton (LBA) is basically a Turing Machine whose tape space is restricted — it can only use the portion of the tape that initially contains the input.
In other words:
-
The LBA cannot move or write beyond the input boundaries.
-
It has two special end markers
[
(left) and]
(right) that mark the usable portion of the tape. -
The read–write head “bounces back” if it tries to move beyond these boundaries.
Thus, an LBA is “linear bounded” because the space available to it is linearly proportional to the size of the input.
⚙️ Formal Definition
A Linear Bounded Automaton (LBA) is a nondeterministic Turing Machine
with the following properties:
-
Σ (the input alphabet) contains two special symbols
[
and]
(the end markers). -
Γ (the tape alphabet) includes Σ and possibly other symbols for temporary work.
-
The transition function
satisfies:
-
For the left end marker
[
,i.e., you can read
[
, but never overwrite or move left of it. -
For the right end marker
]
,i.e., you can read
]
, but never overwrite or move right of it.
-
Thus, the LBA can move around only between the two markers.
💡 How an LBA Works
-
The input string w is placed between the markers:
-
The machine starts in state q₀, scanning the leftmost symbol of w.
-
It can modify symbols inside the brackets and move left or right—but never cross
[ ]
. -
The machine accepts w if it can enter an accepting state after a finite number of moves.
📘 Language Accepted by an LBA
A string is accepted by an LBA M if there exists some sequence of moves:
for some and
That is, starting with input w, the machine halts in an accepting state without leaving the bounded tape area.
The language accepted by M is:
🧩 Example 1 —
This is a famous non–context-free language.
-
The LBA can mark one
a
, oneb
, and onec
at a time. -
Each time it marks one triple, it repeats the process.
-
Since it never needs space outside the input boundaries, an LBA can accept this language.
Hence,
✅ is accepted by some LBA,
but ❌ not by any pushdown automaton (PDA).
🔍 7. Relationship with Other Machines
Machine Type | Description | Power |
---|---|---|
Finite Automaton (FA) | No memory (fixed space) | Accepts Regular Languages |
Pushdown Automaton (PDA) | One stack (unbounded but linear memory) | Accepts Context-Free Languages |
Linear Bounded Automaton (LBA) | Bounded tape (limited memory, proportional to input) | Accepts Context-Sensitive Languages |
Turing Machine (TM) | Unbounded tape (unlimited memory) | Accepts Recursively Enumerable Languages |
Thus,
🧭Key Points to Remember
-
LBA = Restricted Turing Machine
-
The tape is bounded by input length.
-
Accepts context-sensitive languages.
-
Always nondeterministic in definition
-
Has end markers that cannot be crossed or modified.
-
Is more powerful than PDA but less powerful than full TM.
Comments
Post a Comment