Definition
Interval Scheduling Problem
The interval scheduling problem is a scheduling problem in which each job has a fixed half-open interval
with start time and finish time .
A feasible schedule is a set such that no two selected intervals overlap:The objective is to maximise .
Derivation
On a single machine, two jobs can both be scheduled exactly when their intervals are disjoint. Hence feasibility depends only on pairwise compatibility, not on where the jobs are placed. The optimisation problem is therefore
A natural first choice is the job that leaves the most remaining time for later jobs. This is the compatible job with minimum finish time. Choosing by earliest start time is not sufficient, since a very early job may occupy the machine for a long time and block many short jobs.
Algorithms
Earliest Due Date First Algorithm
Definition
Link to originalEarliest Due Date First Algorithm
The earliest due date first algorithm is a greedy algorithm that repeatedly schedules the available job with smallest due date.
In the interval scheduling problem, each job has fixed interval and its due date is its finish time . The algorithm therefore chooses compatible jobs in increasing order of .