Skip to main content Accessibility help
×
Hostname: page-component-586b7cd67f-l7hp2 Total loading time: 0 Render date: 2024-11-27T16:39:39.375Z Has data issue: false hasContentIssue false

2 - Ski-Rental

Published online by Cambridge University Press:  07 May 2024

Rahul Vaze
Affiliation:
Tata Institute of Fundamental Research, Mumbai, India
Get access

Summary

Introduction

In this chapter, we consider a canonical online problem that captures the basic decision question encountered in online algorithms. Assume that you arrive at a ski resort in the middle of the ski season. To rent a pair of skis, it takes $1 per day, while to buy them outright, it costs $P. On each new day, you only get to see whether the season is on-going or not, and have to decide whether to buy the ski or keep renting. The objective is to ski for as long as the season lasts with minimum cost possible without, however, knowing the remaining length of the skiing season. This problem is popularly known as the ski-rental problem. The ski-rental problem illustrates the inherent challenge of making decisions under uncertainty, where the uncertainty can even be controlled by an adversary depending on your current or past decisions.

The ski-rental problem models the classic rent/buy dilemma, where the uncertainty about future utility makes the problem challenging. It is highly relevant in various real-world applications, e.g., whether to rent/buy an expensive equipment or a luxury item with unknown number of days of utility, networking/scheduling problems where there are multiple servers with different service guarantees and prices. In scheduling, the following simple problem is equivalent to the ski-rental problem. Consider two servers, where one is shared and follows a FIFO discipline and has a minimal cost while the other is costly but dedicated. The decision to make for each user/packet is whether to stay with the shared server or jump to the dedicated one any time until it is served/processed.

In this chapter, we consider both deterministic and randomized algorithms for the ski-rental problem, and derive optimal algorithms in both settings, which is typically not possible for most of the other online problems considered in the book. We also describe the generic technique to lower bound the competitive ratio of randomized algorithms using Yao's principle. Two extensions of the ski-rental problem – the TCP (transmission control protocol) acknowledgement problem and the Bahncard problem – are also discussed at the end.

Type
Chapter
Information
Online Algorithms , pp. 11 - 26
Publisher: Cambridge University Press
Print publication year: 2023

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Ski-Rental
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.003
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Ski-Rental
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.003
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Ski-Rental
  • Rahul Vaze, Tata Institute of Fundamental Research, Mumbai, India
  • Book: Online Algorithms
  • Online publication: 07 May 2024
  • Chapter DOI: https://doi.org/10.1017/9781009349178.003
Available formats
×