Solving Knapsack with Small Items via L0-Proximity

Abstract

We study pseudo-polynomial time algorithms for the fundamental 0-1 Knapsack problem. In terms of n and w, previous algorithms for 0-1 Knapsack have cubic time complexities: O(n2w) (Bellman 1957), O(nw2) (Kellerer and Pferschy 2004), and O(n + w3) (Polak, Rohwedder, and Wegrzycki 2021). On the other hand, fine-grained complexity only rules out O((n+w)2-δ) running time, and it is an important question in this area whether O(n+w2) time is achievable. Our main result makes significant progress towards solving this question: - The 0-1 Knapsack problem has a deterministic algorithm in O(n + w2.5) time. Our techniques also apply to the easier Subset Sum problem: - The Subset Sum problem has a randomized algorithm in O(n + w1.5) time. This improves (and simplifies) the previous O(n + w5/3)-time algorithm by Polak, Rohwedder, and Wegrzycki (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 proximity between optimal integral solutions and fractional solutions. Our new ideas are as follows: - Previous works used an O(w) proximity bound in the 1-norm. As our main conceptual contribution, we use an additive-combinatorial theorem by Erdos and S\'ark\"ozy (1990) to derive an 0-proximity bound of O(w). - Then, the main technical component of our Knapsack result is a dynamic programming algorithm that exploits both 0- and 1-proximity. It is based on a vast extension of the ``witness propagation'' method, originally designed by Deng, Mao, and Zhong (2023) for the easier unbounded setting only.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…