Concept Flow - Job Scheduling with Deadlines
Start with list of jobs
Sort jobs by profit descending
Initialize schedule slots as empty
For each job in sorted list
Find latest free slot before deadline
Yes No
Assign job
Repeat for next job
End with scheduled jobs and total profit
Jobs are sorted by profit, then each is placed in the latest free slot before its deadline if possible, skipping if no slot is free.
