Back to the 2024 paper

Module 4: Tractable and Intractable Problems

20247m

Answer the following:
(i) Describe complexity classes P, NP, NP-complete, and NP-hard.
(ii) State and explain Cook's Theorem.
(iii) Why is it considered a foundational result in computational complexity theory?

Worked SolutionAI Assisted

Complexity Classes & Cook's Theorem — Summary

(i) PP, NPNP, NPNP-Complete, NPNP-Hard (as in Q22)

  • PP: polytime solvable deterministic — tractable.
  • NPNP: polytime verifiable (nondet polytime). P⊆NPP\subseteq NP.
  • NPNP-Hard: every NPNP ≤p_p it.
  • NPNP-Complete: NPNP-Hard ∩ NPNP — hardest in NPNP.

(ii) Cook's Theorem

SAT (and 3-SAT) is NP-complete. Statement: For any L∈NPL∈NP with nondet TM MM running in p(n)p(n), there is polytime construction x↦φxx↦ φ_x poly-size CNF such that x∈L⇔φxx∈L ⇔ φ_x satisfiable. See Q86 proof sketch (tableau encoding). Converse SAT∈NP via assignment verifier.

(iii) Why Foundational

  • First NP-complete problem — provides base for all NP-completeness reductions (Karp's 21 problems).
  • Establishes existence of hardest NP problems; implies P=NPP=NP iff SAT∈PP.
  • Launched theory of NP-completeness, guiding algorithm design (choose approximation/heuristic when NP-hard).
  • Connects logic, computation, and combinatorics; Levin independently discovered similar (Cook-Levin theorem).
  • Practical: SAT solvers despite NP-completeness handle huge instances (industrial use).

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.