Maximum Coverage Problem
Maximum Coverage Problem with greedy algorithm and RL
Maximum Coverage Problem
Given an universe of elements, a list of sets (possibly overlapping) and a bound , the goal is to find sets such that is maximized.
This is NP-hard
NP is the set of decision problems where YES answer has proof that can be checked in polynomial time, even if finding that proof might be hard. Intuitively, NP is the set of decision problems solvable in polynomial time by a nondeterministic Turing maching, and verifiable in polynomial time by a deterministic one.
A problem is NP-hard if a polynomial-time algorithm for would imply a polynomial-time algorithm for every problem in NP. In other words:
is NP-hard If can be solved in polynomial time, then P=NP
The Greedy Algorithm
Even though exact solutions are expensive, a simple greedy strategy gives a guaranteed approximation:
- Start with an empty collection.
- At each step, pick the set that covers the most still-uncovered elements.
- Repeat until you have chosen sets.
Theorem (Nemhauser, Wolsey, Fisher, 1978):
The greedy algorithm achieves a approximation ratio. This is the best possible polynomial-time guarantee unless .