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 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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1dede7cc-9b71-4c14-a67d-4fab5c325becCited by top-tier papers11
- Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
- 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
- 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
- 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
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
- Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity ResultsLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSODA 2024 · 10 citations
- 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
Related papers
- (1 - ε)-Approximation of Knapsack in Nearly Quadratic TimeXiao MaoSTOC 2024
- Approximately Counting Knapsack Solutions in Subquadratic TimeWeiming Feng, Ce JinSODA 2025
- Approximation Schemes and Structural Barriers for the Two-Dimensional Knapsack Problem with RotationsDebajyoti Kar, Arindam Khan, Andreas WieseSTOC 2026 · 2 citations
- Online Knapsack with Frequency PredictionsSungjin Im, Ravi Kumar, Mahshid Montazer Qaem, Manish PurohitNeurIPS 2021 · 70 citations
- 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
