GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 52

Decidability under a polynomial-time language isomorphism

Theory of Computation · Decidability & Computability · Full GATE CSE 2003 paper

GATE 2003, Q52 2 marks · MCQ
Report issue

Decidability & Computability

Question 52, GATE 2003: L1 and L2 are languages over Σ. A bijection f:Σ*→Σ* and its inverse are polynomial-time computable, and for every x, x∈L1 iff f(x)∈L2. Which cannot hold?
A. L1∈P and L2 is finite
B. L1∈NP and L2∈P
C. L1 is undecidable and L2 is decidable
D. L1 is recursively enumerable and L2 is recursive
Source caveat: GateForum drops the stars in the displayed domain/codomain; the GFG string-domain version is used here.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Suppose L2 has a decider D2. An algorithm for L1 computes f(x), which always terminates, then returns D2(f(x)). The membership equivalence makes this algorithm correct and terminating.
2. Thus decidability of L2 forces decidability of L1, contradicting C. In fact the inverse supplies the converse reduction too.
3. The other combinations are not contradictions. Take f to be identity and L1=L2=∅: the language is finite, in P and NP, recursive and recursively enumerable. This single example witnesses the possibility of A, B and D.

Solution: If L₂ is decidable, compute f(x) and run its decider; the membership equivalence decides L₁. Hence an undecidable L₁ and decidable L₂ cannot coexist, option C. The other alternatives are possible by choosing finite or otherwise polynomial-time decidable languages: P is contained in NP, and recursively enumerable does not mean nonrecursive.

Original paper, page 7