The idea
- All the analyses so far prove:
algorithm cost <= alpha * OPT(LP relaxation)(27:14). - Natural question: can
alphabe pushed fromlog ndown tosqrt(log n)or a constant? (27:14) - Not if there is an inherent gap between
OPT(LP)andOPT(IP)on some instance: the algorithm returns an integral solution, so on the gap instance it is off by at least that factor (27:51,33:58).
Definition: the integrality gap is the worst-case (max over instances) ratio OPT(IP) / OPT(LP), usually stated as a function of the problem size n or another parameter (34:20, 34:44, 39:24).
Scope of the barrier: it rules out beating the gap via this particular LP relaxation, not via any algorithm. A smarter integer formulation, relaxed differently, may still do better (29:01, 29:27) — which ties directly back to the earlier "an LP relaxation, not the" correction.
Example 1 — Vertex cover: gap approaching 2
Instance: the complete graph K_n (30:27).
| Solution | Cost | Reasoning |
|---|---|---|
OPT(LP) | n/2 | Put x_v = 1/2 on every vertex; feasible and in fact optimal (31:34) |
OPT(IP) | n - 1 | Take all vertices but one. Any cover with <= n/2 vertices leaves two vertices out, whose connecting edge is then uncovered (31:34, 32:05) |
- Ratio
(2n - 2)/napproaches 2 asngrows (32:47,35:06). - Conclusion: relaxing
x_u in {0,1}tox_u >= 0already loses a factor of 2 — the 2-approximations of the previous topic are the best this LP can certify (30:08,30:27).
Example 2 — Set cover: gap of log n
The instance is built from linear algebra over F_2 (36:00):
- Fix an integer
Q > 0and setn = 2^Q - 1. - Universe = the nonzero vectors of
F_2^Q, i.e. length-Qbit strings (addition = bitwise XOR) (36:00,36:49). - Sets are indexed by
alpha in F_2^Q, whereS_alpha = { e : alpha . e = 1 mod 2 }(dot product mod 2) (37:25,37:57).
Goal: fractional cost is a constant, integral cost is at least Q ≈ log n (39:53).
Fractional side: OPT(LP) <= 2
- Every element lies in exactly half the sets: for a random
alpha,Pr[alpha . e = 1] = 1/2, which holds precisely because zero was removed from the universe (40:14,40:47). - So
x_S = 2/mfor every set is feasible (each element's constraint sums to1), with total cost2(41:21,42:07,42:30).
Integral side: OPT(IP) >= Q
By contradiction (42:30):
- Suppose
Q - 1setsS_{alpha_1}, ..., S_{alpha_{Q-1}}cover the universe — i.e. the intersection of their complements is empty (only the excluded zero vector survives) (43:29,43:54). - That intersection is
{ e : alpha_i . e = 0 for all i = 1..Q-1 }— aQ-dimensional space cut byQ - 1linear constraints (44:25). - Such a subspace has dimension at least 1, hence is non-empty — contradiction (
44:55,45:32). - Therefore at least
Qsets are needed, and the gap isQ / 2 = Theta(log n)(45:32).
Beyond LP barriers: NP-hardness of approximation
A stronger kind of statement forgets LP relaxations entirely: unless P = NP, no polynomial-time algorithm beats a given ratio (47:13, 47:37).
- Feige, 1998: set cover cannot be approximated better than
ln nunless SAT is solvable in timen^(log log n)(47:37,47:55). - Why that is strong evidence: the best known SAT algorithms run in exponential time, and
n^(log log n)is far cheaper than that (47:55). - The proof rests on the PCP theorem (probabilistically checkable proofs), machinery not covered in this course — mentioned so students know it exists (
48:23,48:42).
Notation caveat from the Q&A
A student points out the inequality was written backwards; the lecturer agrees. With OPT(LP) >= beta * OPT(IP), the example where LP = 1 and IP = 2 has beta = 1/2, and the integrality gap is 1/beta (38:28, 38:59, 39:24).