Question: 1 . [ 4 0 points ] ( U&G - required ) Consider the following scheduling problem: a single processing resource can handle jobs from
pointsU&Grequired
Consider the following scheduling problem: a single processing resource can handle jobs
from multiple customers. For each customer i we know that their job will take ti time to
be processed on the resource. Given an ordering of jobs from customers a schedule we
denote with Fi the time when job i has finished. For example, if there is only one job, F
t If there are two jobs, scheduled in the order job and immediately afterwards job
then F F t Each customer has a weight wi that represents how important they are
for the company. The happiness of customer i is expected to be dependent on the finishing
time of is job. Thus, the company decides to order the jobs to minimize the weighted sum
of the finishing times,
Design an efficient algorithm to solve this problem: given a set of n jobs with a processing
time ti and a weight wi for each job, order the jobs in such a way to minimize the weighted
sum of the finishing times,
Example. Assuming two jobs with time t and weight w and t and w
Schedule : job then job : F
Schedule : job then job : F
Note: you have to prove that your strategy yields the optimal solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
