Question: 3 Name: PID: ( b ) ( 4 points ) Candidate Greedy Strategy 1 : Find the position that covers the most houses ( if
Name:
PID:
b points Candidate Greedy Strategy : Find the position that covers the most houses if there are several positions that tie for covering the most houses then pick the leftmost such position.
Remove the houses covered by this tower from the list and repeat the process on the remaining houses until all houses are covered.
Give a counterexample to this strategy: point for the counterexample, points for correct application of strategy point for better solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
