Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| courses:cs211:winter2012:journals:jeanpaul:chapterfour_sectionii [2012/02/26 20:36] – [Designing the algorithm] mugabej | courses:cs211:winter2012:journals:jeanpaul:chapterfour_sectionii [2012/02/26 22:13] (current) – [Designing the algorithm] mugabej | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| * After quite a bit of analysis, we find that the optimal solution to this problem is using a method called //Earliest Deadline First//: | * After quite a bit of analysis, we find that the optimal solution to this problem is using a method called //Earliest Deadline First//: | ||
| - | * Thus jobs are scheduled in the order d < | + | * Thus jobs are scheduled in the order d< |
| - | * | + | * s = start time for all of the jobs |
| + | * //f// = finishing time of the last scheduled job | ||
| + | \\ | ||
| + | === Algorithm === | ||
| + | |||
| + | >>>>>>>>>> | ||
| + | >>>>>>>>>> | ||
| + | >>>>>>>>>> | ||
| + | >>>>>>>>>> | ||
| + | >>>>>>>>>>>>>>>>>>>> | ||
| + | >>>>>>>>>>>>>>>>>>>> | ||
| + | >>>>>>>>>> | ||
| + | >>>>>>>>>> | ||
| + | \\ | ||
| + | === Algorithm Analysis === | ||
| + | |||
| + | * //Exchange Argument//: Gradually modifying an optimal schedule, | ||
| + | * There is an // | ||
| + | * The greedy algorithm has no idle time and by definition, | ||
| + | * All schedules with no inversions and no idle time have the same maximum lateness. | ||
| + | * There is an optimal schedule that has no inversions and no idle time. | ||
| + | * As a consequence, | ||
| + | |||
| + | --> 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. | ||
