English

Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results

Data Structures and Algorithms 2023-12-06 v2

Abstract

We investigate pseudopolynomial-time algorithms for Bounded Knapsack and Bounded Subset Sum. Recent years have seen a growing interest in settling their fine-grained complexity with respect to various parameters. For Bounded Knapsack, the number of items nn and the maximum item weight wmaxw_{\max} are two of the most natural parameters that have been studied extensively in the literature. The previous best running time in terms of nn and wmaxw_{\max} is O(n+wmax3)O(n + w^3_{\max}) [Polak, Rohwedder, Wegrzycki '21]. There is a conditional lower bound of O((n+wmax)2o(1))O((n + w_{\max})^{2-o(1)}) based on (min,+)(\min,+)-convolution hypothesis [Cygan, Mucha, Wegrzycki, Wlodarczyk '17]. We narrow the gap significantly by proposing a O~(n+wmax12/5)\tilde{O}(n + w^{12/5}_{\max})-time algorithm. Note that in the regime where wmaxnw_{\max} \approx n, our algorithm runs in O~(n12/5)\tilde{O}(n^{12/5}) time, while all the previous algorithms require Ω(n3)\Omega(n^3) time in the worst case. For Bounded Subset Sum, we give two algorithms running in O~(nwmax)\tilde{O}(nw_{\max}) and O~(n+wmax3/2)\tilde{O}(n + w^{3/2}_{\max}) time, respectively. These results match the currently best running time for 0-1 Subset Sum. Prior to our work, the best running times (in terms of nn and wmaxw_{\max}) for Bounded Subset Sum is O~(n+wmax5/3)\tilde{O}(n + w^{5/3}_{\max}) [Polak, Rohwedder, Wegrzycki '21] and O~(n+μmax1/2wmax3/2)\tilde{O}(n + \mu_{\max}^{1/2}w_{\max}^{3/2}) [implied by Bringmann '19 and Bringmann, Wellnitz '21], where μmax\mu_{\max} refers to the maximum multiplicity of item weights.

Keywords

Cite

@article{arxiv.2307.12582,
  title  = {Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results},
  author = {Lin Chen and Jiayi Lian and Yuchen Mao and Guochuan Zhang},
  journal= {arXiv preprint arXiv:2307.12582},
  year   = {2023}
}

Comments

To appear in SODA2024

R2 v1 2026-06-28T11:38:22.559Z