Maximum coverage problem

From HandWiki

The maximum coverage problem is a classical question in computer science, computational complexity theory, and operations research. It is a problem that is widely taught in approximation algorithms.

As input you are given several sets and a number [math]\displaystyle{ k }[/math]. The sets may have some elements in common. You must select at most [math]\displaystyle{ k }[/math] of these sets such that the maximum number of elements are covered, i.e. the union of the selected sets has maximal size.

Formally, (unweighted) Maximum Coverage

Instance: A number [math]\displaystyle{ k }[/math] and a collection of sets [math]\displaystyle{ S = \{S_1, S_2, \ldots, S_m\} }[/math].
Objective: Find a subset [math]\displaystyle{ S' \subseteq S }[/math] of sets, such that [math]\displaystyle{ \left| S' \right| \leq k }[/math] and the number of covered elements [math]\displaystyle{ \left| \bigcup_{S_i \in S'}{S_i} \right| }[/math] is maximized.

The maximum coverage problem is NP-hard, and can be approximated within [math]\displaystyle{ 1 - \frac{1}{e} + o(1) \approx 0.632 }[/math] under standard assumptions. This result essentially matches the approximation ratio achieved by the generic greedy algorithm used for maximization of submodular functions with a cardinality constraint.[1]

ILP formulation

The maximum coverage problem can be formulated as the following integer linear program.

maximize [math]\displaystyle{ \sum_{e_j \in E} y_j }[/math] (maximizing the sum of covered elements)
subject to [math]\displaystyle{ \sum{x_i} \leq k }[/math] (no more than [math]\displaystyle{ k }[/math] sets are selected)
[math]\displaystyle{ \sum_{e_j \in S_i} x_i \geq y_j }[/math] (if [math]\displaystyle{ y_j \gt 0 }[/math] then at least one set [math]\displaystyle{ e_j \in S_i }[/math] is selected)
[math]\displaystyle{ y_j \in \{0,1\} }[/math] (if [math]\displaystyle{ y_j=1 }[/math] then [math]\displaystyle{ e_j }[/math] is covered)
[math]\displaystyle{ x_i \in \{0,1\} }[/math] (if [math]\displaystyle{ x_i=1 }[/math] then [math]\displaystyle{ S_i }[/math] is selected for the cover)

Greedy algorithm

The greedy algorithm for maximum coverage chooses sets according to one rule: at each stage, choose a set which contains the largest number of uncovered elements. It can be shown that this algorithm achieves an approximation ratio of [math]\displaystyle{ 1 - \frac{1}{e} }[/math].[2] ln-approximability results show that the greedy algorithm is essentially the best-possible polynomial time approximation algorithm for maximum coverage unless [math]\displaystyle{ P = NP }[/math].[3]

Known extensions

The inapproximability results apply to all extensions of the maximum coverage problem since they hold the maximum coverage problem as a special case.

The Maximum Coverage Problem can be applied to road traffic situations; one such example is selecting which bus routes in a public transportation network should be installed with pothole detectors to maximise coverage, when only a limited number of sensors is available. This problem is a known extension of the Maximum Coverage Problem and was first explored in literature by Junade Ali and Vladimir Dyo.[4]

Weighted version

In the weighted version every element [math]\displaystyle{ e_j }[/math] has a weight [math]\displaystyle{ w(e_j) }[/math]. The task is to find a maximum coverage which has maximum weight. The basic version is a special case when all weights are [math]\displaystyle{ 1 }[/math].

maximize [math]\displaystyle{ \sum_{e \in E} w(e_j) \cdot y_j }[/math]. (maximizing the weighted sum of covered elements).
subject to [math]\displaystyle{ \sum{x_i} \leq k }[/math]; (no more than [math]\displaystyle{ k }[/math] sets are selected).
[math]\displaystyle{ \sum_{e_j \in S_i} x_i \geq y_j }[/math]; (if [math]\displaystyle{ y_j \gt 0 }[/math] then at least one set [math]\displaystyle{ e_j \in S_i }[/math] is selected).
[math]\displaystyle{ y_j \in \{0,1\} }[/math]; (if [math]\displaystyle{ y_j=1 }[/math] then [math]\displaystyle{ e_j }[/math] is covered)
[math]\displaystyle{ x_i \in \{0,1\} }[/math] (if [math]\displaystyle{ x_i=1 }[/math] then [math]\displaystyle{ S_i }[/math] is selected for the cover).

The greedy algorithm for the weighted maximum coverage at each stage chooses a set that contains the maximum weight of uncovered elements. This algorithm achieves an approximation ratio of [math]\displaystyle{ 1 - \frac{1}{e} }[/math].[1]

Budgeted maximum coverage

In the budgeted maximum coverage version, not only does every element [math]\displaystyle{ e_j }[/math] have a weight [math]\displaystyle{ w(e_j) }[/math], but also every set [math]\displaystyle{ S_i }[/math] has a cost [math]\displaystyle{ c(S_i) }[/math]. Instead of [math]\displaystyle{ k }[/math] that limits the number of sets in the cover a budget [math]\displaystyle{ B }[/math] is given. This budget [math]\displaystyle{ B }[/math] limits the total cost of the cover that can be chosen.

maximize [math]\displaystyle{ \sum_{e \in E} w(e_j) \cdot y_j }[/math]. (maximizing the weighted sum of covered elements).
subject to [math]\displaystyle{ \sum{c(S_i) \cdot x_i} \leq B }[/math]; (the cost of the selected sets cannot exceed [math]\displaystyle{ B }[/math]).
[math]\displaystyle{ \sum_{e_j \in S_i} x_i \geq y_j }[/math]; (if [math]\displaystyle{ y_j \gt 0 }[/math] then at least one set [math]\displaystyle{ e_j \in S_i }[/math] is selected).
[math]\displaystyle{ y_j \in \{0,1\} }[/math]; (if [math]\displaystyle{ y_j=1 }[/math] then [math]\displaystyle{ e_j }[/math] is covered)
[math]\displaystyle{ x_i \in \{0,1\} }[/math] (if [math]\displaystyle{ x_i=1 }[/math] then [math]\displaystyle{ S_i }[/math] is selected for the cover).

A greedy algorithm will no longer produce solutions with a performance guarantee. Namely, the worst case behavior of this algorithm might be very far from the optimal solution. The approximation algorithm is extended by the following way. First, define a modified greedy algorithm, that selects the set [math]\displaystyle{ S_i }[/math] that has the best ratio of weighted uncovered elements to cost. Second, among covers of cardinality [math]\displaystyle{ 1, 2, ..., k-1 }[/math], find the best cover that does not violate the budget. Call this cover [math]\displaystyle{ H_1 }[/math]. Third, find all covers of cardinality [math]\displaystyle{ k }[/math] that do not violate the budget. Using these covers of cardinality [math]\displaystyle{ k }[/math] as starting points, apply the modified greedy algorithm, maintaining the best cover found so far. Call this cover [math]\displaystyle{ H_2 }[/math]. At the end of the process, the approximate best cover will be either [math]\displaystyle{ H_1 }[/math] or [math]\displaystyle{ H_2 }[/math]. This algorithm achieves an approximation ratio of [math]\displaystyle{ 1- {1 \over e} }[/math] for values of [math]\displaystyle{ k \geq 3 }[/math]. This is the best possible approximation ratio unless [math]\displaystyle{ NP \subseteq DTIME(n^{O(\log\log n)}) }[/math].[5]

Generalized maximum coverage

In the generalized maximum coverage version every set [math]\displaystyle{ S_i }[/math] has a cost [math]\displaystyle{ c(S_i) }[/math], element [math]\displaystyle{ e_j }[/math] has a different weight and cost depending on which set covers it. Namely, if [math]\displaystyle{ e_j }[/math] is covered by set [math]\displaystyle{ S_i }[/math] the weight of [math]\displaystyle{ e_j }[/math] is [math]\displaystyle{ w_i(e_j) }[/math] and its cost is [math]\displaystyle{ c_i(e_j) }[/math]. A budget [math]\displaystyle{ B }[/math] is given for the total cost of the solution.

maximize [math]\displaystyle{ \sum_{e \in E, S_i} w_i(e_j) \cdot y_{ij} }[/math]. (maximizing the weighted sum of covered elements in the sets in which they are covered).
subject to [math]\displaystyle{ \sum{c_i(e_j) \cdot y_{ij}} + \sum{c(S_i) \cdot x_i} \leq B }[/math]; (the cost of the selected sets cannot exceed [math]\displaystyle{ B }[/math]).
[math]\displaystyle{ \sum_{i} y_{ij} \leq 1 }[/math]; (element [math]\displaystyle{ e_j=1 }[/math] can only be covered by at most one set).
[math]\displaystyle{ \sum_{S_i} x_i \geq y_{ij} }[/math]; (if [math]\displaystyle{ y_j \gt 0 }[/math] then at least one set [math]\displaystyle{ e_j \in S_i }[/math] is selected).
[math]\displaystyle{ y_{ij} \in \{0,1\} }[/math]; (if [math]\displaystyle{ y_{ij}=1 }[/math] then [math]\displaystyle{ e_j }[/math] is covered by set [math]\displaystyle{ S_i }[/math])
[math]\displaystyle{ x_i \in \{0,1\} }[/math] (if [math]\displaystyle{ x_i=1 }[/math] then [math]\displaystyle{ S_i }[/math] is selected for the cover).

Generalized maximum coverage algorithm

The algorithm uses the concept of residual cost/weight. The residual cost/weight is measured against a tentative solution and it is the difference of the cost/weight from the cost/weight gained by a tentative solution.

The algorithm has several stages. First, find a solution using greedy algorithm. In each iteration of the greedy algorithm the tentative solution is added the set which contains the maximum residual weight of elements divided by the residual cost of these elements along with the residual cost of the set. Second, compare the solution gained by the first step to the best solution which uses a small number of sets. Third, return the best out of all examined solutions. This algorithm achieves an approximation ratio of [math]\displaystyle{ 1-1/e - o(1) }[/math].[6]

Related problems

Notes

  1. 1.0 1.1 G. L. Nemhauser, L. A. Wolsey and M. L. Fisher. An analysis of approximations for maximizing submodular set functions I, Mathematical Programming 14 (1978), 265–294
  2. Hochbaum, Dorit S. (1997). "Approximating Covering and Packing Problems: Set Cover, Vertex Cover, Independent Set, and Related Problems". in Hochbaum, Dorit S.. Approximation Algorithms for NP-Hard Problems. Boston: PWS Publishing Company. pp. 94–143. ISBN 978-053494968-6. 
  3. Feige, Uriel (July 1998). "A Threshold of ln n for Approximating Set Cover". Journal of the ACM (New York, NY, USA: Association for Computing Machinery) 45 (4): 634–652. doi:10.1145/285055.285059. ISSN 0004-5411. 
  4. Ali, Junade; Dyo, Vladimir (2017). "Coverage and Mobile Sensor Placement for Vehicles on Predetermined Routes: A Greedy Heuristic Approach". Proceedings of the 14th International Joint Conference on e-Business and Telecommunications. 2: WINSYS. pp. 83–88. doi:10.5220/0006469800830088. ISBN 978-989-758-261-5. http://www.scitepress.org/DigitalLibrary/PublicationsDetail.aspx?ID=ddWw1NMB3VI%3d. 
  5. Khuller, Samir; Moss, Anna; Naor, Joseph (Seffi) (1999). "The budgeted maximum coverage problem". Information Processing Letters 70: 39–45. doi:10.1016/S0020-0190(99)00031-9. 
  6. Cohen, Reuven; Katzir, Liran (2008). "The Generalized Maximum Coverage Problem". Information Processing Letters 108: 15–22. doi:10.1016/j.ipl.2008.03.017. 

References