Question: Algorithms and optimization Our task is to schedule jobs on multiple processors. We have access to as many processors as we'd like, and the

Algorithms and optimization Our task is to schedule jobs on multiple processors.  




Algorithms and optimization Our task is to schedule jobs on multiple processors. We have access to as many processors as we'd like, and the goal is to minimize the number of processors we actually use. The processors are labelled P1, P2,.... Each job must begin running exactly at its scheduled start time and nothing else can run on the processor running this job until that job's duration has elapsed. A greedy algorithm for this task is described as follows: Input: Number of jobs n and list of descriptions of jobs jijn: for job ji we have its start time b; and its duration di. 1. Order the jobs based on start times. 2. For each job (starting with the earliest), assign it to the lowest numbered processor that is currently available. (a) How many processors does this algorithm use when its input is n = 6 and Job Start time j 0 Duration 3 J2 0 2 2 2 3 1 j5 16 3 1 2 (b) Come up with two different sequences of jobs (by specifying their start times and durations) such that at least 5 processors are required. Choose your examples so that they have a different number of total jobs from each other.

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 Finance Questions!