Online Primal-Dual Algorithms for Covering and Packing 3: A Deterministic O(log d log(n/OPT))-Competitive Algorithm for Online Unweighted Set CoverResearch Paper
Motivation
Online set cover is the basic covering problem in which the requests arrive over time. A ground set of elements and a family of sets are known in advance, but which elements must be covered is revealed one element at a time, and each arriving element has to be covered at once by a set chosen irrevocably. The problem models resource placement under unknown demand (facilities, servers, sensors that must serve clients as they appear) and is the prototype for a family of online covering problems.
Alon, Awerbuch, Azar, Buchbinder and Naor (SIAM J. Comput. 2009) gave the first deterministic algorithm, with competitive ratio for elements and sets, and showed that no deterministic algorithm does better than on some instances. Buchbinder and Naor (Math. Oper. Res. 2009) recast the fractional part of that algorithm as an instance of a general online primal-dual scheme for covering and packing linear programs, and turned an offline pessimistic estimator of Srinivasan into an online potential function. The result, in their Section 5.1, is a deterministic algorithm whose ratio depends on the maximum element frequency instead of the number of sets , and on the ratio instead of .
Timeline:
- 2003 (conference), 2009 (journal): Alon et al., deterministic for unweighted online set cover, with a potential .
- 2005 (conference), 2009 (journal): Buchbinder and Naor, the general online fractional covering/packing scheme, and the derandomized rounding of this mission.
Setting
A set-cover instance consists of a finite ground set of elements and a finite family of sets. For an element , is the collection of sets containing , and bounds its size: for every (the frequency). In the unweighted problem every set costs .
Elements arrive in a list . The algorithm maintains:
- fractional weights for the sets, produced by the paper's Section 3 scheme with coefficients: when an element arrives that is not yet fractionally covered (), its dual variable is raised to the least value at which
gives ; here is a parameter;
- a cover that only grows; is the set of elements covered by .
With , the potential is with
where is the optimum number of sets covering the arrived elements, assumed known, and . The rounding rule: each time the weight of a set is augmented, is added to if this does not increase .
Formalization targets
Goal: Lemma 5.2
Every arriving element is covered by , and at every time
This is the paper's with the constant its proof gives.
Milestones
- Theorem 3.2 (covering half): for every , the scheme with frequency bound yields a fractional cover of cost at most times that of any fractional cover.
- Lemma 5.1 (i): initially ; in every state.
- Lemma 5.1 (ii): after the weight of a set is augmented by , taking the set or excluding it leaves no larger than before.
Significance
The bound improves Alon et al.'s whenever sets are many but each element lies in few of them (), and whenever the optimum is large compared with . It also shows that the fractional part and the rounding part of an online covering algorithm can be designed separately: any online fractional solution with a competitive guarantee can be rounded deterministically by an online potential function. The same method gives the routing result of Section 5.2 of the paper.
As far as is known, none of these results is machine-checked. Related formal work on the platform covers Alon et al.'s algorithm and its bound (a different potential and a different fractional update), and the general covering scheme of Buchbinder and Naor's monograph; neither states Lemma 5.1 or Lemma 5.2, nor Theorem 3.2 for the scheme with in place of . A complete development here would give a verified derandomized rounding argument, reusable for other online covering problems.
Difficulty
The difficulty is not in the final inequality, which follows from in one line, but in keeping throughout. The decision to take a set must be made with no knowledge of future elements, and the potential has to account for elements that may never arrive: ranges over the whole ground set. Lemma 5.1 (ii) asks that, for every current state, one of the two decisions does not increase a non-linear function of all uncovered elements at once and this must hold for every state, not only for the states a particular run reaches. On the fractional side, Theorem 3.2 is only asserted, "along the same lines" as Theorem 3.1, so its constant has to be re-derived with in place of and with the scheme's continuous increase made discrete.
A tempting shortcut is to bound by the number of rounds or by directly; neither gives a logarithmic factor in , which comes only from the choice of in .
Formalization scope
The instance is the published OnlinePrimalDual.OnlineSetCover.SetCoverInstance (elements E, set indices T, incidence elemSets, positive costs c), with elementWeight and coveredBy. Unit costs are the hypothesis ∀ s, inst.c s = 1 in Lemma 5.2; Theorem 3.2 is stated for general positive costs. Logarithms are natural (Real.log), because they invert Real.exp.
Committed conventions:
- The fractional scheme is the discrete form of the continuous increase: in each round is the least (an
sInf) at which the new constraint holds. Arrival lists may repeat elements; an element already covered changes nothing. - The rounding treats each set's increase within a round as one augmentation; the augmented sets are processed one at a time in the order of a list
ordcontaining every set, and a set is added when . Lemma 5.2 holds for every order. - The algorithm is a function, so every run exists.
- is a natural number bounding the size of some cover of the arrived elements; bounds the frequency of every element. At the true optimum and the maximum frequency this is the paper's statement.
- Explicit constants replacing : Theorem 3.2's is ; Lemma 5.2's is with .
- The proof of Lemma 5.1 (i) on p. 13 prints where is meant ("", ""); the statement uses , and is printed "" for .
Not in scope: the packing half of Theorem 3.2, Theorem 3.1 for general coefficients, and the doubling wrapper of p. 12 that removes the assumption that is known. The guarantee is for the algorithm run with the stated ; a formalization in which 's product ranges only over arrived elements, or in which the weights or the chosen family are free variables constrained by hypotheses instead of being produced by the algorithm ( is an input of the algorithm, as the page assumes it known), would be a different and weaker statement and is ruled out.
Contributions welcome: proofs of the three milestones and of the goal, and general lemmas about the fractional round (attainment of the least , monotonicity of the weights) that other online covering missions can reuse.
Selected references
- N. Buchbinder, J. Naor, Online Primal-Dual Algorithms for Covering and Packing, Mathematics of Operations Research 34(2), 2009. https://doi.org/10.1287/moor.1080.0363
- N. Alon, B. Awerbuch, Y. Azar, N. Buchbinder, J. Naor, The Online Set Cover Problem, SIAM Journal on Computing 39(2), 2009. https://doi.org/10.1137/060661946
- A. Srinivasan, Improved approximation guarantees for packing and covering integer programs, SIAM Journal on Computing 29(2), 1999. https://doi.org/10.1137/S0097539796314240
- 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), 2009. https://doi.org/10.1561/0400000024