Table of Contents

4.2. Scheduling to Minimize Lateness: An Exchange Argument

The Problem


–> Goal of the algorithm: Minimize the maximum lateness, L = maxi l i by scheduling all requests using nonoverlapping intervals.

Designing the algorithm


Algorithm

Order the jobs in order of their deadlines –> Takes O(nlogn) time
Assume d1 ≤ d2 ≤ d3,…,d n-1 ≤ dn
Initially f = s –> Takes O(1) time
Consider the jobs i= 1,2,…,n in this order
Assign job i to the time interval from s(i) = f to f(i) = f + ti
Let f = f + ti

End
Return the set of scheduled intervals [s(i),f(i)] for i = 1,2,…,n


Algorithm Analysis

–> For proofs of the above claims,see the book of the course

I give this section an 8/10 for being brief and concise in its explanation of the material.