Created
February 8, 2014 10:31
-
-
Save arkanath/8881629 to your computer and use it in GitHub Desktop.
Minimize Maximum Lateness - Pseudocode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: Variation of Interval Scheduling, with deadlines and duration given, all must be performed on a single resource, find the ordering with minimum maximum lateness of any interval. | |
Algorithm: | |
* Sort Jobs w.r.t the deadlines | |
* Let them be d1, d2, ... ,dn | |
* Initially f=s | |
* For (i=1:n) | |
* Assign s(i) f, f(i) = s(i) + t(i) | |
* f=f(i) | |
* EndFor | |
* Return <s,f> | |
Analysis: | |
* There is an optimal solution with no idle time. | |
* Proof of optimality by "Exchange Argument" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment