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

Approximation Algorithms for Generalized Multidimensional Knapsack

Arindam Khan, Arindam Khan 0001, Eklavya Sharma, K. V. N. SreenivasarXiv 2021

Abstract

This paper addresses the (2, d) Knapsack problem, a complex optimization challenge that integrates two-dimensional geometric packing constraints with $d$-dimensional vector constraints. By introducing a novel problem variant termed Vector-Max-GAP and developing a Polynomial-Time Approximation Scheme (PTAS) for it, the authors bridge the gap between geometric and resource-constrained optimization. The proposed approach yields a $(2 + \epsilon)$-approximation algorithm, with potential refinements reaching as low as $1.89$ for specific cases.

Introduction

The classic Knapsack problem has evolved into two primary difficult branches: the 2D Geometric Knapsack (2D-GK), which focuses on non-overlapping rectangular placement, and the $d$-Dimensional Vector Knapsack ($d$-D VK), which manages multiple resource limits like CPU and memory. Real-world applications, such as server task scheduling or container loading, often require satisfying both constraints simultaneously. This study tackles the unified (2, d) Knapsack problem, requiring items to fit within a unit square without overlap while staying under a global $d$-dimensional weight capacity.

Methodology

The authors employ a "divide and conquer" strategy to reduce geometric complexity into a structured assignment problem through several key techniques:

Corridor Decomposition

This structural technique simplifies optimal packing by removing a negligible fraction of profit. The remaining items are rearranged into a "nice" structure consisting of a constant number of rectangular containers categorized as large, wide, tall, or area containers.

Vector-Max-GAP

The core innovation is the definition of the Maximum Generalized Assignment Problem with Vector Constraints (Vector-Max-GAP). In this model, items are assigned to "machines" (representing the geometric containers). While each machine has local capacity, the system must also respect a global $d$-dimensional vector limit across all machines.

PTAS Implementation

To solve Vector-Max-GAP, the authors utilize:

  • Trimming: Removing low-profit items to ensure "small" items fit within slightly reduced capacities.
  • Resource Augmentation: Temporarily exceeding capacities to identify near-optimal solutions before shrinking them back to feasible limits.
  • Dynamic Programming: Used to optimally pack small items after big items are placed via brute-force enumeration.

Key Results and Insights

The primary algorithm achieves a $(2 + \epsilon)$-approximation, ensuring a solution profit of at least approximately 50% of the theoretical maximum. This result is versatile, applying to both standard cases and those allowing 90-degree rotations.

The transition from messy 2D geometry to a Generalized Assignment Problem (GAP) is the paper's most significant insight. By proving that any optimal packing can be "tamed" into a set of containers, the authors provide a robust framework for multidimensional resource allocation.

Summary of approximation ratios for various 2D packing scenarios, highlighting the improvements achieved through different structural assumptions.

As shown in the table above, the approximation ratios vary based on item characteristics. For the general case without rotations, the ratio can be refined to $17/9 + \epsilon \approx 1.89 + \epsilon$. The PTAS for Vector-Max-GAP runs in polynomial time, specifically $\Theta((d+k)n^{d+k+1}/\epsilon^{d+k})$, where $d$ is the number of vector dimensions and $k$ is the number of containers.

Limitations and Future Work

The current $(2 + \epsilon)$ ratio stems from the corridor decomposition step, where the algorithm chooses between horizontal and vertical packing strategies. Future research may utilize "L-packings" to further improve this ratio. Additionally, the algorithm assumes $d$ is a constant; if the number of vector dimensions grows with the item count, the problem's complexity increases significantly, typically requiring $O(\log d)$ approximations. Extending these results to 3D geometric packing (boxes) remains an open challenge.

Summary updated

BibTeX
@misc{khan2021approximation,
  author = {Arindam Khan and Arindam Khan and Eklavya Sharma and K. V. N. Sreenivas},
  title = {{Approximation Algorithms for Generalized Multidimensional Knapsack}},
  year = {2021},
  eprint = {2102.05854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.05854},
}
Figure