The set covering problem is a classical question in computer science and complexity theory. It is a problem "whose study has led to the development of fundamental techniques for the entire field" of approximation algorithms.[1]
As input you are given several sets. They may have some elements in common. You must select a minimum number of these sets so that the sets you have picked contain all the elements that are contained in any of the sets in the input. It was one of Karp's 21 NP-complete problems shown to be NP-complete in 1972.
More formally, given a universe
and a family
of subsets of
, a cover is a subfamily
of sets whose union is
. In the set covering decision problem, the input is a pair
and an integer k; the question is whether there is a set covering of size k or less. In the set covering optimization problem, the input is a pair
, and the task is to find a set covering which uses the fewest sets.
The decision version of set covering is NP-complete, and the optimization version of set cover is NP-hard.
| Covering-Packing Dualities | |
| Covering problems | Packing problems |
|---|---|
| Minimum Set Cover | Maximum Set Packing |
| Minimum Vertex Cover | Maximum Matching |
| Minimum Edge Cover | Maximum Independent Set |
Contents |
Integer linear program formulation
The minimum set cover problem can be formulated as the following integer linear program.[2]
| minimize | ![]() |
(minimize the total cost) | |
| subject to | ![]() |
for all ![]() |
(cover every element of the universe) |
![]() |
for all . |
(every set is either in the set cover or not) |
This ILP belongs to the more general class of ILPs for covering problems. The integrality gap of this ILP is at most logn, so its relaxation gives a factor-logn approximation algorithm for the minimum set cover problem (where n is the size of the universe).[3]
Hitting set formulation
Set covering is equivalent to the Hitting set problem. It is easy to see this by observing that an instance of set covering can be viewed as an arbitrary bipartite graph, with sets represented by vertices on the left, the universe represented by vertices on the right, and edges representing the inclusion of elements in sets. The task is then to find a minimum cardinality subset of left-vertices which covers all of the right-vertices. In the Hitting set problem, the objective is to cover the left-vertices using a minimum subset of the right vertices. Converting from one problem to the other is therefore achieved by interchanging the two sets of vertices.
Greedy algorithm
The greedy algorithm for set covering chooses sets according to one rule: at each stage, choose the set which contains the largest number of uncovered elements. It can be shown that this algorithm achieves an approximation ratio of H(s), where s is the size of the largest set and H(n) is the n-th harmonic number:
There is a standard example on which the greedy algorithm achieves an approximation ratio of log2(n) / 2. The universe consists of n = 2(k + 1) − 2 elements. The set system consists of k pairwise disjoint sets
with sizes
respectively, as well as two additional disjoint sets T0,T1, each of which contains half of the elements from each Si. On this input, the greedy algorithm takes the sets
, in that order, while the optimal solution consists only of T0 and T1. An example of such an input for k = 3 is pictured on the right.
Inapproximability results show that the greedy algorithm is essentially the best-possible polynomial time approximation algorithm for set cover (see Inapproximability results below), under plausible complexity assumptions.
Low-frequency systems
If each element occurs in at most f sets, then a solution can be found in polynomial time which approximates the optimum to within a factor of f as follows: while an uncovered element exists, add all (at most f) sets which contain this element to the cover. In the end we end up with some cover, which we output. To see that this is an f-approximation it suffices to note that every time we add f sets, at least one of those is in an optimal cover as well. For f = 2, this is the normal approximation algorithm for vertex cover.
See k-approximation of k-hitting set for an f-approximation of weighted set cover.
Inapproximability results
Lund & Yannakakis (1994) showed that set covering cannot be approximated in polynomial time to within a factor of
, unless NP has quasi-polynomial time algorithms. Feige (1998) improved this lower bound to
under the same assumptions, which essentially matches the approximation ratio achieved by the greedy algorithm. Raz & Safra (1997) established a lower bound of
, where c is a constant, under the weaker assumption that P
NP. A similar result with a higher value of c was recently proved by Alon, Moshkovitz & Safra (2006).
Related problems
- Hitting set is an equivalent reformulation of Set Cover.
- Vertex cover is a special case of Hitting Set.
- Edge cover is a special case of Set Cover.
- Set packing is the dual problem of Set Cover.
- Maximum coverage problem is to choose at most k sets to cover as many elements as possible.
Notes
- ^ Vazirani (2001, p. 15)
- ^ Vazirani (2001, p. 108)
- ^ Vazirani (2001, pp. 110-112)
References
- Noga Alon, Dana Moshkovitz, and Muli Safra. Algorithmic construction of sets for k-restrictions. ACM Transactions on Algorithms (TALG), v.2 n.2, p.153-177, April 2006.
- Cormen, Thomas H.; Leiserson, Charles E.; Rivest, Ronald L.; Stein, Clifford (2001). Introduction to Algorithms. Cambridge, Mass.: MIT Press and McGraw-Hill. pp. 1033–1038. ISBN 0-262-03293-7.
- Uriel Feige. A Threshold of ln n for Approximating Set Cover. Journal of the ACM (JACM), v.45 n.4, p.634 - 652, July 1998.
- Carsten Lund and Mihalis Yannakakis. On the hardness of approximating minimization problems. Journal of the ACM (JACM), v.41 n.5, p.960-981, Sept. 1994
- Ran Raz and Muli Safra. A sub-constant error-probability low-degree test, and a sub-constant error-probability PCP characterization of NP. Proceedings of STOC 1997, pp. 475-484, 1997.
- Vazirani, Vijay V. (2001). Approximation Algorithms. Springer-Verlag. ISBN 3-540-65367-8.
External links
Open source encyclopedia content modification information:
This page was last modified on 11 February 2010 at 17:30.
Authorship and Review
Open source encyclopedia content provided here is not reviewed directly by MedLibrary.org. Content is sourced directly from Wikipedia and is authored by an open community of volunteers. It is not produced by or in any way affiliated with MedLibrary.org.
Usage Guidelines
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article on "Set covering", which is available in its original form here:
http://en.wikipedia.org/w/index.php?title=Set_covering
All material adapted used from Wikipedia is available under the terms of the GNU Free Documentation License. Wikipedia® itself is a registered trademark of the Wikimedia Foundation, Inc.





.