2. Suppose there are n machines with their available cycles given in an array P[1..n], and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Suppose there are n machines with their available cycles given in an array P[1..n], and n jobs with size S[1..n]. Ideally we would like to assign a job to a machine such that the size of the job roughly matches the available number of cycles on the machine. The goal is to find such an assignment to minimize the average mismatch. That is, if job i is assigned to machine j, then the mismatch is |S[i] P[j]]. Notice that one job can only be assigned to one machine and vice versa. Design an efficient algorithm for this purpose. If you use a greedy algorithm, you must prove that it is correct. 3. Consider the following problem. The input is a collection A = {a,, an} of n points on the real line. The problem is to find a minimum cardinality collection S of unit intervals that cover every point in A. These intervals can be placed anywhere on the line. (a) Prove or disprove that the following algorithm correctly solves this problem. Let I be the interval that covers the most number of points in A. Add I to the solution set S. Then recursively continue on the points in A not covered by I. (10pts) (b) Prove or disprove that the following algorithm correctly solves this problem. Let the smallest (leftmost) point in A. Add the interval I = [aj, aj+1] to the solution set S. Then recursively continue on the points in A not covered by I. (10 pts) aj be 2. Suppose there are n machines with their available cycles given in an array P[1..n], and n jobs with size S[1..n]. Ideally we would like to assign a job to a machine such that the size of the job roughly matches the available number of cycles on the machine. The goal is to find such an assignment to minimize the average mismatch. That is, if job i is assigned to machine j, then the mismatch is |S[i] P[j]]. Notice that one job can only be assigned to one machine and vice versa. Design an efficient algorithm for this purpose. If you use a greedy algorithm, you must prove that it is correct. 3. Consider the following problem. The input is a collection A = {a,, an} of n points on the real line. The problem is to find a minimum cardinality collection S of unit intervals that cover every point in A. These intervals can be placed anywhere on the line. (a) Prove or disprove that the following algorithm correctly solves this problem. Let I be the interval that covers the most number of points in A. Add I to the solution set S. Then recursively continue on the points in A not covered by I. (10pts) (b) Prove or disprove that the following algorithm correctly solves this problem. Let the smallest (leftmost) point in A. Add the interval I = [aj, aj+1] to the solution set S. Then recursively continue on the points in A not covered by I. (10 pts) aj be
Expert Answer:
Answer rating: 100% (QA)
2 To design an efficient algorithm for assigning jobs to machines to minimize the average mismatch we can use a greedy algorithm approach The algorithm can be outlined as follows 1 Sort the machines i... View the full answer
Related Book For
Computer Architecture Fundamentals And Principles Of Computer Design
ISBN: 9781032097336
2nd Edition
Authors: Joseph D. Dumas II
Posted Date:
Students also viewed these economics questions
-
Instructions: Given the Chart of Accounts and Transactions of ABC Repair Services, prepare the following; General Journal - using format given General Ledger- using format given Transactions: On...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
What is meant by budgetary control?
-
It has been a tough year in the poultry business, with supply outpacing demand and feed-grain prices rising substantially. But producers are hoping all that changes when the summer cook-out season...
-
Name and define the cultural values mentioned in the chapter and describe why values are important to an organization?
-
Jade Soon, the administrator of General Hospital, is interested in obtaining more accurate cost allocations on the basis of cause and effect. The $180,000 of laundry costs has been allocated on the...
-
A new stadium complex is being planned for Denver, and the Denver traffic engineer is attempting to determine whether the city streets between the stadium complex and the interstate highway can...
-
5. (6 points) Management of Mittel Company would like to reduce the amount of time between when a customer places an order and when the order is shipped. For the first quarter of operations during...
-
Describe how reliance on heuristics and intuition can lead to errors in judgment.
-
what manner does the integration of advanced technological tools, such as AI and machine learning, reshape traditional approaches to organizational efficiency and data management?
-
Monty Construction Company changed from the cost-recovery to the percentage-of-completion method of accounting for long-term construction contracts during 2026. For tax purposes, the company employs...
-
How did the Black Death and other political, social, and economic factors contribute to instability and disunity in European societies of the Middle Ages? What are the major features of a feudal...
-
How do I create a briefing sheet for a boss explaining the importance of the DBA and how access controls are an integral part of database administration?
-
How might sophisticated task delegation and workflow optimization models improve organizational skills, and what metrics can be used to evaluate their efficacy ?
-
https://acrobat.adobe.com/link/review?uri=urn%3Aaaid%3Ascds%3AUS%3Ae8912b23-ed09-31e6-b735-b86489a9f8ee Questions -Based on the article) a). Author's main thesis/arguments of article b) Assessment of...
-
If (x) 0 on the interval [a, b], the definite integral gives the exact area under the curve between x = a and x = b.
-
Is the of a diversified conglomerate close to 1? Why?
-
As a result of a change in the nature of its business, there is a relative rise in the proportion of fixed costs in a group As total costs. Will this affect the risk attached to its share price? If...
-
What law of statistics explains that in the long term, risk disappears? State your views.
Study smarter with the SolutionInn App