Approximation Algorithms for Combinatorial Problems IV: Greedy Set Cover C1 Has Worst-Case Ratio H(k) on SC(k)Research Paper
Motivation
Set covering asks for the fewest members of a family of sets whose union is everything the family covers. It models crew scheduling, facility siting, test-suite reduction, logic minimization and fault testing; Johnson names the last two as its practical applications. Karp showed in 1972 that the decision version is NP-complete (Karp 1972), so in practice one runs a heuristic and asks how far from optimal it can be.
David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (JCSS 9, 256–278) is one of the founding papers of the worst-case analysis of approximation algorithms. For set covering it analyses the obvious greedy rule, repeatedly take a set that covers the most still-uncovered points, and proves that on families whose sets have at most elements its output is never more than the harmonic number times the optimum, and that this factor is attained.
Timeline.
- 1974: Johnson proves the bound for unweighted set cover with sets of size at most , together with a matching family of examples (this mission).
- 1975: Lovász proves the same bound for the fractional relaxation, giving an integrality-gap statement (Lovász 1975).
- 1979: Chvátal extends the bound to weighted set cover, with the greedy rule choosing the set of least cost per newly covered point (Chvátal 1979).
- 1998: Feige shows that no polynomial-time algorithm achieves unless NP has slightly superpolynomial deterministic algorithms (Feige 1998), so the greedy guarantee is essentially the best possible.
Setting
An input of SET COVERING I is a finite family of finite sets. The set to be covered is . A subcover is a subfamily with , and its measure is . The optimum is the minimum measure of a subcover; itself is a subcover, so the minimum exists. The subproblem SC(k) restricts the inputs to families no set of which has more than elements.
Algorithm C1 keeps a family SUB of chosen sets, the set UNCOV of uncovered points, and an array SET holding the still-uncovered part of . It starts with SUB , UNCOV , SET. While UNCOV is nonempty it chooses an index with maximal, adds to SUB, and removes SET from UNCOV and from every SET. When UNCOV is empty it returns SUB. When several indices tie at Step 3 any of them may be chosen, so one input can have several choosable outputs. Following Section 2 of the paper, the algorithm's value is the worst choosable output, here the largest, and the ratio is .
For the proof the paper introduces configurations with , runs from a configuration (sequences of admissible choices ending when UNCOV is empty), , the set of indices chosen in a run , and calls a set selectable from if for some run from . Write .
Formalization targets
Goal: Theorem 4
For every :
The paper states this as for all , with equality for all sufficiently large . The two-part form above is the size-free equivalent.
Milestones
- Lemma 1. For a subcover with index set and the configuration after Step 1: is choosable by C1 if and only if is selectable from .
- Lemma 2. For any configuration , any selectable from and any with :
- Fig. 1. For every there is an explicit input of on points with and a choosable output of sets.
Significance
The result. Theorem 4 is the first proof that greedy set cover has a worst-case guarantee depending only on the largest set size, and it pins the guarantee down exactly: the constant cannot be lowered for any . Since , it also gives the well-known bound for general inputs. The bound and its later refinements are the standard reference point for analyses of greedy covering, dual fitting and submodular covering.
Formalizing it. The theorem has been proved since 1974. As far as a search of the platform shows, no machine-checked proof of it exists: the platform holds a Kearns–Vazirani-style statement ComputationalLearning.greedy_set_cover (the form for a greedy sequence, still open) and a dual-fitting certificate lemma for weighted set cover, neither of which covers the bound, the tie-breaking semantics or the tightness construction. A complete development provides both halves of Theorem 4, the configuration and run machinery of Lemmas 1–2, and the explicit Fig. 1 family.
Difficulty
The obvious argument charges each chosen set to the points it newly covers and compares the charges with an optimal cover. A statement about the initial input alone, with the original sizes of the optimal sets, does not survive a single greedy step: after a step the optimal sets are only partly uncovered and the remaining run faces a different instance. This is why Lemma 2 is stated for an arbitrary configuration, in terms of the current sizes , and for an arbitrary covering subfamily . Because Step 3 breaks ties arbitrarily, the statement must hold for every admissible run, and a formalization that fixes one tie-breaking rule proves a weaker upper bound and cannot express the tightness example, which relies on adversarial ties at every stage.
For the tightness half, the difficulty is bookkeeping: showing that the blocks of each segment are admissible choices at each stage and that no cover uses fewer than sets.
Formalization scope
- An input is an indexed family
S : ι → Finset αover a finite index typeιand a ground type with decidable equality. The indices play the role of ; two indices may carry the same set, which only widens the input class. The family, subcovers and are taken over the set of setsfamily S, as on the page. is aFinset.inf'over the nonempty finite set of subcovers; if then . - C1 is a nondeterministic step relation: a step is allowed for every index maximizing . An output is choosable if a finite chain of steps from the initial state reaches a halting state with that SUB. No tie-breaking rule is fixed.
- The paper's is a maximum over inputs of size at most in an unspecified notation; it is replaced by the size-free two-part statement above, which is equivalent because is a maximum over finitely many inputs and nondecreasing in .
- Ratios are stated multiplicatively in (), never as a quotient, so an input with does not make the bound vacuous, and the attainment part requires . is Mathlib's
harmonic k. - Configurations carry the covering condition as a field; runs are an inductive predicate on the list of chosen indices;
Selectable K Mmeans is the set of indices of some run. - Lemma 1 assumes the family's sets are pairwise distinct (the paper's family is a set of sets); without that the index set may contain a duplicate index C1 never chose.
- Trivializing formalizations are ruled out: a deterministic tie-break, a ratio written as a division, the original set sizes in place of in Lemma 2, or an attaining input with would each change the theorem.
Contributions welcome: proofs of Lemma 2 (the core induction), of Lemma 1, of the Fig. 1 run, and of Theorem 4 from these; the configuration/run layer and the Fig. 1 family are reusable for other greedy covering analyses.
Selected references
- David S. Johnson, Approximation algorithms for combinatorial problems, Journal of Computer and System Sciences 9 (1974), 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
- Richard M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
- László Lovász, On the ratio of optimal integral and fractional covers, Discrete Mathematics 13 (1975), 383–390. https://doi.org/10.1016/0012-365X(75)90058-8
- Vašek Chvátal, A greedy heuristic for the set-covering problem, Mathematics of Operations Research 4 (1979), 233–235. https://doi.org/10.1287/moor.4.3.233
- Uriel Feige, A threshold of ln n for approximating set cover, Journal of the ACM 45 (1998), 634–652. https://doi.org/10.1145/285055.285059