The Online Set Cover Problem 2: Given α ≥ c(C_OPT), the Weighted Potential-Function Algorithm Never Fails and Pays at Most (6+o(1)) α log m log nResearch Paper
Motivation
Set cover is one of the basic covering problems of combinatorial optimization: given a ground set and a family of subsets with costs, choose a cheapest subfamily whose union contains every element. In many applications the elements to be covered are not known in advance but appear over time: requests for a service that must be served by opening facilities, clients that must be assigned to servers, or constraints of a covering program that are revealed one at a time. Each arriving element must be covered at once, and decisions cannot be undone. This is the online set cover problem, introduced by Alon, Awerbuch, Azar, Buchbinder and Naor (SIAM J. Comput. 39(2), 2009; conference version STOC 2003).
The quality of an online algorithm is measured by its competitive ratio: the worst case, over all arrival sequences, of the ratio between the algorithm's cost and the cost of an optimal offline cover of the elements that actually arrived. The paper gives a deterministic algorithm with ratio , where is the number of elements and the number of sets, and shows a nearly matching lower bound for deterministic algorithms. Its algorithm for the weighted case, analysed with a potential function, became a template for the online primal–dual method surveyed by Buchbinder and Naor (Found. Trends Theor. Comput. Sci. 3(2–3), 2009).
This mission formalizes the core of the weighted result: the algorithm that is given a value at least the optimal cost, and its guarantee (Theorem 3.4).
Setting
The ground set has elements and the family has sets; every set has a cost . Both are known to the algorithm in advance. For an element , denotes the sets containing . Elements of an unknown subset of arrive one at a time in a sequence ; on arrival each must be covered by a chosen set. The chosen family can only grow. is any family covering every arriving element, and .
The algorithm is given . It discards sets costing more than , buys sets costing at most outright, and rescales costs; on the resulting normalized instance and for every set (p. 365).
The algorithm keeps a weight for every set, initially ; the weight of an element is . With the set of covered elements and the indicator of , the potential is
with natural logarithms throughout. When arrives with nothing happens; otherwise the algorithm performs weight augmentation steps while . In a step, for each : (a) ; (b) if , add to when does not exceed its value before (a); (c) if has increased, return FAIL.
In Lean, the instance is the published OnlinePrimalDual.OnlineSetCover.SetCoverInstance over finite types X (elements) and T (sets), with the published elementWeight, coveredBy and potential. The run is OnlineSetCover.Weighted.Reachable inst α σ, the set of configurations reachable from initState σ under the transition relation Step.
Formalization targets
Goal: Theorem 3.4
On the normalized instance, with covering , , and , every reachable configuration is a running state (never FAIL) in which (i) every with is covered, and (ii)
Milestones
- Lemma 3.1 (p. 365): the number of augmentation steps satisfies .
- Lemma 3.2 (p. 366): throughout, .
- Lemma 3.3 (p. 366): a per-set step with never increases ; in particular the algorithm never fails.
The Proved platform theorem OnlinePrimalDual.OnlineSetCover.algorithm_correctness (the last paragraph of the proof of Theorem 3.4, with the invariant assumed) is included as a supporting reference.
Significance
Theorem 3.4 is the analysis of the subroutine; with the doubling over guesses of described on pp. 364–365 (which loses a factor of at most 4) it yields the paper's deterministic -competitive algorithm for weighted online set cover. The lower bound of Section 4 shows that no deterministic algorithm can do much better on general instances, so the result is close to the deterministic optimum. The technique, a potential that couples a fractional multiplicative-weights solution to a deterministic rounding, reappears in online covering and packing, online facility location and related problems.
The result is proved in the paper and restated in the Buchbinder–Naor monograph. On Prove2Me, the monograph's final step (from the invariant to the cost bound) is a Proved theorem, and its expectation form of the monotonicity lemma is Disproved because it omits the hypothesis . Neither the full statement about the algorithm's run nor Lemmas 3.1, 3.2 and the corrected Lemma 3.3 are formalized on the platform. This mission produces them, with the terms replaced by explicit expressions.
Difficulty
The cost bound in the last step is short once two facts about the run are available: that stays below , and that the fractional cost stays logarithmic. Neither is a local fact about one state. The first requires showing that, at every per-set step, one of the two deterministic choices (add or not) does not increase ; the paper proves this by a probabilistic argument over an auxiliary randomized choice, and the bound on the exponential term depends on the cost of the set being at most . The platform's earlier statement of this lemma, which omits that hypothesis, is Disproved. The second requires a bound on the number of augmentation steps over the whole run, which depends on the run's history and not on any single state. In Lean both are inductions over an operational semantics with real-valued exponentials and powers , where the initial bound is a genuine size condition on and .
Formalization scope
The run is a small-step transition relation. A state records the weights, the cover, the number of augmentation steps begun, the elements not yet given, and the position inside the current step; FAIL is a separate terminal configuration. The order in which a step visits is arbitrary and may differ between steps; every statement holds for every order. "Throughout the algorithm" means every reachable configuration, including those between per-set substeps. Arrival sequences are arbitrary lists (repetitions allowed) of elements covered by .
Conventions: costs, weights and are real; and are the cardinalities of the finite types cast to ; is Real.log; and are real powers. The paper's asymptotic expressions are replaced by what its proofs establish:
- Lemma 3.1: becomes ;
- Lemma 3.2: becomes , together with the intermediate bound ;
- Theorem 3.4 (ii): becomes ;
- "n and m large" becomes the hypothesis used for the initial potential (it holds, for instance, when and ).
The goal is a statement about the configurations the algorithm actually reaches from and the empty cover. Taking the invariant or the fractional-cost bound as a hypothesis on an arbitrary state would trivialize it, and is ruled out: those are exactly what the milestones establish. The doubling wrapper for unknown is not part of this mission.
A complete development needs an invariant for reachable states (positive weights, steps of an element processed in full), the per-set potential inequality, and the step-counting argument. The per-set inequality is reusable for the monograph's version of the algorithm. Contributions of proofs of any milestone, and of auxiliary invariants as separate lemmas, are welcome.
Selected references
- N. Alon, B. Awerbuch, Y. Azar, N. Buchbinder, J. Naor, The Online Set Cover Problem, SIAM Journal on Computing 39(2):361–370, 2009. https://doi.org/10.1137/060661946
- N. Buchbinder, J. Naor, The Design of Competitive Online Algorithms via a Primal–Dual Approach, Foundations and Trends in Theoretical Computer Science 3(2–3):93–263, 2009. https://doi.org/10.1561/0400000024