Linear Bounded Automata Lbas
Linear Bounded Automata Lbas
Linear Bounded Automata Lbas
LBAs
1
Linear Bounded Automata (LBAs)
are the same as Turing Machines
with one difference:
2
Linear Bounded Automaton (LBA)
Input string
[ a b c d e ]
Working space
Left-end Right-end
in tape
marker marker
3
We define LBA’s as NonDeterministic
Open Problem:
NonDeterministic LBA’s
have same power with
Deterministic LBA’s ?
4
Example languages accepted by LBAs:
n n n
L = {a b c }
n!
L = {a }
6
Unrestricted Grammars:
Productions
u→v
7
Example unrestricted grammar:
S → aBc
aB → cA
Ac → d
8
Theorem:
9
Context-Sensitive Grammars:
Productions
u→v
S → abc | aAbc
Ab → bA
Ac → Bbcc
bB → Bb
aB → aa | aaA
11
Theorem:
A language L is context sensistive
if and only if
L is accepted by a Linear-Bounded automaton
Observation:
There is a language which is context-sensitive
but not recursive
12
The Chomsky Hierarchy
Non-recursively enumerable
Recursively-enumerable
Recursive
Context-sensitive
Context-free
Regular
13
Decidability
14
Consider problems with answer YES or NO
Examples:
• Does Machine M have three states ?
15
A problem is decidable if some Turing machine
decides (solves) the problem
Decidable problems:
• Does Machine M have three states ?
16
The Turing machine that decides (solves)
a problem answers YES or NO
for each instance of the problem
Input YES
problem Turing Machine
instance NO
17
The machine that decides (solves) a problem:
• If the answer is NO
then halts in a no state
YES states
NO states
20
Some problems are undecidable:
which means:
there is no Turing Machine that
solves all instances of the problem
21
The Membership Problem
w∈ L(M ) ?
22
Theorem:
The membership problem is undecidable
23
Thus, there exists a Turing Machine H
that solves the membership problem
M YES M accepts w
H
w NO w
M rejects
24
Let L be a recursively enumerable language
M H
YES accept w
M accepts w?
w NO reject w
26
Therefore, L is recursive
Contradiction!!!!
27
Therefore, the membership problem
is undecidable
END OF PROOF
28
Another famous undecidable problem:
29
The Halting Problem
30
Theorem:
The halting problem is undecidable
31
There exists Turing Machine H
that solves the halting problem
M YES M halts on w
H
w NO doesn’t
M w
halt on
32
Let L be a recursively enumerable language
M H
NO reject w
M halts on w?
w YES
accept w
Halts on final state
Run M
with input w reject w
Halts on non-final
state
34
Therefore L is recursive
Contradiction!!!!
35
Therefore, the halting problem is undecidable
END OF PROOF
36