[go: up one dir, main page]

Skip to content

Greedy Algorithm to minimize lateness when scheduling jobs on a processor

Notifications You must be signed in to change notification settings

SleekPanther/minimize-lateness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimizing Lateness

Greedy Algorithm to minimize lateness when scheduling jobs on a processor

Problem Statement

  • Processor can process 1 job at a time
  • Job j requires tj units of processing time and is due at time dj
  • j starts at time s(j), it finishes at time f(j) = s(j) + tj
  • Lateness = max {0, f(j) – dj}
  • Goal: schedule all jobs to minimize the maximum lateness

Input Jobs

Algorithm

Consider jobs with Earlieast Deadline first

Runtime

Sorting O(n log(n)) + for-loop Θ(n)
O(n log(n))

Optimal Job Ordering

Max Lateness = 1

References