arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.04093cs.DS
收藏

近似二次时间的0-1背包问题

0-1 Knapsack in Nearly Quadratic Time

Ce Jin

AI总结:

本文针对0-1背包问题提出确定性算法,将时间复杂度改进至O(n + w_max^2 log^4 w_max),通过推广细粒度邻近性技术和扩展见证传播方法,弥合了上界与条件下界之间的差距。

摘要:

我们研究基本0-1背包问题的伪多项式时间算法。近期研究兴趣集中在其关于物品数量$n$和最大物品重量$w_{\max}$的细粒度复杂度上。在$(\min,+)$-卷积假设下,0-1背包不存在$O((n+w_{\max})^{2-\delta})$时间算法(Cygan-Mucha-Węgrzycki-Włodarczyk 2017和Künnemann-Paturi-Schneider 2017)。在上界方面,目前最快的算法运行时间为$\tilde O(n + w_{\max}^{12/5})$(Chen, Lian, Mao和Zhang 2023),改进了Polak, Rohwedder和Węgrzycki(2021)先前的$O(n + w_{\max}^3)$时间算法。在本文中,我们弥合了上界与条件下界之间的这一差距(直至次多项式因子):0-1背包问题具有一个确定性算法,运行时间为$O(n + w_{\max}^{2}\log^4w_{\max})$。我们的算法结合并扩展了文献中关于背包型问题的若干近期结构性结果和算法技术:我们推广了Chen, Lian, Mao和Zhang(2023)的“细粒度邻近性”技术,该技术源自Bringmann和Wellnitz(2021)关于稠密子集和的加法组合结果。这使我们能够限制动态规划中有用部分解的支持集大小。为了利用较小的支持集大小,我们的主要技术组件是对“见证传播”方法的大幅扩展,该方法最初由Deng, Mao和Zhong(2023)设计,用于在更简单的无界背包设置中加速动态规划。为了将这种方法扩展到我们的0-1设置,我们使用了一种新颖的剪枝方法,以及Bringmann(2017)的两层颜色编码和适用于高矩阵的SMAWK算法。

英文摘要:

We study pseudo-polynomial time algorithms for the fundamental \emph{0-1 Knapsack} problem. Recent research interest has focused on its fine-grained complexity with respect to the number of items $n$ and the \emph{maximum item weight} $w_{\max}$. Under $(\min,+)$-convolution hypothesis, 0-1 Knapsack does not have $O((n+w_{\max})^{2-δ})$ time algorithms (Cygan-Mucha-Węgrzycki-Włodarczyk 2017 and Künnemann-Paturi-Schneider 2017). On the upper bound side, currently the fastest algorithm runs in $\tilde 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 Węgrzycki (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^4w_{\max})$ time. Our algorithm combines and extends several recent structural results and algorithmic techniques from the literature on knapsack-type problems: - We generalize the "fine-grained proximity" technique of Chen, Lian, Mao, and Zhang (2023) derived from the additive-combinatorial 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. - 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑