CHAPTER II: Undecidability Turing Decidable Turing Acceptable Undecidable Problems
CHAPTER II: Undecidability Turing Decidable Turing Acceptable Undecidable Problems
Contents
Turing Decidable
Turing Acceptable
Undecidable Problems
On input M :
Determine whether there is a path from
the initial state to any accepting state
DFA M DFA M
L (M ) L (M )
Decision: Reject M Accept M
08/20/21 WSU, Computer Science Department 11
Problem: Does DFA M accept
a finite language?
DFA M DFA M
infinite finite
Decision: Reject M Accept M
(NO) (YES)
08/20/21 WSU, Computer Science Department 13
Problem: Does DFA M accept string w ?
On input string M ,w :
If M accepts w
Then accept M ,w (and halt)
Else reject M ,w (and halt)
Membership problem
Halting problem
Corresponding language:
ATM { M ,w : M is a Turing machine that
accepts string w }
08/20/21 WSU, Computer Science Department 19
Theorem: ATM is undecidable
(The membership problem is unsolvable)
Proof:
Basic idea:
We will assume that ATM is decidable;
We will then prove that every decidable language
is Turing-Acceptable
A contradiction!
08/20/21 WSU, Computer Science Department 20
Suppose that ATM is decidable
Input
string Decider
M ,w for ATM
M YES M accepts w
H
w NO M rejects w
Decider for L
s NO reject s
Input (and halt)
string
Contradiction!!!!
Corresponding language:
Proof:
Basic idea:
Suppose that HALTTM is decidable;
we will prove that every decidable
language is also Turing-Acceptable
A contradiction!
08/20/21 WSU, Computer Science Department 26
Suppose that HALTTM is decidable
Input
string
M ,w
halts on
M YES M w
Decider for input
w HALTTM
NO doesn’t halt
M on inputw
08/20/21 WSU, Computer Science Department 27
Let L be a Turing-Acceptable language
Let ML be the Turing Machine that accepts L
Input
accept s
ML halts
string and accepts
Run ML and halt
with input s
reject s
ML halts
and rejects
and halt
Contradiction!!!!