Professional Documents
Culture Documents
Reducibility
Presented by:
Uswa Ihsan(1075-FBAS/BSCS/f20)
Fizza Asim (1088-FBAS/BSCS/f20)
Introduction(Reducibility):
• Language A ⇒ Problem A
• String w ⇒ Instance: Is w ∈ A
• Turing machine M ⇒ Program M
• A is decidable ⇒ Some M solves w ∈ A for
all w ∈ Σ∗
For example:
2
𝜘
• Problem A: 𝑎 𝜘 + 𝑏 + 𝑐𝑥+ 𝑑=0
3
• Problem B:
Reducibility and Decidability
• Consider
REGULARTM = {<M> : M is a TM and L(M) is
regular}.
Theorem: REGULARTM is undecidable.
Proof
• Let R be a TM deciding REGULARTM.
Consider
• S = “On input <M, x> where M is a TM and
x a string:
• Use <M> to construct M2 = “On input x:
If x is of the form , accept.
Otherwise, run M on the input w. If M
accepts w, accepts.”
• Run R on the input M2.
• If R accepts, accept; otherwise, reject.”