In the Greedy algorithm for the minimum set cover problem, how is the…

2025

In the Greedy algorithm for the minimum set cover problem, how is the cost-effectiveness of a set S defined during an iteration?

  1. A.

    Cost(S) / |S|

  2. B.

    Cost(S) / |C|, where C is the set of already covered elements

  3. C.

    Cost(S) / |S - C|, where C is the set of already covered elements

  4. D.

    |S - C| / Cost(S)

Attempted by 50 students.

Show answer & explanation

Correct answer: C

In the greedy algorithm for minimum set cover, cost-effectiveness is defined as the ratio of newly covered elements to the set's cost. Specifically, it calculates |S - C| / Cost(S), where S is the set and C represents already covered elements. This metric prioritizes sets that maximize new coverage per unit cost.

Explore the full course: Mppsc Assistant Professor