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 条
  • [1] SETH-based Lower Bounds for Subset Sum and Bicriteria Path
    Abboud, Amir
    Bringmann, Karl
    Hermelin, Danny
    Shabtay, Dvir
    [J]. ACM TRANSACTIONS ON ALGORITHMS, 2022, 18 (01)
  • [2] Scheduling lower bounds via AND subset sum
    Abboud, Amir
    Bringmann, Karl
    Hermelin, Danny
    Shabtay, Dvir
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2022, 127 : 29 - 40
  • [3] GEOMETRIC APPLICATIONS OF A MATRIX-SEARCHING ALGORITHM
    AGGARWAL, A
    KLAWE, MM
    MORAN, S
    SHOR, P
    WILBER, R
    [J]. ALGORITHMICA, 1987, 2 (02) : 195 - 208
  • [4] [Anonymous], 2017, P ICALP, DOI DOI 10.4230/LIPICS.ICALP.2017.21
  • [5] Axiotis K., 2019, P 46 INT C AUT LANG, V19, P1, DOI [10.4230/LIPIcs.ICALP.2019.19.2, DOI 10.4230/LIPICS.ICALP.2019.19.2]
  • [6] Axiotis K, 2019, Disc Algorithms, P58
  • [7] Fast Algorithms for Knapsack via Convolution and Prediction
    Bateni, MohammadHossein
    Hajiaghayi, MohammadTaghi
    Seddighin, Saeed
    Stein, Cliff
    [J]. STOC'18: PROCEEDINGS OF THE 50TH ANNUAL ACM SIGACT SYMPOSIUM ON THEORY OF COMPUTING, 2018, : 1269 - 1282
  • [8] DYNAMIC PROGRAMMING
    BELLMAN, R
    [J]. SCIENCE, 1966, 153 (3731) : 34 - &
  • [9] Blum M., 1973, Journal of Computer and System Sciences, V7, P448, DOI 10.1016/S0022-0000(73)80033-9
  • [10] Necklaces, Convolutions, and X plus Y
    Bremner, David
    Chan, Timothy M.
    Demaine, Erik D.
    Erickson, Jeff
    Hurtado, Ferran
    Iacono, John
    Langerman, Stefan
    Patrascu, Mihai
    Taslakian, Perouz
    [J]. ALGORITHMICA, 2014, 69 (02) : 294 - 314