Concept Flow - Activity Selection Problem
Sort activities by finish time
Select first activity
For each next activity
Check if start >= last selected finish?
No→Skip activity
Yes
Select activity
Repeat until all activities checked
Return selected activities
Sort activities by finish time, then pick the earliest finishing compatible activities one by one.