Consider the following scheduling problem. We are given a set of n tasks; task i has...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the following scheduling problem. We are given a set of n tasks; task i has a processing time pi representing the number of units of time it takes to complete. There is one resource, which can process only one task at a time; tasks cannot be interrupted once they begin. Let c; be the completion time of task i, the time when task i completes processing. Your goal is to schedule the tasks (i.e., determine what order to process them) so as to minimize the average completion time, 1 Ci. 1 n = (a) Suppose there are two tasks, with pi 5 and p2 = 9. There are two possible schedules: (i) the schedule that completes task 1 first, followed by task 2; and (ii) the schedule that completes task 2 first, followed by task 1. For each of these two schedules, compute the average completion time of tasks. (b) Describe a greedy algorithm that schedules the tasks so as to minimize the average completion time. Consider the following scheduling problem. We are given a set of n tasks; task i has a processing time pi representing the number of units of time it takes to complete. There is one resource, which can process only one task at a time; tasks cannot be interrupted once they begin. Let c; be the completion time of task i, the time when task i completes processing. Your goal is to schedule the tasks (i.e., determine what order to process them) so as to minimize the average completion time, 1 Ci. 1 n = (a) Suppose there are two tasks, with pi 5 and p2 = 9. There are two possible schedules: (i) the schedule that completes task 1 first, followed by task 2; and (ii) the schedule that completes task 2 first, followed by task 1. For each of these two schedules, compute the average completion time of tasks. (b) Describe a greedy algorithm that schedules the tasks so as to minimize the average completion time.
Expert Answer:
Answer rating: 100% (QA)
a Schedule 1 Task 1 first followed by Task 2 C1 P1 P2 5 9 14 Schedule 2 Task 2 first followed by Tas... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these programming questions
-
Suppose you are given a set S = {a 1 , a 2 , . . . ,a n } of tasks, where task a i requires p i units of processing time to complete, once it has started. You have one computer on which to run these...
-
The curve described by the cable of the suspension bridge shown in Figure 8.70 is given by where x is the distance measured from one end of the bridge. What is the length of the cable (see Example...
-
FAR Corporation is considering a new project to manufacture widgets. The cost of the manufacturing equipment is $150,000. The cost of shipping and installation is an additional $15,000. The asset...
-
Why are the temporary accounts closed to the owners capital account at the end of the accounting period?
-
A \(1.00-\mathrm{m}\) metal bar that has a mass of \(0.900 \mathrm{~kg}\) is initially pinned in place on an incline \(65.0^{\circ}\) above the horizontal (Figure P27.37). There is a...
-
Desert Products uses a job- costing system with two direct- cost categories (direct materials and direct manufacturing labor) and one manufacturing overhead cost pool. Desert allocates manufacturing...
-
a) i] Define the term management? [1 marks] ii] Managers must have specific skills and play certain roles in organizations if they are to inspire employees to meet organizational objectives; explain...
-
Developed by Coca-Cola Asia Pacific, Coca-Cola Fiber+ (or just Coke Plus) is expanding through Hong Kong, Japan, Mainland China, Mongolia, and Taiwan. Coke Plus is a zero calorie soda (essentially...
-
Lillibridge & Friends, Incorporated provides you with the following data for its single product: Sales price per unit Fixed costs (per quarter): Selling, general, and administrative (SG&A)...
-
) Write computer program for designing of laterally supported beam as per 10 IS: 800. The program should be useful to handle the following load types: (i) Point load (ii) Uniformly varying load (iii)...
-
You are evaluating a business opportunity for your company that is anticipated to generate the following cash flows: Cash flow Year (millions) -$15 1 $4 2 $3 3 $13 If the required return for this...
-
Even though most corporate bonds in the United States make coupon payments semiannually, bonds issued elsewhere often have annual coupon payments. Suppose a German company issues a bond with a par...
-
Design a Production line product counter by using (Timer0 Interrupt in PIC16F877A) to count 15,000 pieces and then stop line production. Show the counter value on PORTB and PORTD. Note: (Connect a...
-
Assignments Content 1. Introduction A radiologic technologist (RT) is not just a person who "pushes a button." To understand the nature of how a radiographic image emerges, the technologist must know...
-
The following information pertains to Concord Video Company. 1. Cash balance per bank, July 31, $8,143. 2. July bank service charge not recorded by the depositor $34. 3. Cash balance per books, July...
-
A glass manufacturer produces hand mirrors. Each mirror is supposed to meet company standards for such things as glass thickness, ability to reflect, size of handle, quality of glass, color of...
-
How many steps would you expect POLLARD-RHO to require to discover a factor of the form p e , where p is prime and e > 1?
-
Write pseudocode for B-TREE-DELETE.
-
Professor Jagger proposes to show that SAT P 3-CNF-SAT by using only the truth-table technique in the proof of Theorem 34.10, and not the other steps. That is, the professor proposes to take the...
-
Perhaps the most famous case illustrating the enormous cost of winning back lost customers is that of the Tylenol Murders. Seven people in the Chicago area died suddenly after taking Tylenol...
-
Give a brief rationale for empowerment.
-
Describe the concept of MBWA.
Transmembrane Potentials & Characters Immune & Tumor Cell 1st Edition - ISBN: 100008356X - Free Book
Study smarter with the SolutionInn App