last greedy algorithm, activity selection problem, good