English

Knapsack and Subset Sum with Small Items

Data Structures and Algorithms 2021-05-11 v1

Abstract

Knapsack and Subset Sum are fundamental NP-hard problems in combinatorial optimization. Recently there has been a growing interest in understanding the best possible pseudopolynomial running times for these problems with respect to various parameters. In this paper we focus on the maximum item size ss and the maximum item value vv. We give algorithms that run in time O(n+s3)O(n + s^3) and O(n+v3)O(n + v^3) for the Knapsack problem, and in time O~(n+s5/3)\tilde{O}(n + s^{5/3}) for the Subset Sum problem. Our algorithms work for the more general problem variants with multiplicities, where each input item comes with a (binary encoded) multiplicity, which succinctly describes how many times the item appears in the instance. In these variants nn denotes the (possibly much smaller) number of distinct items. Our results follow from combining and optimizing several diverse lines of research, notably proximity arguments for integer programming due to Eisenbrand and Weismantel (TALG 2019), fast structured (min,+)(\min,+)-convolution by Kellerer and Pferschy (J. Comb. Optim. 2004), and additive combinatorics methods originating from Galil and Margalit (SICOMP 1991).

Keywords

Cite

@article{arxiv.2105.04035,
  title  = {Knapsack and Subset Sum with Small Items},
  author = {Adam Polak and Lars Rohwedder and Karol Węgrzycki},
  journal= {arXiv preprint arXiv:2105.04035},
  year   = {2021}
}
R2 v1 2026-06-24T01:55:28.699Z