Skip to content
Official PYQ · 2006

GATE CS 2006 Q16 — Asymptotic Worst Case Time and Space Complexity

Explain with AI

Let S be an NP-complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?

Choose one option
View worked solution

Answer: B

To determine the correct statement, let us analyze the definitions of NP-completeness, NP-hardness, and the properties of polynomial-time reductions (≤p\le_p):

  1. Analyze problem SS:

    Since SS is NP-complete, it satisfies two conditions:

    • S∈NPS \in \text{NP}
    • SS is NP-hard, meaning for every problem X∈NPX \in \text{NP}, X≤pSX \le_p S.
  2. Analyze the reduction S≤pRS \le_p R:

    We are given that S≤pRS \le_p R. Since polynomial-time reduction is transitive:

    For any X∈NP,X≤pSandS≤pR  ⟹  X≤pR\text{For any } X \in \text{NP}, \quad X \le_p S \quad \text{and} \quad S \le_p R \implies X \le_p R

    By definition, any problem to which all problems in NP can be reduced in polynomial time is NP-hard. Therefore, RR is NP-hard.

    Since RR is not known to be in NP, we cannot conclude that RR is NP-complete (which requires being in NP).

  3. Analyze the reduction Q≤pSQ \le_p S:

    Reducing a problem QQ to an NP-complete problem SS only tells us that QQ is no harder than SS. It does not show that QQ is NP-hard or NP-complete. For example, QQ could be a simple problem in P\text{P} (since any problem in P\text{P} can be reduced to any non-trivial problem in NP\text{NP}).

Thus, the only statement we can definitively assert is that RR is NP-hard.

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

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