Competitive Analysis for Two-Level Ski-Rental Problem

Binghan Wu, Wei Bao, Dong Yuan

Introduction

The classic ski-rental problem is a fundamental model for online decision-making under uncertainty. It presents a simple choice: pay a small recurring cost (rent) or a large one-time cost (buy). However, modern subscription models, such as mobile data plans or transit passes, often feature a hierarchical structure. This paper introduces the Two-Level Ski-Rental (TLSR) problem, which adds a "combo" purchase option that covers multiple individual items, bridging the gap between theory and real-world services.

The Two-Level Ski-Rental Problem

In the TLSR model, a user faces demand for $K$ different types of tasks. For each task, there are three options:

  1. Rental: Pay a per-unit cost for immediate use.
  2. Single Purchase: Pay a fixed cost $C_s$ to cover all future demands for one specific task type.
  3. Combo Purchase: Pay a larger fixed cost $C_c$ to cover all future demands for all $K$ task types.

The challenge lies in the online nature of the problem: demand arrives unpredictably, and the user must decide when to upgrade from rental to a single purchase, or directly to a combo purchase, to minimize total cost.

Algorithmic Solutions

The authors propose two primary algorithms to solve the TLSR problem: a deterministic version (DTSR) and a randomized version (RTSR).

Deterministic Algorithm (DTSR)

The DTSR algorithm operates on a threshold-based logic. It maintains two types of cumulative costs: the cost for each individual instance and the overall cost across all instances.

Figure 1: Logic of the Two-Level Ski-Rental algorithm, showing the decision process for single and combo purchases.

As shown in the pseudocode in Figure 1, the algorithm checks if a task is already covered by a previous purchase. If not, it evaluates whether the specific instance's cost has reached a threshold $\lambda_s$ or if the total cost has reached $\lambda_c$. If these thresholds are met, the algorithm triggers a single or combo purchase, respectively. Otherwise, it defaults to rental.

Randomized Algorithm (RTSR)

To improve performance against adversarial demand, the RTSR algorithm selects thresholds from a probability distribution rather than using fixed values. This approach prevents an adversary from crafting a worst-case sequence that perfectly exploits fixed thresholds. The authors found that the competitive ratio for this randomized approach depends on the ratio between the single purchase price and the combo price.

Theoretical and Experimental Results

The paper establishes tight theoretical bounds for both algorithms. For the deterministic case, the competitive ratio is proven to be $3 - 1/C_s$. For the randomized case, the ratio is $e^\sigma / (e^\sigma - 1)$, where $\sigma$ relates the single and combo purchase prices.

Figure 5: Experimental vs. theoretical competitive ratios for the deterministic algorithm under various pricing scenarios.

Experimental evaluations using synthetic simulations (both uniform and heavy-tailed distributions) demonstrate that the algorithms are highly effective. As seen in Figure 5, the experimental competitive ratios (red dots) consistently fall well below the theoretical worst-case bounds (yellow bars), often staying within 1.5x of the optimal offline cost. This suggests that the algorithms are robust and perform even better in typical scenarios than their theoretical limits suggest.

Conclusion

The TLSR problem provides a more realistic framework for modern "buy-vs-rent" decisions. By introducing optimal deterministic and randomized algorithms, the authors provide a solid theoretical foundation for hierarchical online problems. Future work may extend this model to include non-uniform pricing for single purchases and temporal windows where coverage expires over time.

Summary updated

BibTeX
@inproceedings{wu2021competitive,
  author = {Binghan Wu and Wei Bao and Dong Yuan},
  title = {{Competitive Analysis for Two-Level Ski-Rental Problem}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i13.17429},
}
Figure