GATE Computer ScienceHardGATE CS (PYQ pattern)

A polynomial-time many-one reduction from problem A to problem B is given (A ≤ₚ B). Which statements must be true? I. If B ∈ P then A ∈ P. II. If A is NP-hard then B is NP-hard. III. If B ∈ NP then A is NP-complete. IV. If A ∈ P then B ∈ P.

  1. A. I only
  2. B. I, II and III only
  3. C. I and II only
  4. D. II and IV only

Correct answer: C. I and II only

I follows by running the reduction and then the algorithm for B; II by transitivity of ≤ₚ. III confuses direction (A may be trivially easy), and IV is false: an easy A reduces to a hard B whenever A is trivial.

More Algorithms questions

Exams that ask this topic