Problem 2 - Online Algorithm (10pts) A popular example of the design of an on-line algorithm...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2 - Online Algorithm (10pts) A popular example of the design of an on-line algorithm to minimize the competitive ratio is the ski-buying problem. Suppose you can buy skis for $100, or you can rent skis for $10 per day. You decide to take up skiing, but you don't know if you will like it. You may try skiing for any number of days and then give it up. The merit of an algorithm is the cost per day of skis, and we must try to minimize this cost. One on-line algorithm for making the rent/buy decision is “buy skis immediately." If you try skiing once, fall down and give it up, then this on-line algorithm costs you $100 per day, while the optimum off-line algorithm would have you rent skis for $10 for the one day you used them. Thus, the competitive ratio of the algorithm “buy skis immediately” is at most , and that is in fact the exact competitive ratio, since using the skis one day is the worst possible outcome for this algorithm. On the other hand, the on-line algorithm "always rent skis” has an arbitrarily small competitive ratio. If you turn out to really like skiing and go regularly, then after n days, you will have paid $10n or $10/day, while the optimum off-line algorithm would have bought skis at once, and paid only $100. The competitive ratio can be arbitrarily small, which is 100 10-n Your question: design an on-line algorithm for the ski-buying problem that has the best possible competitive ratio. What is that competitive ratio? Hints: In the problem description, the competitive ratios of two example online algo- rithms were analyzed: (1) the online algorithm "buy skis immediately". For this algorithm, the worst case is when you ski only once and then give up. In that case, the competitive ratio (in this worst scenario of this online algorithm) is 10/100 (2) the online algorithm "always rent". For this algorithm, the worst case scenario is when you ski regularly for many times, let's say n times and n >> 10. In that case, the competitive ratio (in the worst scenario when n >> 10), the competitive ratio can be arbitrarily small, which is 100/10n The problem in the description asks you to design an online algorithm, which is different from (1) and (2), so that it has the best possible (i.e. maximum) competitive ratio. When designing the algorithm, you should take into consideration the one input that is available to you, t, which is the number of times you have previously gone skiing. For instance, you can design algorithms like, "buy skis after having gone skiing a number of times", where x is a variable. And you need to answer what the value of a should be, for that online algorithm to have maximum competitive ratio. Please include in your solution the analysis of competitive ratio for different values of x. Problem 2 - Online Algorithm (10pts) A popular example of the design of an on-line algorithm to minimize the competitive ratio is the ski-buying problem. Suppose you can buy skis for $100, or you can rent skis for $10 per day. You decide to take up skiing, but you don't know if you will like it. You may try skiing for any number of days and then give it up. The merit of an algorithm is the cost per day of skis, and we must try to minimize this cost. One on-line algorithm for making the rent/buy decision is “buy skis immediately." If you try skiing once, fall down and give it up, then this on-line algorithm costs you $100 per day, while the optimum off-line algorithm would have you rent skis for $10 for the one day you used them. Thus, the competitive ratio of the algorithm “buy skis immediately” is at most , and that is in fact the exact competitive ratio, since using the skis one day is the worst possible outcome for this algorithm. On the other hand, the on-line algorithm "always rent skis” has an arbitrarily small competitive ratio. If you turn out to really like skiing and go regularly, then after n days, you will have paid $10n or $10/day, while the optimum off-line algorithm would have bought skis at once, and paid only $100. The competitive ratio can be arbitrarily small, which is 100 10-n Your question: design an on-line algorithm for the ski-buying problem that has the best possible competitive ratio. What is that competitive ratio? Hints: In the problem description, the competitive ratios of two example online algo- rithms were analyzed: (1) the online algorithm "buy skis immediately". For this algorithm, the worst case is when you ski only once and then give up. In that case, the competitive ratio (in this worst scenario of this online algorithm) is 10/100 (2) the online algorithm "always rent". For this algorithm, the worst case scenario is when you ski regularly for many times, let's say n times and n >> 10. In that case, the competitive ratio (in the worst scenario when n >> 10), the competitive ratio can be arbitrarily small, which is 100/10n The problem in the description asks you to design an online algorithm, which is different from (1) and (2), so that it has the best possible (i.e. maximum) competitive ratio. When designing the algorithm, you should take into consideration the one input that is available to you, t, which is the number of times you have previously gone skiing. For instance, you can design algorithms like, "buy skis after having gone skiing a number of times", where x is a variable. And you need to answer what the value of a should be, for that online algorithm to have maximum competitive ratio. Please include in your solution the analysis of competitive ratio for different values of x.
Expert Answer:
Answer rating: 100% (QA)
To design an online algorithm for the skibuying problem with the best ie smallest maxi... View the full answer
Related Book For
Strategic Management An Integrated Approach
ISBN: 978-1111825843
10th edition
Authors: Charles W. L. Hill, Gareth R. Jones
Posted Date:
Students also viewed these programming questions
-
Briefly discuss 2 different reasons why some products/services can pass through the currency risk to the foreign customers? Provide an example for each reason ?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
In Exercises 7683, use a graphing utility to graph the function. Use the graph to determine whether the function has an inverse that is a function (that is, whether the function is one-to-one). f(x)...
-
Astronomers observe a 60.0-MHz radio source both directly and by reflection from the sea. If the receiving dish is 20.0 m above sea level, what is the angle of the radio source above the horizon at...
-
Burford Company produces a gasoline additive, Gas Gain. This product increases engine efficiency and improves gasoline mileage through more complete combustion. Careful controls are required during...
-
The numbers of deaths caused by fire per year from 1990 to 2005 in New South Wales Find the range, mean, variance, and standard deviation of the population data set. 8 13 2 11 4 2 2 4 4 3 5 5 14 1 6...
-
For fiscal year 2012, Mango Computer, Inc., reported net sales of $19,323 million, net income of $1,997 million, and no significant discontinued operations, extraordinary items, or accounting...
-
Matrix a is given by [ 1 1 - 7 - 6 ] find the inverse
-
Telco Ltd. is a Danish telecom company that prepares consolidated financial statements in full compliance with IFRS 10. The company has expanded dramatically in Central Asia in recent years by...
-
The basketball player likes to release his foul shots with an initial speed vo = 25.1 ft/sec. What 2 values of the initial angle 0 (0 <0)will cause the ball to pass through the center of the rim?...
-
What are some of the steps you would recommend to reduce the risk of litigation on an audit you would be part?
-
Do you believe that minimum mandatory sentences are an efficient method of determining sentencing? Why or why not?
-
Do you think the CFO should assess whether a short-term or long-term financing option is more suitable for addressing the company's working capital needs? Additionally, as the CFO evaluates external...
-
The cost accountant of Nono Chemicals Ltd determined the overhead-recovery rate for the year 2009 (based on direct-labour hours) with the following estimates: Rs. Indirect labour 1,15,000 Inspection...
-
What is fund balance? What is unassigned fund balance and where do you find it? What is an unrestricted fund balance reserve and where might this be found?
-
Analyze the beam by using moment distribution method Analyse the distribution beam g 4m- by method 20KN/M mmmmm 6 m- using moment 200 KN *2m
-
Let (X. A. p) be a measure space. Show that for any A,B A, we have the equality: (AUB)+(An B) = (A) + (B).
-
1. How did poor quality at United Technologies' Otis unit damage the company's financial performance and competitive position? 2. Why do you think quality was so poor at Otis? 3. What did UTC learn...
-
1. In what ways did McComb change Liz Claiborne's structure and control systems over time? 2. Why did he make these changes? Did they improve its performance? Search the Internet to find out what has...
-
Reread the Opening Case on the beginning format war in cloud computing. On the basis of the information contained in this case, which company do you think will most likely to win this format war? Why?
-
What did the temperance reformers see as the cause of wife abuse? How did they propose to solve the problem?
-
What kinds of qualifications might a statute place on someone who is in a dating relationship? What problems might these qualifications pose?
-
In brief, what is a civil order of protection?
Study smarter with the SolutionInn App