Solving Knapsack with Small Items via L0-Proximity
Abstract
We study pseudo-polynomial time algorithms for the fundamental \emph{0-1 Knapsack} problem. In terms of and , previous algorithms for 0-1 Knapsack have cubic time complexities: (Bellman 1957), (Kellerer and Pferschy 2004), and (Polak, Rohwedder, and W\k{e}grzycki 2021). On the other hand, fine-grained complexity only rules out running time, and it is an important question in this area whether time is achievable. Our main result makes significant progress towards solving this question: - The 0-1 Knapsack problem has a deterministic algorithm in time. Our techniques also apply to the easier \emph{Subset Sum} problem: - The Subset Sum problem has a randomized algorithm in time. This improves (and simplifies) the previous -time algorithm by Polak, Rohwedder, and W\k{e}grzycki (2021) (based on Galil and Margalit (1991), and Bringmann and Wellnitz (2021)). Similar to recent works on Knapsack (and integer programs in general), our algorithms also utilize the \emph{proximity} between optimal integral solutions and fractional solutions. Our new ideas are as follows: - Previous works used an proximity bound in the -norm. As our main conceptual contribution, we use an additive-combinatorial theorem by Erd\H{o}s and S\'{a}rk\"{o}zy (1990) to derive an -proximity bound of . - Then, the main technical component of our Knapsack result is a dynamic programming algorithm that exploits both - and -proximity. It is based on a vast extension of the ``witness propagation'' method, originally designed by Deng, Mao, and Zhong (2023) for the easier \emph{unbounded} setting only.
Cite
@article{arxiv.2307.09454,
title = {Solving Knapsack with Small Items via L0-Proximity},
author = {Ce Jin},
journal= {arXiv preprint arXiv:2307.09454},
year = {2023}
}
Comments
This manuscript is superseded by an updated version arXiv:2308.04093. See Section 1.1