Online Bin Packing with Advice

Joan Boyar, Shahin Kamali, Kim S. Larsen, Alejandro López-Ortiz

Abstract

This paper investigates the advice complexity of the online bin packing problem, exploring how limited "insider information" about future items can improve algorithmic performance. We demonstrate that a small amount of advice—logarithmic in the total number of items—is sufficient to surpass the best possible traditional online competitive ratio of 1.54. Furthermore, we establish that linear advice allows for competitive ratios approaching 4/3, while proving a fundamental 9/8 lower bound threshold for sub-linear advice.

Introduction

Bin packing is a classic optimization challenge: given a sequence of items with varying sizes, the goal is to pack them into the minimum number of unit-capacity bins. In the online variant, items arrive one by one, and each must be placed immediately and irrevocably. This lack of foresight imposes a strict performance limit; even the most sophisticated online algorithms cannot achieve a competitive ratio (the ratio of bins used to the offline optimal) better than approximately 1.54.

The advice complexity model provides a framework to study the value of information. It assumes an all-knowing oracle provides a bitstring to the algorithm before it begins processing. By measuring the number of bits required to achieve specific competitive ratios, researchers can quantify the "gap" between purely online and fully offline optimization.

Methods and Algorithms

The authors introduce several novel strategies based on the advice-on-tape model. The core idea is to use advice bits to categorize items or reserve space for problematic size ranges.

The Medium Counter Algorithm

One of the paper's most significant contributions is the "Medium Counter" algorithm. By receiving only $\lceil \log n \rceil$ bits of advice—representing the total count of items with sizes in the range $(1/2, 2/3]$—the algorithm can reserve specific bins for these "medium" items. This simple piece of information allows the algorithm to achieve a competitive ratio of 1.5, effectively breaking the 1.54 barrier of standard online algorithms.

Linear Advice and Classification

For higher performance, the paper proposes a $4/3 + \epsilon$ algorithm that utilizes $2n + o(n)$ bits of advice. This approach uses two bits per item to classify them into types, allowing the algorithm to follow a near-optimal packing strategy.

Adversarial Sequence Construction

To establish lower bounds, the authors employ combinatorial reductions and adversarial sequences. These sequences are designed such that an algorithm without enough advice cannot distinguish between two inputs that require vastly different packing strategies to remain efficient.

Comparison of packings for two adversarial sequences. These sequences demonstrate how small changes in item distribution require different packing strategies, illustrating the necessity of advice bits to maintain a low competitive ratio.

Key Results and Thresholds

The paper maps out the relationship between advice length and competitive performance:

  • Sublinear Advice ($\log n$ bits): Achieves a ratio of 1.5.
  • Linear Advice ($2n$ bits): Achieves a ratio of $4/3 + \epsilon$.
  • The 9/8 Barrier: The authors prove that achieving any competitive ratio better than 9/8 (1.125) requires a linear amount of advice ($\Omega(n)$ bits). This identifies a fundamental threshold where the complexity of the problem scales with the number of items.
  • Perfect Optimality: To reach the absolute minimum number of bins, an algorithm requires approximately $n \log(\text{OPT})$ bits of advice.

Discussion

The findings highlight a non-linear relationship between information and performance in bin packing. A tiny "hint" (logarithmic advice) provides a significant jump in performance, but approaching the theoretical optimum requires a much denser stream of information.

While the advice model assumes an idealized oracle, these results provide a theoretical upper bound on what can be achieved by semi-online algorithms that might perform a quick pre-scan or receive metadata about the incoming stream. Future research may focus on closing the gap between the $4/3$ upper bound and the $9/8$ lower bound for linear advice regimes.

Summary updated

BibTeX
@inproceedings{boyar2016online,
  author = {Joan Boyar and Shahin Kamali and Kim S. Larsen and Alejandro López-Ortiz},
  title = {{Online Bin Packing with Advice}},
  booktitle = {Algorithmica},
  year = {2016},
  url = {https://openreview.net/forum?id=fmykyPZUYZ},
}
Figure