Suppose you have a sequence of jobs, indexed from 1 to N, that you want to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose you have a sequence of jobs, indexed from 1 to N, that you want to run on two processors. For each index i, running job i on processor 1 requires A[i] time, and running job i on processor 2 takes B[i] time. If two jobs i and j are assigned to different processors, there is an additional communication overhead of C[i, j]=Cj,i]. Thus, if we assign the jobs in some subset SC {1, 2,..., N} to processor 1, and we assign the remaining N-[S] jobs to processor 2, then the total execution time is iES A++ C[i, j]. jes iS,jes Describe an algorithm to assign jobs to processors so that this total execution time is as small as possible. The input to your algorithm consists of the arrays A[1... N], B[ldots N], and C[1... N, 1... N]. You should briefly justify the correctness of your design and state and analyse its runtime. Hint: Build a graph inspired by the matching example from class and using the inputs A, B, C;] as capacities (your graph does not need to be bipartite!). If the subset S of jobs is assigned to processor 1, what relevant object in your graph captures the execution time? Suppose you have a sequence of jobs, indexed from 1 to N, that you want to run on two processors. For each index i, running job i on processor 1 requires A[i] time, and running job i on processor 2 takes B[i] time. If two jobs i and j are assigned to different processors, there is an additional communication overhead of C[i, j]=Cj,i]. Thus, if we assign the jobs in some subset SC {1, 2,..., N} to processor 1, and we assign the remaining N-[S] jobs to processor 2, then the total execution time is iES A++ C[i, j]. jes iS,jes Describe an algorithm to assign jobs to processors so that this total execution time is as small as possible. The input to your algorithm consists of the arrays A[1... N], B[ldots N], and C[1... N, 1... N]. You should briefly justify the correctness of your design and state and analyse its runtime. Hint: Build a graph inspired by the matching example from class and using the inputs A, B, C;] as capacities (your graph does not need to be bipartite!). If the subset S of jobs is assigned to processor 1, what relevant object in your graph captures the execution time?
Expert Answer:
Related Book For
College Algebra With Modeling And Visualization
ISBN: 9780134418049
6th Edition
Authors: Gary Rockswold
Posted Date:
Students also viewed these programming questions
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
Priority reversal can happen when strings of varying needs synchronize on admittance to normal assets - strings of more prominent need might wind up looking out for strings of lesser need, prompting...
-
On January 1, 2014, Ultra Green Packaging purchased a used machine for $156,000. The next day, it was repaired at a cost of $4,068 and mounted on a new platform that cost $5,760. Management estimated...
-
Describe the most common types of wireless devices.
-
Two bowling balls are at rest on top of a uniform wooden plank with their centers of mass located as in the figure below. The plank has a mass of 4.50 kg and is 1.00 m long. Find the horizontal...
-
Show that the circulation of a free vortex for any closed path that encloses the origin is \(\Gamma\).
-
Project managers consider authority and funding as being very important in gaining support. Functional personnel, however, prefer friendship and work assignments. How can these two outlooks be...
-
A basketball player balances a ball on his finger. The ball is rotating with an initial angular speed of 4 rad/s. He then uses his hand to push along the edge of the ball to make it rotate faster....
-
Does the frequency distribution appear to have a normal distribution using a strict interpretation of the relevant criteria? Temperature (F) Frequency 35-39 1 40-44 0 45-49 6 50-54 15 Temperature (F)...
-
Your Friend Is Able To Invest $106 A Month In A 401(K) With A Predicted Growth Rate Of 3%. Your Friend's Company Will Match 50% Of Your Friend's Contributions. How Much Does Your Friend's Company...
-
Dr. Ivano Payne Just Bought An Audi TTS Coupe For $69,263.14 (Taxes Included). Audi Offered Her Financing At 1.9% (APR) And Her Monthly Payments (Over A 60-Month Term) Are $1,211.00. At The End Of...
-
Entering high school students make program choices among general program, vocational program and academic program. Their choice might be modeled using their writing score and their social economic...
-
The Four Basic Sources Of Long-Term Funds For A Firm Are Current Liabilities, Long-Term Debt Common Stock And Preferred Stock O O Current Liabilities, Long-Term Debt Common Stock, And Retained...
-
Simplified Marginal Tax Rates Beginning of range End of range Tax up to start of range Marginal rate 6 6 6 to to 12,000 0% 12,000 20,000 15% 20,000 48,000 1,200 22% 48,000 95,000 7,360 30% 95,000...
-
Chameleon's catch insects with their tongues, which they can rapidly extend to great lengths, in a typical strike, the chameleon's tongue accelerates at 250 m s -2 for 20 ms, then travels at constant...
-
Find the numerical value of each expression. (a) sech 0 (b) cosh -1 1
-
The following information has been extracted from the financial statements and the notes of Champigon Ltd. Required (a) Calculate the following for 2023 to one decimal place: i. current ratio ii....
-
Comparative figures from the statement of financial position for Warder Ltd are shown below. Required (a) Prepare common size statements for the company for both years, and comment on what this...
-
The following information has been extracted from the financial statements and notes thereto of Bass and Dide Ltd, consultants. Required (a) Calculate the following ratios for 2025: i. return on...
Study smarter with the SolutionInn App