Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we have n jobs where job J; requires time t and has priority pi. Our problem is to design a schedule of jobs

 




Suppose we have n jobs where job J; requires time t and has priority pi. Our problem is to design a schedule of jobs given by i, 12, ..., in to minimize the weighted sum of the completion times, that is, to minimize: n Pij Cij j=1 where the completion time C, of job Ji, is: tik k=1 For instance, suppose there are two jobs. The first job requires time t = 3 and has priority P = 2. The second job requires time t = 1 and has priority p2 = 10. If job 1 is done first then the weighted sum of the completion times is (2 3) + (10 4) = 46. If job 2 is done first then the weighted sum of the completion times is (10 1) + (2 4) = 18. Clearly, the second schedule (i = 2, 12 = 1) is better. 1. (2 marks) State a greedy choice to minimize the weighted sum of the completion times. 2. (5 marks) Prove that your schedule is optimal by swapping jobs which do not satisfy the greedy choice with those that do, and showing that the resultant schedule is no worse.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Finance questions

Question

3 > O Actual direct-labour hours Standard direct-labour hours...

Answered: 1 week ago