Back to the 2025 paper

Module 4: Tractable and Intractable Problems

20257m

Write and explain the Cook's theorem.

Worked SolutionAI Assisted

Cook's Theorem (1971) — SAT is NP-Complete

Statement:
The Boolean Satisfiability problem (SAT) — given a Boolean formula ϕ\phi in CNF, is there an assignment making ϕ\phi true? — is NP-complete.

More precisely Cook proved CNF-SAT is NP-complete; Levin independently proved general SAT. Hence 3-SAT is also NP-complete.

Proof Idea

Must show (1) SAT ∈\in NP and (2) SAT is NP-hard: every L∈L \in NP polytime-reduces to SAT.

  1. SAT ∈\in NP: certificate = satisfying assignment, verifier checks formula in polytime.

  2. Every NP language reduces to SAT:

    • Let L∈L \in NP decided by nondeterministic TM MM in time p(n)p(n) (polynomial).
    • For input xx, ∣x∣=n|x|=n, construct Boolean formula ϕx\phi_x that encodes the entire computation tableau of MM on xx: variables represent tape cells, head position, state at each time step t=0..p(n)t=0..p(n).
    • Add clauses enforcing: initial configuration = xx, each step follows MM's transition relation, and final state is accepting.
    • ϕx\phi_x is satisfiable iff there exists an accepting computation path of MM on xx.
    • Size of ϕx\phi_x is O(p(n)2)O(p(n)^2) — polynomial.
    • Conversion x↦ϕxx \mapsto \phi_x is deterministic polytime.
      Hence x∈L  ⟺  ϕx∈x \in L \iff \phi_x \in SAT → L≤pL \le_p SAT.

Significance

  • First NP-complete problem — seeds all other NP-completeness proofs by reduction from SAT.
  • Implies P=NP  ⟺  P = NP \iff SAT ∈\in P.
  • Foundations of complexity theory; Karp's 1972 paper reduced SAT to 21 other combinatorial problems (Clique, Vertex Cover, Hamiltonian Cycle), establishing NP-completeness as pervasive.

Corollary

3-SAT (each clause has exactly 3 literals) remains NP-complete via simple reduction from SAT (splitting long clauses with auxiliary variables).

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.