English

Simple and Faster Algorithms for Knapsack

Data Structures and Algorithms 2024-01-30 v1

Abstract

In this paper, we obtain a number of new simple pseudo-polynomial time algorithms on the well-known knapsack problem, focusing on the running time dependency on the number of items nn, the maximum item weight wmaxw_\mathrm{max}, and the maximum item profit pmaxp_\mathrm{max}. Our results include: - An O~(n3/2min{wmax,pmax})\widetilde{O}(n^{3/2}\cdot \min\{w_\mathrm{max},p_\mathrm{max}\})-time randomized algorithm for 0-1 knapsack, improving the previous O~(min{nwmaxpmax2/3,npmaxwmax2/3})\widetilde{O}(\min\{n w_\mathrm{max} p_\mathrm{max}^{2/3},n p_\mathrm{max} w_\mathrm{max}^{2/3}\}) [Bringmann and Cassis, ESA'23] for the small nn case. - An O~(n+min{wmax,pmax}5/2)\widetilde{O}(n+\min\{w_\mathrm{max},p_\mathrm{max}\}^{5/2})-time randomized algorithm for bounded knapsack, improving the previous O(n+min{wmax3,pmax3})O(n+\min\{w_\mathrm{max}^3,p_\mathrm{max}^3\}) [Polak, Rohwedder and Wegrzyck, ICALP'21].

Keywords

Cite

@article{arxiv.2308.11307,
  title  = {Simple and Faster Algorithms for Knapsack},
  author = {Qizheng He and Zhean Xu},
  journal= {arXiv preprint arXiv:2308.11307},
  year   = {2024}
}
R2 v1 2026-06-28T12:01:17.605Z