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 goal

image text in transcribed

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 ji, ..., jn: for job ji we have its start time bi and its duration di. 1. Order the jobs based on start times. 2. For each job (starting with the carliest), 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 | Duration j1 0 3 12 0 2 j3 2 2 14 3 js 3 1 16 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. NNN80 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 ji, ..., jn: for job ji we have its start time bi and its duration di. 1. Order the jobs based on start times. 2. For each job (starting with the carliest), 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 | Duration j1 0 3 12 0 2 j3 2 2 14 3 js 3 1 16 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. NNN80

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

Called To Account Financial Frauds That Shaped The Accounting Profession

Authors: Paul M. Clikeman

3rd Edition

1138327085, 9781138327085

More Books

Students also viewed these Accounting questions

Question

6.5 Identify at least 10 methods used for external recruitment.

Answered: 1 week ago

Question

6.6 Explain two strategies used to recruit nonpermanent staff.

Answered: 1 week ago