Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. 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

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

Step: 3

blur-text-image

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

Applied Statistics For Public And Nonprofit Administration

Authors: Kenneth J. Meier, Jeffrey L. Brudney, John Bohte

9th Edition

1285737237, 978-1285974521, 1285974522, 978-1285737232

More Books

Students also viewed these Finance questions