Lune

STOC2024Top-tier venue

Knapsack with Small Items in Near-Quadratic Time

Karl Bringmann

Abstract

The Knapsack problem is one of the most fundamental NP-complete problems at the intersection of computer science, optimization, and operations research. A recent line of research worked towards understanding the complexity of pseudopolynomial-time algorithms for Knapsack parameterized by the maximum item weight w max and the number of items n. A conditional lower bound rules out that Knapsack can be solved in time Oppn `wmax q 2´δ q for any δ ą 0 [Cygan, Mucha, Wegrzycki, Wlodarczyk'17, Künnemann, Paturi, Schneider'17]. This raised the question whether Knapsack can be solved in time r

Oppn wmax q 2 q. This was open both for 0-1-Knapsack (where each item can be picked at most once) and Bounded Knapsack (where each item comes with a multiplicity). The quest of resolving this question lead to algorithms that solve Bounded Knapsack in time r Opn 3 w 2 max q [Tamir'09], r Opn 2 w 2 max q and r Opnw 3 max q [Bateni, Hajiaghayi, Seddighin, Stein'18], Opn 2 w 2 max q and r Opnw 2 max q [Eisenbrand and Weismantel'18], Opn w3 max q [Polak, Rohwedder, Wegrzycki'21], and very recently r Opn `w125 max q [Chen, Lian, Mao, Zhang'23].

In this paper we resolve this question by designing an algorithm for Bounded Knapsack with running time r Opn `w2 max q, which is conditionally near-optimal. This resolves the question both for the classic 0-1-Knapsack problem and for the Bounded Knapsack problem.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Approximating Knapsack and Partition via Dense Subset Sums cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • Approximating Knapsack and Partition via Dense Subset Sums cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
  • 0-1 Knapsack in Nearly Quadratic Time cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • 0-1 Knapsack in Nearly Quadratic Time cites Approximating Knapsack and Partition via Dense Subset Sums
  • 0-1 Knapsack in Nearly Quadratic Time cites A Nearly Quadratic-Time FPTAS for Knapsack
  • A Nearly Quadratic-Time FPTAS for Knapsack cites 0-1 Knapsack in Nearly Quadratic Time
  • 0-1 Knapsack in Nearly Quadratic Time cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
  • 0-1 Knapsack in Nearly Quadratic Time cites Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results
  • Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results cites 0-1 Knapsack in Nearly Quadratic Time
  • A Nearly Quadratic-Time FPTAS for Knapsack cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • A Nearly Quadratic-Time FPTAS for Knapsack cites Approximating Knapsack and Partition via Dense Subset Sums
  • A Nearly Quadratic-Time FPTAS for Knapsack cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
  • A Nearly Quadratic-Time FPTAS for Knapsack cites Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Approximating Knapsack and Partition via Dense Subset Sums
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites 0-1 Knapsack in Nearly Quadratic Time
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
  • An Improved Pseudopolynomial Time Algorithm for Subset Sum cites Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results
  • Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results cites Approximating Knapsack and Partition via Dense Subset Sums
  • Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
  2. 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
  3. Tight (S)ETH-Based Lower Bounds for Pseudopolynomial Algorithms for Bin Packing and Multi-machine SchedulingKarl Bringmann, Anita Dürr, Karol WegrzyckiSTOC 2026 · 6 citations
  4. An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations
  5. A Nearly Quadratic-Time FPTAS for KnapsackLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 4 citations

Builds on5

  1. On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 citations
  2. A Fine-Grained Perspective on Approximating Subset Sum and PartitionKarl Bringmann, Vasileios NakosSODA 2021 · 14 citations
  3. Approximating Knapsack and Partition via Dense Subset SumsMingyang Deng, Ce Jin, Xiao MaoSODA 2023 · 10 citations
  4. Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
  5. 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations

Related papers

  1. (1 - ε)-Approximation of Knapsack in Nearly Quadratic TimeXiao MaoSTOC 2024
  2. Approximately Counting Knapsack Solutions in Subquadratic TimeWeiming Feng, Ce JinSODA 2025
  3. Approximation Schemes and Structural Barriers for the Two-Dimensional Knapsack Problem with RotationsDebajyoti Kar, Arindam Khan, Andreas WieseSTOC 2026 · 2 citations
  4. Online Knapsack with Frequency PredictionsSungjin Im, Ravi Kumar, Mahshid Montazer Qaem, Manish PurohitNeurIPS 2021 · 70 citations
  5. A Faster Exponential Time Algorithm for Bin Packing With a Constant Number of Bins via Additive CombinatoricsJesper Nederlof, Jakub Pawlewicz, Céline M. F. Swennenhuis, Karol WegrzyckiSODA 2021 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines