Back to the 2023 paper

Module 4: Tractable and Intractable Problems

20237m

What is P, NP, NP hard, and NP complete? Write the relationship between all of them.

Worked SolutionAI Assisted

PP, NPNP, NPNP-Hard, NPNP-Complete — Relationship (as in Q22)

Definitions:

  • PP: solvable in polytime deterministic.
  • NPNP: verifiable in polytime deterministic (or solvable nondet polytime).
  • NPNP-Hard: every NPNP problem polytime reduces to it (L≤pHL\le_p H ∀LL∈NPNP).
  • NPNP-Complete: NPNP-Hard ∧ ∈NPNP.

Relations:

  • P⊆NPP \subseteq NP, unknown equality.
  • NPNP-Complete = NPNP ∩ NPNP-Hard.
  • P=NPP = NP iff some (equivalently all) NPNP-complete ∈ PP.
  • NPNP-Hard includes undecidable problems outside NPNP (e.g., Halting) → strictly larger.

Diagram concept: Draw big rectangle of all problems, big oval NPNP-Hard overlapping; inside oval, smaller oval NPNP; inside NPNP, region PP and ring NPNP-Complete at hardest edge of NPNP overlapping NPNP-Hard.

Proving XX NPNP-complete: Show X∈NPX∈NP (certificate verifier) + reduce known NPNP-complete Y≤pXY \le_p X.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.