06 Scheduling Greedy Algorithm

Updated 4 Oct 2026

(0,2),(1,4),(2,6),(3,9),(5,7),(8,10)(0, 2), (1, 4), (2, 6), (3, 9), (5, 7), (8, 10)

Lemma (4.1)


A is a compatible set of requests.

Proof:

  • The first one chosen does not have any conflicts.
  • Then we remove all requests conflicting with the chosen one every time we choose a new one.
  • So no conflicts by construction.

Imagine you're trying to schedule meetings in a conference room. The greedy algorithm picks a meeting, then throws out any other meeting that overlaps with it. It repeats this process, ensuring that no two meetings ever overlap.