Download Greedy Algorithm for Interval Scheduling to Minimize Lateness - Prof. Chandra S. Chekuri and more Study notes Algorithms and Programming in PDF only on Docsity!
CS 473ug: Algorithms
Mahesh Viswanathan
3232 Siebel Center
University of Illinois, Urbana-Champaign
Spring 2008
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Part I
Greedy Algorithms: Tools and Techniques
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Greedy Template
Initially R is the set of all requests
A is empty (* A will store all the jobs that will be scheduled *)
while R is not empty
choose i ∈ R
add i to A
remove from R all requests that overlap with i
return the set A
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Greedy Template
Initially R is the set of all requests
A is empty (* A will store all the jobs that will be scheduled *)
while R is not empty
choose i ∈ R
add i to A
remove from R all requests that overlap with i
return the set A
Main task: Decide the order in which to process requests in R
ES SP FC EF
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Figure: Counter example for earliest start time
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Earliest Start Time
Process jobs in the order of their starting times, beginning with
those that start earliest.
Figure: Counter example for earliest start time
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Smallest Processing Time
Process jobs in the order of processing time, starting with jobs that
require the shortest processing.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Smallest Processing Time
Process jobs in the order of processing time, starting with jobs that
require the shortest processing.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Smallest Processing Time
Process jobs in the order of processing time, starting with jobs that
require the shortest processing.
Back Counter
Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness
Correctness Running Time Extentions
Smallest Processing Time
Process jobs in the order of processing time, starting with jobs that
require the shortest processing.
Figure: Counter example for smallest processing time
Back Counter