Csci471 Intro Lecture 8
Csci471 Intro Lecture 8
LECTURE 8
Today:
• Undecidable/Unrecognizable Languages
• HW1 solutions
1
Meiram Murzabulatov
Not all languages over {0,1} are decidable
L P(L)
For all sets L, P(L) has more elements than L
L P(L)
For all sets L, P(L) has more elements than L
4
Using reductions to prove
undecidability
We want to prove that language L is undecidable.
ETM = { 𝑴 ∣ 𝑴 is a TM and 𝑳 𝑴 = ∅}
Proof: Suppose to the contrary that ETM is decidable,
and let R be a TM that decides it.
We construct TM S that decides ATM.
S = `` On input 〈𝑴, 𝒘〉, where 𝑴 is a TM and w is a string:
(We need to run TM R on some input, but which ???)
ETM = { 𝑴 ∣ 𝑴 is a TM and 𝑳 𝑴 = ∅}
Proof: Suppose to the contrary that ETM is decidable,
and let R be a TM that decides it.
We construct TM S that decides ATM.
S = `` On input 〈𝑴, 𝒘〉, where 𝑴 is a TM and w is a string:
1. Construct TM 𝑀′.
𝑀′ = `` On input x,
1. If x≠w, reject.
2. If x=w, run TM M on input w.
3. If it accepts, accept.’’
2. Run TM R on input <𝑴′>.
9/4/23
3. If R rejects , accept. O.w. reject.’’
Meiram Murzabulatov; based on slides by Sofya Raskhodnikova
ü 8
Prove that EQTM is undecidable
9/4/23 9
Meiram Murzabulatov; based on slides by Sofya Raskhodnikova
The Halting Problem
Is HALTTM recognizable?