Overview
Greedy set cover maintains uncovered elements and adds the set with the best coverage gain, often measured as new elements covered per unit cost.
Approximates set cover by repeatedly choosing the set that covers the most uncovered elements per cost.
Compact metadata for implementation and discovery.
Greedy set cover maintains uncovered elements and adds the set with the best coverage gain, often measured as new elements covered per unit cost.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n log n)
Worst
O(n^2)
Space
O(n)
score(S) = newly_covered(S) / cost(S)Selects the set with the best uncovered elements per unit cost.
Show repeatedly selecting the set that covers the most uncovered elements per cost on a small set cover approximation example.
The greedy set-cover bound is approximate; it is still often useful because the implementation is simple and scalable.
What each reference supports for this entry.
Textbook support for Greedy Set Cover's standard algorithm design, invariants, and complexity analysis.
Open sourceApproximation algorithms reference for Greedy Set Cover's guarantee, reduction, or approximation-analysis model.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Optimization · Core
Greedy Set Cover gives an approximate or heuristic answer for the problem family associated with Algorithm X.
Compare with thisOptimization · Core
Greedy Set Cover gives an approximate or heuristic answer for the problem family associated with Dancing Links.
Compare with thisOptimization · Extended
Greedy Set Cover gives an approximate or heuristic answer for the problem family associated with Branch-and-Bound Set Packing.
Compare with thisGreedy Set Cover gives an approximate or heuristic answer for the problem family associated with Algorithm X.
Greedy Set Cover gives an approximate or heuristic answer for the problem family associated with Dancing Links.
Greedy Set Cover gives an approximate or heuristic answer for the problem family associated with Branch-and-Bound Set Packing.