Lune

SODA2024Top-tier venue

Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results

Lin Chen, Jiayi Lian, Yuchen Mao, Guochuan Zhang

Abstract

We investigate pseudopolynomial-time algorithms for Bounded Knapsack and Bounded Subset Sum. Recent years have seen a growing interest in settling their fine-grained complexity with respect to various parameters. For Bounded Knapsack, the number of items n and the maximum item weight wmax are two of the most natural parameters that have been studied extensively in the literature. The previous best running time in terms of n and wmax is O(n + w 3 max ) [Polak, Rohwedder, Węgrzycki '21]. There is a conditional lower bound of (n + wmax) 2-o(1) based on (min, +)-convolution hypothesis [Cygan, Mucha, Węgrzycki, Włodarczyk '17]. We narrow the gap significantly by proposing an O(n + w 12/5 max )-time algorithm. Our algorithm works for both 0-1 Knapsack and Bounded Knapsack. Note that in the regime where wmax ≈ n, our algorithm runs in O(n 12/5 ) time, while all the previous algorithms require Ω(n 3 ) time in the worst case.

For Bounded Subset Sum, we give two algorithms running in O(nwmax) and O(n+w 3/2 max) time, respectively. These results match the currently best running time for 0-1 Subset Sum. Prior to our work, the best running times (in terms of n and wmax) for Bounded Subset Sum are O(n + w 5/3 max) [Polak, Rohwedder, Węgrzycki '21] and O(n + µ 1/2 maxw 3/2 max) [implied by Bringmann '19 and Bringmann, Wellnitz '21], where µmax refers to the maximum multiplicity of item weights.

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.

9 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
  • Knapsack with Small Items in Near-Quadratic Time cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • Knapsack with Small Items in Near-Quadratic Time cites Approximating Knapsack and Partition via Dense Subset Sums
  • Knapsack with Small Items in Near-Quadratic Time cites 0-1 Knapsack in Nearly Quadratic Time
  • 0-1 Knapsack in Nearly Quadratic Time cites Knapsack with Small Items in Near-Quadratic Time
  • Knapsack with Small Items in Near-Quadratic Time 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
  • 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 Knapsack with Small Items in Near-Quadratic Time
  • 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 Approximating Partition in Near-Linear Time
  • Approximating Partition in Near-Linear Time cites A Nearly Quadratic-Time FPTAS for Knapsack
  • 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 Knapsack with Small Items in Near-Quadratic Time
  • 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 Approximating Partition in Near-Linear Time
  • Approximating Partition in Near-Linear Time cites On Near-Linear-Time Algorithms for Dense Subset Sum
  • Approximating Partition in Near-Linear Time cites Approximating Knapsack and Partition via Dense Subset Sums
  • Approximating Partition in Near-Linear Time cites Knapsack with Small Items in Near-Quadratic Time
  • Approximating Partition in Near-Linear Time cites 0-1 Knapsack in Nearly Quadratic Time
  • Approximating Partition in Near-Linear Time 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 papers9

  1. Knapsack with Small Items in Near-Quadratic TimeKarl BringmannSTOC 2024 · 8 citations
  2. 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
  3. An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations
  4. A Nearly Quadratic-Time FPTAS for KnapsackLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 4 citations
  5. Approximating Partition in Near-Linear TimeLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 3 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. Knapsack with Small Items in Near-Quadratic TimeKarl BringmannSTOC 2024 · 8 citations
  5. 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations

Related papers

  1. Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
  2. (1 - ε)-Approximation of Knapsack in Nearly Quadratic TimeXiao MaoSTOC 2024
  3. Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
  4. On the Fine-Grained Complexity of the Unbounded SubsetSum and the Frobenius ProblemKim-Manuel KleinSODA 2022 · 7 citations
  5. Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines