Greedy Set Cover Certificate
Compare greedy covering decisions with an exact small optimum and a provable approximation certificate.
Free theory articleCompare greedy covering decisions with an exact small optimum and a provable approximation certificate.
Concept & interpretation
Compare greedy covering decisions with an exact small optimum and a provable approximation certificate.
Experiment
Open the Greedy Set Cover Certificate module to explore the limits of the greedy algorithm.
- Set Set family to Greedy trap, Universe size to 6, and Costs to Unit.
- Observe that the greedy algorithm selects A, B, and C with a cost of 3, while the optimal cost is 2.
- Change Costs to Expensive A. This assigns a cost of 3 to set A and 1 to others.
- Observe that the greedy algorithm now avoids A initially and selects B and C with a cost of 2, matching the optimal cost.
- Change Set family to Uncoverable.
- Observe that the status becomes Uncoverable with 1 uncovered element, and the optimal cost and ratio are Unavailable.