Part V · where the trunks converge · branch
Give each vertex a vector instead of a number, constrain only inner products, and round with a random hyperplane: Goemans–Williamson's 0.878, the Lovász theta function, and the hierarchies above them.
needs 24, 04~1½ h slides + 2¼ h lablab: uv run co lab 25
25 · overview
SDPs, vector programs, and what they can say that an LP can't.
The relaxation, hyperplane rounding, α ≈ 0.878, and why it's tight.
Lovász's θ between the independence number and the clique cover number.
Lasserre / sum of squares; why SDPs stay a theoretical tool.
Words with a dotted underline are glossary terms: click one for its definition. G lists every term in the unit, N shows the notes. Optional extra: interactive figures, linked from the slides they support by a small ▸ chip; skip them freely.
section 1
Linear programming over matrices.
25 · PSD
$X \succeq 0$, positive semidefinite: symmetric with all eigenvalues $\ge 0$. The PSD cone is convex, but not polyhedral. $\langle C, X\rangle$ is $\sum_{ij} C_{ij}X_{ij}$.
$X \succeq 0 \iff X = V V^\top$ for some $V$. So $X_{ij} = v_i \cdot v_j$ ($X$ is their Gram matrix): an SDP is a vector program, an optimisation over vectors $v_1, \dots, v_n$ with linear constraints on their inner products.
With $v_i$ restricted to $\{\pm 1\} \subset \mathbb{R}^1$ you get the integer problem. Allowing $\mathbb{R}^n$ is the relaxation.
Lab step 1: solve, then factor $X$ back into unit vectors (eigendecomposition, clip tiny negative eigenvalues, renormalise).
25 · PSD · example
Eigenvalues $\tfrac12$ and $\tfrac32$, both $\ge 0$. Factor it: $v_1 = (1, 0)$, $v_2 = (-\tfrac12, \tfrac{\sqrt3}2)$. Check $v_1 \cdot v_1 = 1$, $v_2 \cdot v_2 = \tfrac14 + \tfrac34 = 1$, $v_1 \cdot v_2 = -\tfrac12$ ✓.
Two unit vectors at 120°: the matrix is that picture.
Eigenvalues $3$ and $-1$. No vectors exist: two unit vectors have inner product between $-1$ and $1$, never 2.
For 2×2 with unit diagonal, PSD means exactly $|X_{12}| \le 1$: a cosine. In general PSD is "some unit vectors realise all these cosines at once", which is what makes it a constraint across all pairs.
section 2
Vectors, a random hyperplane, and 0.878.
25 · GW
A cut is $v_u \in \{\pm 1\}$: an edge contributes $w$ iff its ends differ. So SDP ≥ OPT.
The Max-Cut SDP. Round: draw $r$ with independent $N(0,1)$ entries (a uniform direction), and put $u$ on side $[v_u \cdot r \ge 0]$.
A random line separates two vectors with probability equal to their angle over 180° (the separation probability). The SDP credits that edge a bit more, $(1 - \cos\theta)/2$. Edge by edge, rounding keeps at least $\alpha_{GW}$ $= 0.87856$ of the credit, and the credit totals at least OPT.
the calculation: notes (N)
Worst per-edge angle: 133.6°, ratio 0.87856. At 90° and 180° rounding recovers everything.
25 · GW · example
The SDP optimum for $C_5$: $v_k$ at $k \times 144°$, so neighbours $v_k, v_{k+1}$ are 144° apart. Dashed: one hyperplane. Coloured: the side $\{v_0, v_2, v_3\}$.
| quantity | value |
|---|---|
| SDP: $5 \times (1 - \cos 144°)/2$ | 4.5225 |
| E[GW]: $5 \times 144/180$ | 4.0000 |
| OPT (an odd cycle loses one edge) | 4 |
Sides: $\{v_0, v_2, v_3\}$ against $\{v_1, v_4\}$. Edges $01, 12, 34, 40$ cross; edge $23$ doesn't. 4 edges cut: an optimal cut.
Every hyperplane in general position cuts exactly 4 here, so rounding always gets OPT. The whole loss, $4.52 \to 4$, is between the SDP and the integers.
25 · GW
Lab then: ratios to the optimum proved by CP-SAT, mean of 5 graphs, 200 hyperplanes each.
| graph | edge LP | tri LP | SDP | E[GW] | worst | best |
|---|---|---|---|---|---|---|
| G(12, ½) | 1.259 | 1.000 | 1.013 | 0.962 | 0.752 | 1.000 |
| G(20, ½) | 1.392 | 1.000 | 1.025 | 0.959 | 0.785 | 1.000 |
| G(30, 0.3) | 1.357 | 1.000 | 1.039 | 0.956 | 0.862 | 1.000 |
| G(40, 0.2) | 1.318 | — | 1.038 | 0.956 | 0.832 | 0.998 |
"worst" is the single worst hyperplane among 1 000 per row. "best" is the mean over graphs of the best of 200.
25 · GW
The three senses of tightness:
Rounding recovers $\frac{\theta/\pi}{(1-\cos\theta)/2}$ of each edge's SDP value. On C₅ the SDP vectors sit 144° apart: SDP 4.5225, E[GW] 4.0000, ratio 0.8845. Graphs whose vectors sit at 133.6° attain α (Karloff 1999).
Feige & Schechtman (2002): graphs on points of a high-dimensional sphere, joined when their angle is about 133.6°, with OPT / SDP → α. No rounding of this SDP can beat α.
Khot, Kindler, Mossel & O'Donnell (2007), with Majority is Stablest (Mossel, O'Donnell & Oleszkiewicz 2010): beating $\alpha_{GW} + \varepsilon$ is Unique-Games-hard. Without UGC, the NP-hardness threshold is 16/17 ≈ 0.941 (unit 22).
| angle | rounding / SDP per edge |
|---|---|
| 90° | 1.0000 |
| 133.56° (worst) | 0.8786 |
| 144° (C₅) | 0.8845 |
| 180° | 1.0000 |
The empirical 0.96 says random graphs rarely put their vectors at the bad angle. The theorem says someone can.
section 3
A number squeezed between two NP-hard ones.
25 · theta
Independence number ≤ theta ≤ clique cover number, the colouring number of the complement. Both outer numbers are NP-hard; θ is computable to any precision.
Perfect graphs have $\alpha = \chi(\bar G)$, so θ computes both, and colourings too, in polynomial time (Grötschel, Lovász & Schrijver 1981). No combinatorial polynomial algorithm for colouring perfect graphs is known.
| graph | α | θ | χ(Ḡ) |
|---|---|---|---|
| C₅ | 2 | 2.2361 | 3 |
| C₇ | 3 | 3.3177 | 4 |
| Petersen | 4 | 4.0000 | 5 |
| 5-cube | 16 | 16.0000 | 16 |
| G(14, ½) #0 | 6 | 6.0000 | 6 |
| G(14, ½) #2 | 5 | 5.1088 | 6 |
Why Lovász invented it: the Shannon capacity of C₅, the number of symbols per use a noisy 5-letter channel can send with zero error, is $\sqrt 5 = \vartheta(C_5)$.
25 · theta · example
$\{0, 2\}$ has no edge. Three vertices of a 5-cycle always include two neighbours. So $\alpha(C_5) = 2$.
It feeds theta a feasible matrix: $X = \tfrac12 \mathbf 1_S \mathbf 1_S^\top$ with $S = \{0,2\}$ has trace 1, is 0 on every edge, is PSD, and its entries sum to 2.
The cliques of C₅ are its edges and vertices. Cover the 5 vertices with $\{0,1\}, \{2,3\}, \{4\}$: 3 cliques. Two can't do it, since each covers at most 2 vertices. So $\chi(\bar C_5) = 3$.
The sandwich for $C_5$:
$$2 \;\le\; \vartheta(C_5) = \sqrt5 = 2.2361 \;\le\; 3$$θ lands strictly between, so $C_5$ is not perfect: the two NP-hard numbers differ, and the SDP says exactly how far apart the truth could be.
Compare the 5-cycle's Max-Cut on the previous slides: the same odd cycle, a different SDP, and again a gap caused by oddness.
section 4
Ever-tighter, ever-bigger.
25 · hierarchies
The Lasserre hierarchy: GW gave each vertex a vector. Level $r$ gives a variable to every group of up to $2r$ vertices, standing for "how often are these all 1 together" under a pseudo-distribution, and asks the table of them, the moment matrix, to be PSD.
precise definition: notes (N)
The LP analogue is Sherali–Adams (1990): same lifting, with linear constraints only.
Grigoriev (2001): random 3-XOR needs level Ω(n) to refute. So does a simple knapsack instance, $\sum x_i = n/2$ for odd $n$.
Schoenebeck (2008): random 3-SAT likewise. Tulsiani (2009) turned such gaps into hardness-of-approximation-style lower bounds for problems like vertex cover.
The hierarchies are a model of "all reasonable convex relaxations". A lower bound against level Ω(n) rules out a whole family of algorithms, without any complexity assumption.
25 · cost
Lab then, Max-Cut on G(n, 0.3), seconds:
| n | SDP (CLARABEL) | triangle LP (HiGHS) | CP-SAT proof |
|---|---|---|---|
| 15 | 0.02 | 0.03 | 0.01 |
| 25 | 0.07 | 0.27 | 0.14 |
| 35 | 0.26 | 1.92 | 1.38 |
| 60 | 3.14 | — | timeout (60 s) |
| 100 | 18.8 | — | — |
| 150 | 150.4 | — | — |
So "a theoretical tool" means: the ideas (vectors, rounding, hierarchies) are central, while off-the-shelf interior-point SDP solvers rarely are.
25 · lab
uv run co test 25
uv run co then 25 # bound ladder vs exact Max-Cut · tight angles · theta · seconds as n grows
25 · checkpoint
Goemans & Williamson, JACM 42 (1995).
Williamson & Shmoys (2011), ch. 6.
Lovász, IEEE Trans. Inf. Theory 25 (1979).
Laurent, "A comparison of the Sherali–Adams, Lovász–Schrijver and Lasserre relaxations", Math. OR 28 (2003).
26 metaheuristics, benchmarked honestly: from guarantees to measurements.