Question: Q 4 d _ ( i ) and a duration I _ ( i ) which is the time it takes to complete the job.

Q4d_(i) and a duration I_(i) which is the time it takes
to complete the job. You can't do two jobs at the same time. The lateness is given by t_(i)-l_(i)
where t_(i) is the completion time of job i. The objective is to minimize the maximum lateness
across all the jobs.
Example: d_(1)=50I_(1)=20,d_(2)=20I_(2)=5,d_(3)=40I_(3)=30, If the jobs are scheduled in order (1,3,2)
maximum lateness is 35.
Greedy algorithm 1: Schedule the jobs in increasing order of their duration (l_(i)).
Greedy algorithm 2: Schedule that job first whose deadline is the closest.
Greedy algorithm 3: Schedule that job first for which d_(i)- I_(i) is the smallest.
Which of these algorithms work? Give at least one example to show that an algorithm doesn't
work.
Q 4 d _ ( i ) and a duration I _ ( i ) which is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!