Open In App

Undecidability and Reducibility in TOC

 

Decidable Problems
A problem is decidable if we can construct a Turing machine which will halt in finite amount of time for every input and give answer as ‘yes’ or ‘no’. A decidable problem has an algorithm to determine the answer for a given input.



Examples

Undecidable Problems
A problem is undecidable if there is no Turing machine which will always halt in finite amount of time to give answer as ‘yes’ or ‘no’. An undecidable problem has no algorithm to determine the answer for a given input.



Examples

Note: Two popular undecidable problems are halting problem of TM and PCP (Post Correspondence Problem). Semi-decidable Problems
A semi-decidable problem is subset of undecidable problems for which Turing machine will always halt in finite amount of time for answer as ‘yes’ and may or may not halt for answer as ‘no’.
Relationship between semi-decidable and decidable problem has been shown in Figure 1 as:

Rice’s Theorem
Every non-trivial (answer is not known) problem on Recursive Enumerable languages is undecidable.e.g.; If a language is Recursive Enumerable, its complement will be recursive enumerable or not is undecidable.

Reducibility and Undecidability
Language A is reducible to language B (represented as A?B) if there exists a function f which will convert strings in A to strings in B as:

w ? A <=> f(w) ? B

Theorem 1: If A?B and B is decidable then A is also decidable.
Theorem 2: If A?B and A is undecidable then B is also undecidable.

Question: Which of the following is/are undecidable?

  1.  G is a CFG. Is L(G)=??
  2.  G is a CFG. Is L(G)=?*?
  3. M is a Turing machine. Is L(M) regular?
  4.  A is a DFA and N is an NFA. Is L(A)=L(N)?

A. 3 only
B. 3 and 4 only
C. 1, 2 and 3 only
D. 2 and 3 only

Explanation:

Question: Which of the following problems are decidable?

  1.  Does a given program ever produce an output?
  2.  If L is context free language then L’ is also context free?
  3.  If L is regular language then L’ is also regular?
  4.  If L is recursive language then L’ is also recursive?

A. 1,2,3,4
B. 1,2
C. 2,3,4
D. 3,4

Explanation:

Question: Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2 is undecidable. Which one of the following is TRUE?

A. P3 is undecidable if P2 is reducible to P3
B. P3 is decidable if P3 is reducible to P2’s complement
C. P3 is undecidable if P3 is reducible to P2
D. P3 is decidable if P1 is reducible to P3
Explanation:

Quiz on Undecidability

Article Tags :