Skip to content
Official PYQ · 2009

GATE CS 2009 Q14 — Regular and Context-free Languages

Explain with AI

Let πA\pi_A be a problem that belongs to the class NP. Then which one of the following is TRUE?

Choose one option
View worked solution

Answer: C

By definition, a problem πA\pi_A is NP-complete if and only if it satisfies two conditions:

  1. πA∈NP\pi_A \in \text{NP}
  2. πA\pi_A is NP-hard\text{NP-hard}

We are given that πA\pi_A belongs to the class NP\text{NP}. Therefore, if πA\pi_A is also NP-hard\text{NP-hard}, it is by definition NP-complete\text{NP-complete}. This makes Option C correct.


Analysis of other options:

  • Option A is FALSE: Since P⊆NP\text{P} \subseteq \text{NP}, any problem in P\text{P} (such as finding the shortest path in a graph) also belongs to NP\text{NP} and has a polynomial-time algorithm.
  • Option B is FALSE: If a problem πA∈NP\pi_A \in \text{NP} can be solved in polynomial time, it simply means πA∈P\pi_A \in \text{P}. This does not imply P=NP\text{P} = \text{NP} unless πA\pi_A is also NP-complete\text{NP-complete}.
  • Option D is FALSE: Every problem in NP\text{NP} can be solved by a non-deterministic Turing machine in polynomial time, which implies it is decidable. Thus, no problem in NP\text{NP} can be undecidable.

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

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