Question: We consider a variant of the load balancing problem, which we will refer to as LBHD ( for { sc Load - Balancing
We consider a variant of the load balancing problem, which we will refer to as LBHD for sc LoadBalancingWithHalfTheMachinesHavingDoubleSpeed The input consists of $n$ jobs with nonnegative processing times $ttldots tn$ and there are $m$ machines, out of which $m$ are singlespeed machines and $m$ are doublespeed machines. Processing a job $j$ on a singlespeed machine takes $tj$ time units, and processing it on a doublespeed machine takes $tj$ time units. As in the regular load balancing problem, the goal is to assign the jobs to the machines so as to minimize the makespan that is the maximum, over all machines, of the time the machine needs to process the jobs assigned to it Consider the following simple algorithm for the LBHD problem: the algorithm considers the job in arbitrary order, and puts the next job on the doublespeed machine with smallest load so far. In other words, the algorithm ignores the singlespeed machines and runs the GreedyBalance algorithm from lectureSection to assign the jobs to the doublespeed machines. beginsubproblem Show that the approximation ratio of $frac$ is it tight; that is show that for any $varepsilon$ there exists an input for which the algorithm's makespan is at least $fracvarepsilon$ as large as the optimal makespan. endsubproblem I was told that this excerpt from the textbook is helpful: It is not hard to give an example in which the solution is indeed close to a factor of away from optimal. Suppose we have m machines and n mmjobs. The first mmn jobs each require time tj The last job is much larger; it requires time tn m What does our greedy algorithm do with this sequence of jobs? It evenly balances the first n jobs, and then has to add the giant job n to one of them; the resulting makespan is T m What does the optimal solution look like in this example? It assigns the large job to one of the machines, say, M and evenly spreads the remaining jobs over the other m machines. This results in a makespan of m Thus the ratio between the greedy algorithms solution and the optimal solution is mmm which is close to a factor of when m is large. See Figure for a picture of this with m ; one has to admire the perversity of the construction, which misleads the greedy algorithm into perfectly balancing everything, only to mess everything up with the final giant item. In fact, with a little care, one can improve the analysis in to show that the greedy algorithm with m machines is within exactly this factor of m on every instance; the example above is really as bad as possible.
This is how I am suggested to answer the question: There's no easy way to find one LBHD input that leads to exactly a approximation. What the problem is asking you to find is: for every positive can you find an LBHD input such that running the simple algorithm results in a makespan that is at least times the optimal makespan on the same input? So you are tasked to find a family of inputs which can approach a approximation, even though it doesn't obtain it exactly. First, you prove that the algorithm's makespan is never worse higher than times the optimal makespan. Then, you prove that you cannot prove anything better than ; that is there are examples for which the algorithm's makespan is as bad high as epsilon times the optimal makespan.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
