Skip to content
Official PYQ · 2003

GATE CS 2003 Q12 — Asymptotic Worst Case Time and Space Complexity

Explain with AI

Ram and Shyam have been asked to show that a certain problem Π\Pi is NP-complete.\text{NP-complete}. Ram shows a polynomial time reduction from the 3-SAT\text{3-SAT} problem to Π\Pi, and Shyam shows a polynomial time reduction from Π\Pi to 3-SAT.\text{3-SAT.} Which of the following can be inferred from these reductions?

Choose one option
View worked solution

Answer: C

To determine the complexity class of the problem Π\Pi, let us analyze the two polynomial-time reductions provided:

  1. Ram's Reduction (3-SAT≤pΠ3\text{-SAT} \le_p \Pi):
    Since 3-SAT3\text{-SAT} is a well-known NP-complete\text{NP-complete} (and thus NP-hard\text{NP-hard}) problem, reducing 3-SAT3\text{-SAT} to Π\Pi in polynomial time proves that Π\Pi is at least as hard as 3-SAT3\text{-SAT}. Therefore, Π\Pi is NP-hard\text{NP-hard}.

  2. Shyam's Reduction (Π≤p3-SAT\Pi \le_p 3\text{-SAT}):
    Since 3-SAT3\text{-SAT} is in NP\text{NP}, and we can reduce Π\Pi to 3-SAT3\text{-SAT} in polynomial time, it implies that Π\Pi can be solved by a non-deterministic Turing machine in polynomial time (by first reducing it to 3-SAT3\text{-SAT} and then solving 3-SAT3\text{-SAT}). Therefore, Π∈NP\Pi \in \text{NP}.

By definition, a decision problem is NP-complete\text{NP-complete} if and only if it satisfies both conditions:

  • It belongs to the class NP\text{NP} (proven by Shyam).
  • It is NP-hard\text{NP-hard} (proven by Ram).

Thus, we can conclude that Π\Pi is NP-complete\text{NP-complete}.

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

Published
Report a correction
Keep exploringMore Asymptotic Worst Case Time and Space Complexity questions