Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2016/functional-programming-design-and-analysis-of-algorithms/8/d/solution

Let be an interval whose earliest end triggers greedy meeting . After that meeting, every remaining interval starts strictly after : its end is at least , and otherwise it would contain and be removed. Hence
The witness intervals are therefore pairwise disjoint. Every feasible schedule needs a distinct meeting in each one, yielding a lower bound of . The greedy schedule uses exactly meetings and covers everyone, so it is optimal. This is an optimality certificate for the interval stabbing problem.
To follow the source's suggested contradiction explicitly, suppose a schedule with covered everyone. Since ends at , some , so . If and , then none of the first alternative meetings can hit , which starts after . A later meeting must hit it by its end , implying . Mathematical induction gives for . But starts after , later than every alternative meeting. It is uncovered, a contradiction. For a nonempty family is immediately uncovered. The source's hint starts at index zero without defining ; the proof above starts at the actual first meetings instead.

New to topics? Read the docs here!