English

A Faster FPTAS for Knapsack Problem With Cardinality Constraint

Data Structures and Algorithms 2020-12-15 v5 Computational Complexity Discrete Mathematics

Abstract

We study the KK-item knapsack problem (i.e., 1.51.5-dimensional KP), which is a generalization of the famous 0-1 knapsack problem (i.e., 11-dimensional KP) in which an upper bound KK is imposed on the number of items selected. This problem is of fundamental importance and is known to have a broad range of applications in various fields. It is well known that, there is no FPTAS for the dd-dimensional knapsack problem when d2d\geq 2, unless P == NP. While the KK-item knapsack problem is known to admit an FPTAS, the complexity of all existing FPTASs have a high dependency on the cardinality bound KK and approximation error ε\varepsilon, which could result in inefficiencies especially when KK and ε1\varepsilon^{-1} increase. The current best results are due to Mastrolilli and Hutter (2006), in which two schemes are presented exhibiting a space-time tradeoff--one scheme with time complexity O(n+Kz2/ε2)O(n+Kz^{2}/\varepsilon^{2}) and space complexity O(n+z3/ε)O(n+z^{3}/\varepsilon), while another scheme requires O(n+(Kz2+z4)/ε2)O(n+(Kz^{2}+z^{4})/\varepsilon^{2}) run-time but only needs O(n+z2/ε)O(n+z^{2}/\varepsilon) space, where z=min{K,1/ε}z=\min\{K,1/\varepsilon\}. In this paper we close the space-time tradeoff exhibited in the state-of-the-art by designing a new FPTAS with a run-time of O~(n+z2/ε2)\widetilde{O}(n+z^{2}/\varepsilon^{2}), while simultaneously reaching the O(n+z2/ε)O(n+z^{2}/\varepsilon) space bound. Our scheme provides O~(K)\widetilde{O}(K) and O(z)O(z) improvements on the state-of-the-art algorithms in time and space complexity respectively, and is the first scheme that achieves a run-time that is independent of cardinality bound KK (up to logarithmic factors) under fixed ε\varepsilon. Another salient feature of our scheme is that it is the first FPTAS that achieves better time and space complexity bounds than the very first standard FPTAS over all parameter regimes.

Keywords

Cite

@article{arxiv.1902.00919,
  title  = {A Faster FPTAS for Knapsack Problem With Cardinality Constraint},
  author = {Wenxin Li and Joohyun Lee},
  journal= {arXiv preprint arXiv:1902.00919},
  year   = {2020}
}
R2 v1 2026-06-23T07:30:46.770Z