Beruflich Dokumente
Kultur Dokumente
Decidable and
Undecidable Problems
Recall:
Recognizable vs. Decidable
Machine encodings
Problems on encodings
A decidable language
Another try
Reduction
P1
yes
yes
no
no
P2
P1
reduce
P2
decide
yes
no
Proof by contradiction:
Suppose that P2 is decidable
then we can use P2 to decide P1
11
P1
reduce
P2
decide
yes
no
Proof by contradiction:
Suppose that P2 is recognizable
then we can use P2 to recognize P1
12
By reduction to ANFA.
By reduction to EDFA.
The Universal TM
Role of Universal TM
ATM is undecidable
Proof is by contradiction.
Suppose ATM is decidable. Then some
TM H decides it.
H cannot exist
We have
An unrecognizable language
HALTTM is undecidable
Rices Theorem
Is G ambiguous?
Is L(G1) L(G2)?
Is L(G) context-free?
Equivalence Problem
- abbabaab
24
has no solution
Why?
An approach by counting
27
Computability
Heins enumeration
establish a contradiction
Assume that
is countably infinite.
g n = if fn n = 1 then 2 else 1
34
We have a contradiction
35
37
Decidability
Examples
while X 0
do Y:= succ(X) od
39
40
Whats a Language?
42
Proof
A = {a, b}
L1 = { w A* | w starts with a }
43
44
A Little History
47
48
49
But look:
50
paradox(paradox) =
if halts(paradox, paradox)
then loopForever
else true
51