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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers9
- Knapsack with Small Items in Near-Quadratic TimeKarl BringmannSTOC 2024 · 8 citations
- 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
- An Improved Pseudopolynomial Time Algorithm for Subset SumLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangFOCS 2024 · 5 citations
- A Nearly Quadratic-Time FPTAS for KnapsackLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 4 citations
- Approximating Partition in Near-Linear TimeLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 3 citations
Builds on5
- On Near-Linear-Time Algorithms for Dense Subset SumKarl Bringmann, Philip WellnitzSODA 2021 · 19 citations
- A Fine-Grained Perspective on Approximating Subset Sum and PartitionKarl Bringmann, Vasileios NakosSODA 2021 · 14 citations
- Approximating Knapsack and Partition via Dense Subset SumsMingyang Deng, Ce Jin, Xiao MaoSODA 2023 · 10 citations
- Knapsack with Small Items in Near-Quadratic TimeKarl BringmannSTOC 2024 · 8 citations
- 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
Related papers
- Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
- (1 - ε)-Approximation of Knapsack in Nearly Quadratic TimeXiao MaoSTOC 2024
- Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
- On the Fine-Grained Complexity of the Unbounded SubsetSum and the Frobenius ProblemKim-Manuel KleinSODA 2022 · 7 citations
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
