## 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: b_{i} is the (one time) cost to start using Option i, and a_{i} is the (ongoing) usage cost per unit of time for Option i. We assume w.l.o.g. that a_{1}>a_{2} and b_{1}<b_{2}. 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, b_{1}=0, a_{2}=0 and c=b_{2}.)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