Mental Model
We want to do jobs in order to get the most reward before their deadlines. We pick jobs that fit in time and give the highest reward.
Analogy: Imagine you have a list of tasks to do before certain times, and each task gives you some money. You want to pick tasks to do so you earn the most money without missing deadlines.
Jobs: [Job1(deadline=2, profit=50), Job2(deadline=1, profit=20), Job3(deadline=2, profit=100)] Time slots: 1 -> 2 -> 3 -> null Schedule: [ ] -> [ ] -> [ ]
