Greedy Heuristics and Linear Relaxations for the Random Hitting Set Problem

Gabriel Arpino, Daniil Dmitriev, Nicolò Grometto

TL;DR

While the classical Hitting Set (or Set Cover) problem is famously hard to approximate in the worst case, this paper proves that random instances behave much more gently. The authors establish a sharp phase transition in the linear programming (LP) integrality gap—showing it is constant in sparse settings and grows logarithmically in dense settings—and prove that the classic Greedy heuristic finds near-optimal solutions up to constant factors.

What Problem Does This Paper Address?

In the Hitting Set problem (equivalent to Minimum Vertex Cover on Hypergraphs or Set Cover), we are given a universe of $n$ elements and $m$ subsets; the goal is to select the smallest subset of elements that intersects every subset in the collection.

In worst-case complexity, Hitting Set is notoriously difficult: Lovász’s classic 1975 result proved that the greedy algorithm achieves an approximation ratio bounded by $1 + \log(d_{\max})$, where $d_{\max}$ is the maximum degree, and Feige later showed that approximating it better than $(1-\epsilon)\ln n$ is NP-hard.

However, many practical applications—such as group testing and combinatorial inference—involve random instances. This paper asks:

  1. What is the typical integrality gap between the true integer program ($\text{val}_{\text{IP}}$) and its fractional linear relaxation ($\text{val}_{\text{LP}}$) when subsets are formed by including each element independently with probability $p$?
  2. Does the classic Greedy algorithm find near-optimal solutions on these random instances?

Methods

Analyzing the greedy algorithm directly on random graphs is notoriously difficult because picking the highest-degree element immediately conditions the remaining hypergraph, destroying the independent and identically distributed (i.i.d.) structure for future steps.

To overcome this, the authors introduce a theoretical proxy called BlockGreedy:

  • Partitioning into Blocks: The $n$ elements of the universe are randomly partitioned into $K$ blocks of size $n/K$.
  • Step-by-Step Revelation: At iteration $t$, the algorithm reveals only the $t$-th block of previously unseen, independent columns and greedily picks the best element available so far.
  • Geometric Slicing: The authors construct a deterministic target sequence $f_t$ governing how many new sets each chosen element should hit. By using fine-grained binomial tail bounds and the Lambert $W$ function, they show that a fresh random block contains a suitable element with high probability.
  • Reduction to Standard Greedy: By running multiple independent runs of BlockGreedy on reshuffled blocks and applying a coupon-collector-style union bound, the authors transfer their performance guarantees from BlockGreedy directly to the standard Greedy algorithm.

Datasets

Not discussed in the paper. The work is purely theoretical, analyzing probabilistic models where hyperedge-vertex incidences are independent $\text{Bernoulli}(p)$ random variables.

Key Insights and Ideas

  • A Tale of Two Regimes (Poisson vs. Gaussian): The problem's behavior depends entirely on the expected vertex degree, $mp$, relative to $\log n$:
  • Sparse Regime ($mp \ll \log n$): Degrees exhibit heavy, Poisson-like tails. The maximum degree $d_{\max}$ is significantly larger than the average degree $mp$. The optimal integral solution simply exploits these rare high-degree elements, and the LP relaxation captures this with essentially no gap ($\text{IPGAP} \sim 1$).
  • Dense Regime ($mp \gg \log n$): Degrees concentrate sharply around the mean $mp$ like a Gaussian, meaning the maximum degree is essentially identical to the average degree ($d_{\max} \sim mp$). As a result, the LP can spread fractional weights evenly (achieving $\text{val}_{\text{LP}} \sim 1/p$), whereas the integral solution requires picking multiple elements to hit the lingering uncovered sets, causing a true integrality gap to appear.
  • Average-Case Separates from Worst-Case: While worst-case Set Cover can force greedy heuristics to be $\Omega(\log m)$ times worse than optimal, random instances admit greedy solutions that are within a constant factor of the optimal integer solution.

Key Results

Under mild polynomial scaling assumptions ($m = \text{poly}(n)$ and $p \ge n^{-\delta}$):

  • Sparse Regime ($mp \lesssim \log n$): $$\text{val}_{\text{BGr}} \sim \text{val}_{\text{IP}} \sim \text{val}_{\text{LP}} \sim \frac{m}{d_{\max}}$$ The integrality gap is $\Theta(1)$ with high probability.

  • Dense Regime ($mp \gg \log n$): $$\text{val}_{\text{BGr}} \sim \text{val}_{\text{IP}} \sim \frac{1}{p} \log\left(\frac{mp}{\log n}\right), \quad \text{while} \quad \text{val}_{\text{LP}} \sim \frac{1}{p}$$ This yields a non-vanishing multiplicative integrality gap: $$\text{IPGAP} \sim \log\left(\frac{mp}{\log n}\right)$$

  • Performance of Standard Greedy: For $\delta < 1/2$, the standard Greedy algorithm matches the optimal IP up to constant factors: $$\mathbb{P}(\text{val}_{\text{Gr}} \sim \text{val}_{\text{IP}}) \ge 1 - \exp(-\sqrt{n})$$

Limitations and Future Work

  • Multiplicative vs. Additive Constants: The bounds hold up to multiplicative constants that may be large. The authors conjecture that the asymptotic ratios are very tight—e.g., $\text{val}_{\text{Gr}} / \text{val}_{\text{LP}} \to 1$ in very sparse regimes, and $\text{val}_{\text{Gr}} / \text{val}_{\text{IP}} \in (1, 1.5)$ elsewhere.
  • Density Restriction for Greedy: The reduction from BlockGreedy to standard Greedy requires $\delta < 1/2$ ($p \ge n^{-1/2}$). The authors conjecture this is a proof artifact that can be relaxed by varying block sizes dynamically.
  • LP-Guided Rounding: Fractional LP solutions assign higher weights to elements frequently picked by the optimal integer cover. Future work includes developing formal rounding algorithms that initialize solutions using the LP relaxation before running greedy steps.

Summary updated

Abstract

Consider the Hitting Set problem where, for a given universe 𝒳 = {1, ..., n} and a collection of subsets 𝒮₁, ..., 𝒮_m, one seeks to identify the smallest subset of 𝒳 which has a nonempty intersection with every element in the collection. We study a probabilistic formulation of this problem, where the underlying subsets are formed by including each element of the universe independently with probability p. We rigorously analyze integrality gaps between linear programming and integer programming solutions to the problem. In particular, we prove the absence of an integrality gap in the sparse regime mp ≲ log(n) and the presence of a non-vanishing integrality gap in the dense regime mp ≫ log{n}. Moreover, for large enough values of n, we look at the performance of Lovász’s celebrated Greedy algorithm [Lovász, 1975] with respect to the chosen input distribution, and prove that it finds optimal solutions up to multiplicative constants. This highlights separation of Greedy performance between average-case and worst-case settings.
BibTeX
@inproceedings{arpino2024greedy,
  author = {Gabriel Arpino and Daniil Dmitriev and Nicolò Grometto},
  title = {{Greedy Heuristics and Linear Relaxations for the Random Hitting Set Problem}},
  booktitle = {APPROX/RANDOM},
  year = {2024},
  url = {https://openreview.net/forum?id=crLfXZJpMZ},
}

Loading related content...

Figure