Question: Consider the following greedy strategies for this problem: 1. Select the earliest finishing interval and discard overlapping intervals. Keep doing this until all intervals have

Consider the following greedy strategies for this problem: 1. Select the earliest finishing interval and discard overlapping intervals. Keep doing this until all intervals have been eliminated (either selected or discarded). 2. Select the earliest starting interval and discard overlapping intervals. Keep doing this until all intervals have been eliminated (either selected or discarded). 3. Select the pair of non-overlapping intervals that have the smallest gap between them: find a pair of intervals i # j such that s; - fi > 0 is the smallest possible. Select both intervals and discard overlapping intervals. Recursively do the same selection process with intervals that finish at or before si: the recursive call will have Snew = S and Fnew = si. Similarly, recursively do the same selection process with intervals that start at or after fi: now Snew = f; and Fnew = F. If there is no such pair of intervals, select a single interval that minimizes the gap between S and F (do not make any further recursive calls). None of these strategies works all the time. Find a counterexample for each strategy. In other words, for each strategy, find a set of intervals and S and F so that the strategy does not produce an optimal solution, highlight intervals selected by the strategy and state the corresponding gap time, and highlight intervals in an optimal solution (one that minimizes the overall gap time) and state the corresponding gap time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
