Skip to content
Official PYQ · 2012

GATE CS 2012 Q4 — Regular and Context-free Languages

Explain with AI

Assuming P≠NP\textsf{P} \neq \textsf{NP}, which of the following is TRUE?

Choose one option
View worked solution

Answer: B

To determine which statement is true under the assumption that P≠NP\textsf{P} \neq \textsf{NP}, let us analyze the relationship between these complexity classes:

By definition, a language LL is NP-complete\textsf{NP-complete} if:

  1. L∈NPL \in \textsf{NP}
  2. For every language L′∈NPL' \in \textsf{NP}, L′≤PLL' \le_{\textsf{P}} L (i.e., L′L' is polynomial-time reducible to LL).

Analyzing Option B: NP-complete∩P=∅\textsf{NP-complete} \cap \textsf{P} = \emptyset

Suppose there exists some language LL such that L∈NP-complete∩PL \in \textsf{NP-complete} \cap \textsf{P}.

  • Since L∈PL \in \textsf{P}, there exists a polynomial-time algorithm to decide LL.
  • Since L∈NP-completeL \in \textsf{NP-complete}, every language L′∈NPL' \in \textsf{NP} can be reduced to LL in polynomial time (L′≤PLL' \le_{\textsf{P}} L).
  • Since we can reduce any L′∈NPL' \in \textsf{NP} to LL in polynomial time, and LL itself can be solved in polynomial time, we can solve any L′∈NPL' \in \textsf{NP} in polynomial time. This implies NP⊆P\textsf{NP} \subseteq \textsf{P}.
  • Since P⊆NP\textsf{P} \subseteq \textsf{NP} always holds, this would mean P=NP\textsf{P} = \textsf{NP}.

However, we are given that P≠NP\textsf{P} \neq \textsf{NP}. Therefore, by contradiction, no such language LL can exist. Thus, NP-complete∩P=∅\textsf{NP-complete} \cap \textsf{P} = \emptyset. This statement is TRUE.

Analyzing the other options:

  • Option A (NP-complete=NP\textsf{NP-complete} = \textsf{NP}): False. If P≠NP\textsf{P} \neq \textsf{NP}, then any problem in P\textsf{P} (e.g., Minimum Spanning Tree) is in NP\textsf{NP} but cannot be in NP-complete\textsf{NP-complete} (otherwise P=NP\textsf{P} = \textsf{NP}).
  • Option C (NP-hard=NP\textsf{NP-hard} = \textsf{NP}): False. NP-hard\textsf{NP-hard} contains problems that are not even in NP\textsf{NP} (for example, the Halting Problem, which is undecidable).
  • Option D (P=NP-complete\textsf{P} = \textsf{NP-complete}): False. Since P≠NP\textsf{P} \neq \textsf{NP}, their intersection is empty, so they cannot be equal.

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

Published
Report a correction
Keep exploringMore Regular and Context-free Languages questions