The new topic
- Primal-dual online algorithms are done; the course moves to approximation algorithms — now strictly offline (
1:12:17,1:12:46).
The setting
- An optimization problem whose best known algorithm is slow — NP-hard with exponential-time exact algorithms, or polynomial but with an impractical exponent like
n^10(1:13:25). - The course focus will be approximation algorithms for NP-hard problems (
1:13:59). - Target: a fast algorithm with cost ≤ α·OPT for minimization, or value ≥ α·OPT with
α < 1(e.g. half of OPT) for maximization (1:14:22,1:14:59). - The primal-dual method for approximation algorithms is much older than for online algorithms — the example to come dates to the '70s (
1:15:34,1:15:54). - Reference: Vijay Vazirani, Approximation Algorithms — this is a broad advanced-algorithms class, so only a slice of the field will be covered (
1:15:54,1:16:20).
Weighted set cover, offline
- Everything is known up front; sets now carry costs
c_S, and the goal is to minimizeΣ_{S chosen} c_Swhile covering the universe. Previously allc_S = 1(1:16:52,1:17:08). - Primal: minimize
Σ_S c_S·x_Ss.t.Σ_{S ∋ i} x_S ≥ 1for alli,x ≥ 0(1:18:55). - Dual: maximize
Σ_{i=1..n} y_is.t.Σ_{i ∈ S} y_i ≤ c_Sfor allS,y ≥ 0(1:19:22).
The greedy algorithm
- Unit-cost version (from CS 124): repeatedly take the set covering the most uncovered elements (
1:18:21,1:18:38). - Weighted generalization: while an uncovered element exists, take the
Sminimizingc_S / (number of new elements S covers)(1:20:08,1:20:56).
Primal-dual analysis of greedy (started)
- Start
x = y = 0. On takingS: setx_S = 1, and for each newly covered elementi ∈ Ssety_i = c_S / (number of newly covered elements)(1:21:28). - Interpretation: taking
Sraises the primal objective byc_S, and the newly covered elements share that cost among theiry_i, so the primal and dual costs are exactly equal (1:22:41,1:23:06). - The primal is obviously feasible; the dual is not — each constraint
Σ_{i ∈ S} y_i ≤ c_Swill be violated by at most alog nfactor, to be shown next lecture (1:23:24). - Scaling the dual down by that factor yields feasibility and proves greedy is a
log napproximation (1:23:48).
Named technique
- Deliberately violating dual feasibility and then scaling down is called dual fitting (
1:24:04).
Admin
- Pset 3 due Monday night (
1:24:22).