Abstract
The classic Online Set Cover problem has long been defined by a significant performance gap between adversarial and offline settings. While the offline problem is approximable to a factor of $\ln n$, adversarial online arrivals force a competitive ratio of $O(\log m \log n)$. This paper demonstrates that this gap closes under the Random Order (RO) model. We present LearnOrCover, a polynomial-time algorithm that achieves an $O(\log mn)$ competitive ratio when elements arrive in a uniformly random permutation. This result effectively matches the best possible offline approximation and establishes that randomness in arrival order provides sufficient structural information to bypass traditional online lower bounds.
Introduction
In the Set Cover problem, one must select a minimum-cost collection of sets from a given family to cover a universe of elements. In the online variant, elements arrive sequentially, and the algorithm must irrevocably pick a set to cover each new element upon arrival. Historically, research has focused on the competitive ratio against an adaptive adversary, where the best possible performance is $O(\log m \log n)$.
However, the adversarial model is often overly pessimistic for real-world scenarios. This paper investigates the Random Order (RO) model, where an adversary chooses the set of elements, but their arrival sequence is determined by a uniform random permutation. The central contribution is proving that the RO model allows for a competitive ratio of $O(\log mn)$, which, for $m = \text{poly}(n)$, simplifies to $O(\log n)$—the fundamental limit of offline approximation.
The LearnOrCover Algorithm
The authors introduce LearnOrCover, a novel algorithm that departs from the "monotone" constraint typical of online algorithms. Traditional online approaches only increase the fractional weights of sets to ensure coverage. LearnOrCover instead utilizes a non-monotone "round-and-solve" strategy based on multiplicative weights.
The Strategy: Learn or Cover
For each arriving element $e_t$ that is not yet covered by the current selection, the algorithm executes a three-step process:
- Sampling: The algorithm attempts to cover $e_t$ by sampling sets based on their current fractional weights.
- Learning: If sampling fails, the algorithm treats the failure as a signal. It updates the fractional weights of all sets containing $e_t$ using a multiplicative weights update rule. This step "learns" the importance of specific sets for future, unseen elements.
- Backup: If the element remains uncovered after the update, the algorithm buys the cheapest available set containing $e_t$ as a safety measure.
By allowing fractional weights to be renormalized and updated non-monotonically, the algorithm avoids the structural "traps" that an adversary uses to force high costs in the standard online model.
Theoretical Insights
The core insight of the paper is that a random arrival order transforms the early stages of the process into a representative sample of the entire instance. This allows the algorithm to build a fractional solution that converges toward the optimal offline solution as more elements are processed.
Potential Function Analysis
To bound the competitive ratio, the authors employ a sophisticated potential function. This function combines Kullback–Leibler (KL) divergence—measuring the distance between the algorithm's current weights and an optimal distribution—with a term representing the expected remaining cost to cover the rest of the universe. This dual-purpose analysis tracks both the cost incurred and the information gained during the learning phase.
Key Results and Generalizations
- Optimal Competitive Ratio: The algorithm achieves an expected competitive ratio of $O(\log mn)$. Given that $\Omega(\log n)$ is a hard lower bound for even the offline case, this result is nearly optimal.
- Covering Integer Programs (CIP): The authors show that the
LearnOrCoverframework is robust. It extends to the more general class of Random Order Covering Integer Programs (ROCIP), maintaining the $O(\log mn)$ guarantee. - Lower Bounds: The paper establishes that no randomized algorithm can achieve better than $\Omega(\log n)$ in the RO model, confirming that the $O(\log mn)$ result is the best one can hope for.
- Single-Pass Efficiency: Beyond the online setting,
LearnOrCoverfunctions as an efficient single-pass offline algorithm, making it highly suitable for large-scale streaming data applications where multiple passes over the dataset are computationally expensive.
Conclusion and Future Work
This work effectively settles the complexity of the Random Order Set Cover problem, showing it is essentially as easy as the offline version. However, several open questions remain. The current algorithm does not accommodate "box constraints" (upper limits on the frequency of set usage). Additionally, while the paper provides lower bounds for submodular cover, achieving a matching upper bound for general submodular functions remains a challenge for future research. Finally, while the algorithm is polynomial-time, the "guess-and-double" approach used to estimate the optimal cost may require further optimization for practical, high-performance implementations.
Summary updated