0-1 Knapsack in Nearly Quadratic Time

被引:0
作者
Jin, Ce [1 ]
机构
[1] MIT, Cambridge, MA 02139 USA
来源
PROCEEDINGS OF THE 56TH ANNUAL ACM SYMPOSIUM ON THEORY OF COMPUTING, STOC 2024 | 2024年
关键词
knapsack; dynamic programming; additive combinatorics; SUBSET-SUM; ALGORITHMS; FINITE;
D O I
10.1145/3618260.3649618
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study pseudo-polynomial time algorithms for the fundamental 0-1 Knapsack problem. Recent research interest has focused on its finegrained complexity with respect to the number of items.. and the maximum item weight w(max). Under (min, +)-convolution hypothesis, 0-1 Knapsack does not have O((n +w(max))(2-sigma)) time algorithms (Cygan-Mucha-Wegrzycki-Wlodarczyk 2017 and Kunnemann-PaturiSchneider 2017). On the upper bound side, currently the fastest algorithm runs in O (n +w(max)(12/5) ) time (Chen, Lian, Mao, and Zhang 2023), improving the earlier O (n +w(max) (3))-time algorithm by Polak, Rohwedder, and Wegrzycki (2021). In this paper, we close this gap between the upper bound and the conditional lower bound (up to subpolynomial factors): The 0-1 Knapsack problem has a deterministic algorithm in O (n+w(max)(2) log(4.)w(max)) time. Our algorithm combines and extends several recent structural results and algorithmic techniques from the literature on knapsacktype problems: (1) We generalize the "fine-grained proximity" technique of Chen, Lian, Mao, and Zhang (2023) derived from the additivecombinatorial results of Bringmann and Wellnitz (2021) on dense subset sums. This allows us to bound the support size of the useful partial solutions in the dynamic program. (2) To exploit the small support size, our main technical component is a vast extension of the "witness propagation" method, originally designed by Deng, Mao, and Zhong (2023) for speeding up dynamic programming in the easier unbounded knapsack settings. To extend this approach to our 0-1 setting, we use a novel pruning method, as well as the two-level color-coding of Bringmann (2017) and the SMAWK algorithm on tall matrices.
引用
收藏
页码:271 / 282
页数:12
相关论文
共 59 条
  • [11] Bringmann K., 2022, LIPICS, DOI [10.4230/LIPIcs.ICALP.2022.31, DOI 10.4230/LIPICS.ICALP.2022.31]
  • [12] Bringmann K, 2024, Arxiv, DOI arXiv:2308.03075
  • [13] Bringmann K, 2021, Disc Algorithms, P1777
  • [14] Bringmann K, 2021, Disc Algorithms, P1797
  • [15] Faster Minimization of Tardy Processing Time on a Single Machine
    Bringmann, Karl
    Fischer, Nick
    Hermelin, Danny
    Shabtay, Dvir
    Wellnitz, Philip
    [J]. ALGORITHMICA, 2022, 84 (05) : 1341 - 1356
  • [16] Bringmann K, 2017, PROCEEDINGS OF THE TWENTY-EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P1073
  • [17] Bringmann Karl, 2023, P 31 ANN EUR S ALG E, V274, DOI [10.4230/LIPICS.ESA.2023.24, DOI 10.4230/LIPICS.ESA.2023.24]
  • [18] Chaimovich M, 1999, ASTERISQUE, P363
  • [19] Chaimovich M., 1989, Journal of Complexity, V5, P271, DOI 10.1016/0885-064X(89)90025-3
  • [20] Chaimovich M, 1999, ASTERISQUE, P341