Generalized Assignment and Knapsack Problems in the Random-Order Model

Max Klimm, Martin Knaack · DOI

Introduction

In the field of online optimization, the challenge lies in making irreversible decisions about items that arrive sequentially without full knowledge of the future. This paper, authored by Max Klimm and Martin Knaack, addresses fundamental packing problems—specifically the Generalized Assignment Problem (GAP) and the Knapsack Problem—under the Random-Order Model (ROM). By introducing novel algorithmic strategies, the authors establish new state-of-the-art competitive ratios, narrowing the gap between theoretical limits and algorithmic performance.

The Random-Order Model (ROM)

Traditional online optimization often evaluates algorithms against an "adversarial" model, where the input sequence is designed to trigger the worst possible performance. In contrast, the Random-Order Model assumes that while the set of items may be chosen by an adversary, their arrival order is a uniform random permutation. This model provides a more realistic middle ground for many practical applications, allowing algorithms to use the initial portion of the sequence as a "sample" to estimate the characteristics of the remaining items.

Algorithmic Innovations

1. The "Overpack and Randomize" Strategy for GAP

The Generalized Assignment Problem involves assigning items to multiple bins, where each item has a specific size and value that varies depending on the bin to which it is assigned. Historically, algorithms for GAP have relied on a strict distinction between "heavy" items (those exceeding half a bin's capacity) and "light" items, handling them through separate logic.

Klimm and Knaack’s RandomGAP algorithm departs from this convention. It utilizes a "preliminary" assignment phase that allows a bin to be virtually overfilled by exactly one item. To maintain feasibility, the algorithm then employs a randomized selection between two sub-strategies:

  • FeasibleGAP: Accepts items as long as they fit within the physical capacity. If an item would cause an overflow, it is rejected, and the bin is closed.
  • ImitativeGAP: Only accepts the specific item that would have first caused an overflow in the preliminary phase.

By flipping a coin to decide which strategy to follow for each bin, the algorithm effectively "smooths" the integrality constraints, recovering a higher fraction of the optimal value than previous methods.

2. The Displacement Approach for Fractional Knapsack

For the Fractional Knapsack problem—where fractions of items can be accepted—the authors introduce an algorithm that achieves the $1/e$ limit, a famous constant in optimal stopping theory (the "Secretary Problem"). Their approach uses the first $1/e$ fraction of items as a sample. For subsequent items, the algorithm calculates a "displacement" value based on the current optimal fractional solution. This ensures that the total volume remains within capacity while maximizing the value density of the accepted items.

Key Results

The paper provides significant improvements over existing competitive ratios. Notably, the result for the Fractional Knapsack problem is tight; the authors prove that no deterministic algorithm can exceed the $1/e$ ratio in this model.

Model Previous Best Ratio New Result (This Paper)
Generalized Assignment (GAP) $\approx 1/6.99$ $\mathbf{\approx 1/6.52}$
Integral Knapsack $\approx 1/6.65$ $\mathbf{\approx 1/6.52}$
Fractional Knapsack $\approx 1/4.39$ $\mathbf{1/e \approx 1/2.71}$

Discussion and Future Directions

The research demonstrates that abandoning the rigid heavy/light item split in favor of randomized overflow strategies yields superior performance guarantees. However, several open questions remain. While the $1/e$ bound is optimal for deterministic fractional knapsack algorithms, the potential for randomized algorithms to surpass this limit remains unexplored. Additionally, for the general GAP, a significant gap still exists between the new $1/6.52$ ratio and the theoretical $1/e$ limit observed in simpler matching problems. Future work may focus on refining the sampling phase to further close this gap and exploring the implications of these strategies in "large market" scenarios where items are small relative to bin capacities.

Summary updated

BibTeX
@inproceedings{klimm2025generalized,
  author = {Max Klimm and Martin Knaack},
  title = {{Generalized Assignment and Knapsack Problems in the Random-Order Model}},
  booktitle = {IPCO},
  year = {2025},
  doi = {10.1007/978-3-031-93112-3\_25},
}
Figure