(1 - ε)-Approximation of Knapsack in Nearly Quadratic Time
Xiao Mao
Abstract
Knapsack is one of the most fundamental problems in theoretical computer science. In the (1 − є)-approximation setting, although there is a fine-grained lower bound of (n + 1 / є) 2 − o(1) based on the (min, +)-convolution hypothesis ([K'unnemann, Paturi and Stefan Schneider, ICALP 2017] and [Cygan, Mucha, Wegrzycki and Wlodarczyk, 2017]), the best algorithm is randomized and runs in Õ(n + (1/є)11/5/2Ω(√log(1/є))) time [Deng, Jin and Mao, SODA 2023], and it remains an important open problem whether an algorithm with a running time that matches the lower bound (up to a sub-polynomial factor) exists. We answer the question positively by showing a deterministic (1 − є)-approximation scheme for knapsack that runs in Õ(n + (1 / є) 2) time. We first extend a known lemma in a recursive way to reduce the problem to n є-additive approximation for n items with profits in [1, 2). Then we give a simple efficient geometry-based algorithm for the reduced 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 2569e1ec-2916-4582-84b1-d89353bdf389Cited by top-tier papers5
- 0-1 Knapsack in Nearly Quadratic TimeCe JinSTOC 2024 · 6 citations
- Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
- Approximating Partition in Near-Linear TimeLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 3 citations
- Approximation algorithms for combinatorial optimization with predictionsAntonios Antoniadis, Marek Eliás, Adam Polak, Moritz VenzinICLR 2025 · 1 citation
- Approximately Counting Knapsack Solutions in Subquadratic TimeWeiming Feng, Ce JinSODA 2025
Builds on3
- 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
Related papers
- A Nearly Quadratic-Time FPTAS for KnapsackLin Chen, Jiayi Lian, Yuchen Mao, Guochuan ZhangSTOC 2024 · 4 citations
- Knapsack with Small Items in Near-Quadratic TimeKarl BringmannSTOC 2024 · 8 citations
- Approximation Schemes and Structural Barriers for the Two-Dimensional Knapsack Problem with RotationsDebajyoti Kar, Arindam Khan, Andreas WieseSTOC 2026 · 2 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
- Augmenting Packing Dynamic Programs to Handle (Many) Additional Budget ConstraintsAlexander Armbruster, Fabrizio Grandoni, Antoine Tinguely, Andreas WieseSODA 2026 · 2 citations
