NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online Sorting and Translational Packing of Convex Polygons

Anders Aamand, Mikkel Abrahamsen, Lorenzo Beretta, Linda Kleist · OpenReview

TL;DR

This paper proves that a seemingly simple assumption about online packing problems – that they should have constant-factor competitive algorithms – is false. The authors introduce a novel connection between online sorting and packing problems, demonstrating that the inherent difficulty of online sorting forces packing algorithms to perform poorly, leading to super-constant lower bounds on their competitive ratios.

What Problem Does This Paper Address?

The paper tackles the problem of "online packing," where objects (in this case, convex polygons) arrive one by one and must be placed irrevocably into a container. The goal is to minimize the space used. A key constraint is "translational packing," meaning the objects can only be moved, not rotated.

While it's known that if objects can be rotated or are simple rectangles, constant-factor competitive online algorithms exist (meaning their performance is within a constant factor of the optimal offline solution), the authors investigate whether this holds for online translational packing of convex polygons. They hypothesize that a simple extension of existing algorithms might work, but their main contribution is to disprove this conjecture. They show that for certain types of convex polygons, even with very small diameters, no online algorithm can guarantee a performance close to the optimal offline solution.

Methods

The core of the paper's contribution lies in establishing a novel reduction from the problem of online sorting to various online packing problems.

  1. Online Sorting: The authors introduce a new problem called ONLINE-SORTING[γ, n]. Here, n numbers arrive one by one and must be placed into an array of size γn. The goal is to minimize the sum of absolute differences between adjacent numbers in the array. The offline optimum is achieved by simply sorting the numbers. The paper proves that ONLINE-SORTING does not admit constant-factor competitive algorithms, establishing super-constant lower bounds on its competitive ratio.
  2. Reduction to Packing: The authors then demonstrate how a difficult instance of ONLINE-SORTING can be translated into a difficult instance of various packing problems. Specifically, they construct "adversarial streams" of convex polygons whose "slopes" (related to their geometry) correspond to the numbers in the online sorting problem. The difficulty in sorting these numbers online directly translates to difficulty in packing the corresponding polygons, forcing any online packing algorithm to use significantly more space than the optimal offline solution.
  3. Algorithmic Contributions: On the positive side, the paper also presents algorithms for online sorting and strip packing. For ONLINE-SORTING[1, n], they provide an asymptotically tight analysis of the competitive ratio. For strip packing, they develop an algorithm with a competitive ratio of $O(n^{\log_3 2 - 1} \log n)$, which is significantly better than a naive $n$-competitive algorithm. This algorithm uses a sophisticated technique of recursively subdividing the strip into parallelograms.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and constructs adversarial input streams rather than using pre-existing datasets.

Key Insights and Ideas

  • The Surprising Impossibility: The most significant insight is that the intuitive conjecture that online translational packing of convex polygons should have constant-factor competitive algorithms is false. This challenges assumptions about the tractability of these problems.
  • The Sorting-Packing Connection: The paper reveals a deep and unexpected connection between the purely combinatorial problem of online sorting and the geometric problem of online packing. This connection is crucial for proving the lower bounds.
  • Adversarial Construction: The authors' ability to construct specific, adaptive adversarial streams of inputs is key. These streams exploit the weaknesses of online algorithms by forcing them into suboptimal placements, directly mirroring the challenges of online sorting.
  • "Natural Slope" is Essential: The paper highlights that sorting pieces by their "natural slope" is a critical step for efficient offline packing. The difficulty of achieving this sorting online is what makes the online problem hard.

Key Results

  • Lower Bounds:
    • ONLINE-SORTING[γ, n] has a competitive ratio of at least $\Omega(\log n / (\gamma \log \log n))$.
  • STRIP-PACKING, BIN-PACKING, and PERIMETER-PACKING (even with small diameter pieces) have competitive ratios of at least $\Omega(\sqrt{\log n / \log \log n})$.
  • SQUARE-PACKING[δ] does not allow for an online algorithm for any $\delta \in (0,1]$.
  • Upper Bounds:
    • An algorithm for ONLINE-SORTING[1, n] with a competitive ratio of $O(\sqrt{n})$ is presented, with a matching lower bound, showing asymptotic tightness.
  • An algorithm for STRIP-PACKING with a competitive ratio of $O(n^{\log_3 2 - 1} \log n)$ is developed.
  • Offline Results: The paper also provides constant-factor approximation algorithms for the offline versions of these packing problems, reinforcing the contrast between online and offline settings.

Limitations and Future Work

  • Closing Gaps: The paper notes that there's an exponential gap between the lower and upper bounds for ONLINE-SORTING[γ, n] when γ > 1. Closing this gap for cases like ONLINE-SORTING[2, n] is an open problem.
  • Generalizing Packing Algorithms: While the paper presents an $O(n^{\log_3 2 - 1} \log n)$ algorithm for strip packing, improving this further is an open question. The authors wonder if an $n^{o(1)}$-competitive algorithm is possible.
  • Randomized Adversaries: The paper mentions that their lower bounds are based on deterministic, adaptive adversaries. Investigating whether randomized oblivious adversaries can achieve similar or stronger lower bounds is an interesting direction.
  • Offline Bin Packing Diameter Bound: The $O(1)$-approximation for offline bin packing is currently proven only for pieces with diameter bounded by $1/10$. Removing this restriction is an open problem.

Summary updated

BibTeX
@inproceedings{aamand2023online,
  author = {Anders Aamand and Mikkel Abrahamsen and Lorenzo Beretta and Linda Kleist},
  title = {{Online Sorting and Translational Packing of Convex Polygons}},
  booktitle = {SODA},
  year = {2023},
  doi = {10.1137/1.9781611977554.ch69},
}
Figure