← Student tools · Problem 27 · Lecture 11 · Round 2 (30 pts)

3SAT → CLIQUE reduction

From a Boolean formula to a graph: satisfiability becomes "is there a clique of size m?".

CLO-4 · Mapping reduction Round 2 · 30 pts Lecture 11
🔊 Listen

CLIQUE = {⟨G, k⟩ : G has a complete subgraph on k vertices}. We show it is NP-complete by reducing 3SAT to it. The reduction is purely combinatorial.

Reduction · φ ∈ 3SAT ⇔ (Gφ, m) ∈ CLIQUE

Given a 3CNF formula φ with m clauses:

  1. Nodes: one per literal-occurrence (3 per clause; 3m nodes total).
  2. Edges: between two nodes iff they are in different clauses AND their literals are not negations of each other.
  3. Witness: a clique of size m corresponds to one literal per clause, all simultaneously truth-able. That's exactly a satisfying assignment.

The reduction is polynomial: Gφ has 3m nodes and ≤ 9m² edges. Construction is straightforward. Correctness: φ is satisfiable ⇒ pick a true literal in each clause ⇒ those m nodes form a clique. Conversely a clique of size m must pick one node per cluster (no intra-cluster edges) and the pairwise compatibility means the chosen literals can all be set true.

🔊 Listen
φ = (x ∨ y ∨ z) ∧ (¬x ∨ y ∨ ¬z) ∧ (x ∨ ¬y ∨ z) → G_φ has 3 clusters of 3 nodes x y z Clause 1 ¬x y ¬z Clause 2 x ¬y z Clause 3 A 3-clique (one node per cluster, no conflicting literals) y in c1 + y in c2 + x in c3 → satisfying assignment x = T, y = T, z = anything Edge rules: same-cluster vertices have NO edge; different-cluster and non-conflicting → edge.
🔊 Listen
Build the graph Gφ, find the 3-clique Auto-plays
🔊 Listen
🔊 Listen
🔊 Listen

Sipser: Theorem 7.32 (the original Cook–Levin-style proof), §7.5 (NP-completeness chain). Lecture notes: Module 5 slide 4. Companion problems: P22 (SAT), P28 (CLIQUE → VC), P26 (SAT → 3SAT).