Skip to content
Official PYQ · 2003

GATE CS 2003 Q13 — Undecidability

Explain with AI

Nobody knows yet if P=NPP=NP. Consider the language LL defined as follows.L={(0+1)∗ if P=NPϕotherwiseL = \begin{cases} (0+1)^* & \text{ if } P = NP \\ \phi & otherwise \end{cases}Which of the following statements is true?

Choose one option
View worked solution

Answer: A

To determine the nature of the language LL, we analyze the two possible cases for the mathematical proposition P=NPP = NP:

  • Case 1: If P=NPP = NP is true, then L=(0+1)∗L = (0+1)^*. Since (0+1)∗(0+1)^* is a regular language, it is also a recursive language.
  • Case 2: If P=NPP = NP is false, then L=∅L = \emptyset. Since the empty language ∅\emptyset is a regular language, it is also a recursive language.

In either case, LL is a regular language, which implies that LL is guaranteed to be a recursive language.

Even though we do not currently know which of the two cases holds, the language LL itself is fixed and belongs to the class of recursive languages. Our lack of knowledge about whether P=NPP = NP does not change the fact that LL is mathematically recursive. Therefore, option A is correct.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Undecidability questions