Question

The first step in the greedy Activity Selection problem is to sort the activities. Which criterion is used for sorting to ensure the greedy choice property holds?

A Sort by increasing order of start times.
B Sort by decreasing order of finish times.
C Sort by increasing order of activity durations.
D Sort by increasing order of finish times.
E Sort by decreasing order of start times.
Practice Next

Hey! Ask a query