The Online Set Cover Problem 1: A Deterministic O(log m log n)-Competitive Algorithm for Unweighted Online Set CoverResearch Paper
Motivation
Set cover asks for the fewest sets from a family of subsets of a ground set of elements whose union contains . It is NP-hard, and the best ratio achievable in polynomial time is (Feige 1998, doi:10.1145/285055.285059).
Alon, Awerbuch, Azar, Buchbinder and Naor (SIAM J. Comput. 39(2), 2009; preliminary version STOC 2003) introduced an online version. The instance is known in advance, but an adversary reveals elements one at a time, and each revealed element must be covered at once, by sets that can never be removed later. The set of elements that will actually be revealed is unknown. The paper's motivating example is a network of servers: the potential clients and the servers that can serve each client are known, but which clients will request service is not, and every activated server costs money.
The question is how much an algorithm loses against an offline adversary who knows and covers it with a family . This mission formalizes the paper's answer for unit costs (Section 2): a deterministic algorithm whose cover is within a factor of . Section 3 of the paper extends the algorithm to weighted sets and Section 4 proves a nearly matching lower bound; those are separate missions of this series.
Setting
An instance consists of a finite ground set with elements and a finite family of sets. For an element , is the collection of sets containing . Every set has cost , so the cost of a family is its number of members.
The adversary gives a sequence of elements (the given elements form ). A family covers if each element of lies in some member of it.
The algorithm keeps a weight for every set, initially , and a cover , initially empty. The weight of an element is , and is the set of elements covered by members of . The potential is
When the adversary gives an element :
- if , nothing changes;
- otherwise a weight augmentation is performed: (a) is the minimal integer with ; (b) every gets the weight ; (c) at most sets from are added to , so that does not exceed its value before the augmentation.
Step (c) prescribes a property of the chosen sets, not the sets themselves. A run on is any sequence of iterations, one per arrival, in which every iteration makes an admissible choice.
Formalization targets
Goal: Theorem 2.3
For , every arrival sequence , and every family covering : a run of the algorithm on exists, and every run ends with a cover that covers every element of and satisfies
The paper states ; the displayed bound is the constant its proof produces. Because the bound holds for every covering family, it holds in particular for an optimal one.
Milestones
Lemma 2.1. In every run, the number of iterations with a weight augmentation is at most
Lemma 2.2. In an iteration with a weight augmentation, from a state with positive weights, there is a family with such that
where is the potential before the iteration and the potential after it, computed with the augmented weights and the cover .
Significance
The theorem shows that online set cover over a known instance admits a deterministic -competitive algorithm. Section 4 of the paper shows this is nearly optimal: no deterministic algorithm achieves over a wide range of parameters. Its multiplicative weight updates were developed further into the online primal–dual framework for covering problems of Buchbinder and Naor (FnT TCS 3(2–3), 2009), whose Section 5.1 restates this algorithm.
The result is proved in the paper; it is not machine-checked. The Prove2Me platform has the weighted version's final counting step from the Buchbinder–Naor monograph, but no statement of Section 2. A complete development here gives a checked proof of the unweighted competitive ratio with an explicit constant, together with a reusable formal model of an online algorithm with a nondeterministic step, whose correctness includes the existence of an admissible choice at every step.
Difficulty
The central step is Lemma 2.2: a family of at most sets that keeps the potential from increasing must exist at every augmentation. The obvious rules fail. Adding every set of can exceed the cardinality bound, since may contain up to sets. Adding nothing, or a single set, can increase : every uncovered element sharing a set with has its weight raised, and its term grows by a factor up to . The paper's argument is non-constructive, and a formal proof must establish existence for a finite averaging statement over real powers of .
The second difficulty is that the algorithm is nondeterministic. A statement "every run has property P" is empty if no run exists, and the existence of a run is exactly Lemma 2.2 applied at every step under the invariants that weights stay positive and that each arriving element lies in some set. Feasibility (that every given element ends up covered) is not part of the algorithm's rule; it follows from the potential never increasing, which needs and a careful treatment of the initial potential, which is at most and equals when every element lies in every set.
Formalization scope
The instance is the published OnlinePrimalDual.OnlineSetCover.SetCoverInstance (finite types E of elements and T of set indices, incidence elemSets), with the published elementWeight () and coveredBy (). Its positive cost field is not used: all sets have unit cost and the cover is measured by its cardinality. and . Weights are real numbers; is the real power.
The algorithm is the definition OnlineSetCover.Unweighted.Algorithm: a relation Step for one iteration (recording whether a weight augmentation occurred) and Run for a sequence of iterations from the initial state, counting augmentations. Arrival sequences are lists and may repeat elements.
Explicit forms of the paper's asymptotic and unspecified quantities:
- the paper's "" sets per augmentation is (natural logarithm, rounded up: the proof repeats a random choice that many times and needs );
- Lemma 2.1's is (weights grow from to at most by factors at least );
- Theorem 2.3's is ;
- ranges over natural numbers; for the minimal integer with is one;
- the paper's remark "(Clearly, .)" is not encoded; the correct bound is ( gives ) and is not a hypothesis anywhere.
The goal adds the hypothesis , which the paper's assumes tacitly: for no set may be added and the element is never covered.
Replacing the algorithm by the set of states whose potential is at most the initial one, or dropping the existence of a run from the goal, gives a weaker theorem; part (a) of the goal rules this out.
A complete development needs elementary real analysis (Real.rpow, Real.log, ), a finite probabilistic or averaging argument for Lemma 2.2, and induction over runs. Contributions are welcome on any milestone; a derandomized averaging lemma for Lemma 2.2 would be reusable in the weighted mission of this series.
Selected references
- N. Alon, B. Awerbuch, Y. Azar, N. Buchbinder, J. Naor, The Online Set Cover Problem, SIAM J. Comput. 39(2):361–370, 2009. https://doi.org/10.1137/060661946
- U. Feige, A Threshold of ln n for Approximating Set Cover, J. ACM 45(4):634–652, 1998. https://doi.org/10.1145/285055.285059
- 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