Abstract
We consider the following generalization of the classical problem of ski rental. There is a game that ends at an unknown time, and the algorithm needs to decide how to pay for the time until the game ends. In our generalization, there are two "payment plans" called "options," such that each option i (for i=1, 2) consists of two kinds of costs: bi is the (one time) cost to start using Option i, and ai is the (ongoing) usage cost per unit of time for Option i. We assume w.l.o.g. that a1>a2 and b1<b2. Additionally, we assume the existence of a transition cost c, which is incurred if we switch from Option 1 to Option 2. (In the classical version, b1=0, a2=0 and c=b2.)We give deterministic and randomized algorithms for this general setting and analyze their competitive ratio. We also prove that the competitive ratios of our algorithms are the best possible by presenting matching lower bounds for both the deterministic and the randomized cases.
Original language | English |
---|---|
Pages (from-to) | 42-52 |
Number of pages | 11 |
Journal | Theoretical Computer Science |
Volume | 584 |
DOIs | |
State | Published - 13 Jun 2015 |
Keywords
- Buy or rent
- Competitive analysis
- Duration prediction
- Randomized algorithms
- Ski rental
All Science Journal Classification (ASJC) codes
- Theoretical Computer Science
- General Computer Science