Mental Model
We want to schedule jobs so that we finish as many as possible before their deadlines, choosing the most profitable ones first.
Analogy: Imagine you have a list of tasks to do before certain times, and each task gives you some money. You pick tasks that pay the most and fit them into your schedule without overlapping.
Jobs: [Job1: profit=20, deadline=2]
[Job2: profit=15, deadline=2]
[Job3: profit=10, deadline=1]
Schedule slots: [ _ ] [ _ ] (time 1 and 2)
Goal: Fill slots with jobs to maximize profit.