Sub topic 15
Limits of Approximation: Gap Reductions and the PCP Theorem
This chapter assumes you know polynomial-time reductions and NP-completeness, the approximation ratio, and the argument from the chapter "Why General TSP Cannot Be Approximated." That argument was a first example of the technique developed here.
From Decision Hardness to Approximation Hardness
An ordinary NP-hardness proof shows that finding the exact optimum is hard. It says nothing about finding a value within 1% of the optimum. To rule out approximation, a reduction has to create a gap. A gap is a range of objective values that no instance produced by the reduction can have.
A gap problem Gap-Π[a, b] gives the promise that an instance has OPT ≥ b or OPT < a. The task is to decide which case holds. Suppose a maximization problem Π has a ρ-approximation with ρ > a/b. Run it on a "yes" instance and it returns at least ρ·b > a. On a "no" instance every solution has value below a. Comparing the output with a therefore solves the gap problem. If the gap problem is NP-hard, no such approximation exists unless P = NP.
There are two kinds of reduction:
- A gap-introducing reduction maps an NP-complete problem such as SAT to a gap problem. The TSP reduction from Hamiltonian cycle is one: tours of cost n versus cost above ρn.
- A gap-preserving reduction maps one gap problem to another while keeping a constant-factor gap. You use it to spread hardness from one problem to others.
The PCP Theorem
Gap-introducing reductions for TSP are easy because TSP lets you assign huge edge weights. Most problems give you no such freedom. The tool that makes general gap reductions possible is the PCP theorem (Arora, Lund, Motwani, Sudan, Szegedy, 1992):
NP = PCP(O(log n), O(1)).
In words: any NP proof can be rewritten so that a verifier using O(log n) random bits can check it by reading only a constant number of bits of the proof. If the proof is correct, the verifier always accepts. If no correct proof exists, the verifier rejects with probability at least 1/2, whatever proof it is shown.
The theorem has an equivalent form that is easier to use. There is a constant ε > 0 such that Gap-MAX-3SAT[(1−ε)m, m] is NP-hard. To see why, turn each random choice of the verifier into a small set of clauses. A correct proof satisfies all of the clauses. If no correct proof exists, a constant fraction of the clauses is always violated.
Tight Results
Håstad (2001) showed that for every ε > 0, approximating MAX-3SAT within 7/8 + ε is NP-hard. The random assignment from the MAX-SAT chapter achieves 7/8, so 7/8 is the exact limit. The code below checks the formula that makes the bound tight: all 8 sign patterns on three variables. Every assignment satisfies exactly 7 of the 8 clauses.
from itertools import product
clauses = [tuple(s * v for s, v in zip(signs, (1, 2, 3)))
for signs in product((1, -1), repeat=3)]
for bits in product((False, True), repeat=3):
sat = sum(any(bits[abs(l) - 1] == (l > 0) for l in c) for c in clauses)
print(bits, sat, "of", len(clauses))Known bounds for problems from this tutorial:
| Problem | Best known ratio | NP-hard below | Conditional bound |
|---|---|---|---|
| MAX-3SAT | 7/8 | 7/8 + ε | — |
| Vertex cover | 2 | √2 − ε | 2 − ε (Unique Games Conjecture) |
| Set cover | ln n | (1 − ε) ln n | — |
| Max-Cut | 0.878 | 16/17 + ε | 0.878 + ε (Unique Games Conjecture) |
| Metric TSP | about 1.5 | 123/122 | — |
Exercise
A reduction maps satisfiable 3SAT formulas to vertex cover instances with OPT ≤ k and unsatisfiable formulas to instances with OPT > 1.2k. What does this rule out, and why?
Show answer
It rules out any polynomial-time ρ-approximation for vertex cover with ρ < 1.2, unless P = NP. On a "yes" instance such an algorithm would return a cover of size at most ρk < 1.2k. On a "no" instance every cover is larger than 1.2k. Comparing the output size with 1.2k would then decide 3SAT in polynomial time.
Exercise
Why does the PCP theorem give hardness for a constant gap, while a standard NP-completeness proof does not?
Show answer
A standard reduction only separates OPT = m from OPT ≤ m − 1, so the gap shrinks as m grows. The PCP theorem guarantees that unsatisfiable formulas violate a constant fraction ε of the clauses, so the ratio gap 1 − ε does not depend on the instance size.