202309281909

Tags : Advanced Algorithms

Set Cover Problem


Universe Family of subsets of , , , . Cost Goal: Pick a minimum size subcollection s.t. union of the collection is .

  • NP hardness follows because of reduction to this from vertex cover.

Greedy Algorithm

Set of elements covered so far while , Find the most cost-effective set . ( has min value of ), add to . (Resolve ties arbitrarily.) . output .

Analysis: (For a specific rum) uncovered elements so far For each element in , set .

.

Arrange elements of in the order in which they are covered in the algorithm, say . Observe: Before the iteration in which is covered, there are uncovered elements.

Price Upper Bound

Claim:

Proof: (It is equal if the first set is U. The other sets would have at least as much mean cost as the price of .) Assume that we get the elements for free. This gives the bound using the same argument as above. We can assume that because otherwise we’ll have on the RHS which is only better!

Tightness example

Consider c(S_{i})= \left\{ \begin{align*} \frac{1}{i}, && 1\le i\le n\\ 1+\epsilon, && i=n+1\\ \end{align*} \right.

Thus the analysis is tight and we get an approximation.


References

Approximation Algorithms Vertex Cover Problem Travelling Salesman Problem