Interval scheduling (earliest finish first)
Always take the interval that finishes first among those that still fit.
Intervals1-4, 3-5, 0-6, 5-7, 3-9, 6-10, 8-11, 12-16
Pick as many non-overlapping intervals as possible from 1–4, 3–5, 0–6, 5–7, 3–9, 6–10, 8–11, 12–16.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub