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

小物品背包问题的近二次时间复杂度

Knapsack with Small Items in Near-Quadratic Time

Karl Bringmann

AI总结:

本文针对背包问题,设计出运行时间为 $\tilde O(n + w_{\mathrm{max}}^2)$ 的有界背包算法,在条件性下界意义下接近最优,同时解决了经典 0-1 背包与有界背包的开放问题。

摘要:

背包问题是计算机科学、优化与运筹学交叉领域中最基本的 NP 完全问题之一。近期一系列研究致力于理解以最大物品重量 $w_{\mathrm{max}}$ 和物品数量 $n$ 为参数的背包问题伪多项式时间算法的复杂度。一个条件性下界排除了对任意 $δ>0$ 在 $O((n+w_{\mathrm{max}})^{2-δ})$ 时间内求解背包问题的可能性 [Cygan, Mucha, Wegrzycki, Wlodarczyk'17, Künnemann, Paturi, Schneider'17]。这引出了背包问题能否在 $\tilde O((n+w_{\mathrm{max}})^2)$ 时间内求解的问题。无论对于 0-1 背包问题(每个物品最多选取一次)还是有界背包问题(每个物品带有多重性),该问题此前均未解决。为解决这一问题,研究者提出了一系列算法:在 $\tilde O(n^3 w_{\mathrm{max}}^2)$ 时间内求解有界背包问题 [Tamir'09],在 $\tilde O(n^2 w_{\mathrm{max}}^2)$ 和 $\tilde O(n w_{\mathrm{max}}^3)$ 时间内求解 [Bateni, Hajiaghayi, Seddighin, Stein'18],在 $O(n^2 w_{\mathrm{max}}^2)$ 和 $\tilde O(n w_{\mathrm{max}}^2)$ 时间内求解 [Eisenbrand and Weismantel'18],在 $O(n + w_{\mathrm{max}}^3)$ 时间内求解 [Polak, Rohwedder, Wegrzycki'21],以及最近在 $\tilde O(n + w_{\mathrm{max}}^{12/5})$ 时间内求解 [Chen, Lian, Mao, Zhang'23]。本文通过设计一个运行时间为 $\tilde O(n + w_{\mathrm{max}}^2)$ 的有界背包问题算法解决了这一问题,该算法在条件意义下接近最优。这同时解决了经典 0-1 背包问题和有界背包问题。

英文摘要:

The Knapsack problem is one of the most fundamental NP-complete problems at the intersection of computer science, optimization, and operations research. A recent line of research worked towards understanding the complexity of pseudopolynomial-time algorithms for Knapsack parameterized by the maximum item weight $w_{\mathrm{max}}$ and the number of items $n$. A conditional lower bound rules out that Knapsack can be solved in time $O((n+w_{\mathrm{max}})^{2-δ})$ for any $δ> 0$ [Cygan, Mucha, Wegrzycki, Wlodarczyk'17, Künnemann, Paturi, Schneider'17]. This raised the question whether Knapsack can be solved in time $\tilde O((n+w_{\mathrm{max}})^2)$. This was open both for 0-1-Knapsack (where each item can be picked at most once) and Bounded Knapsack (where each item comes with a multiplicity). The quest of resolving this question lead to algorithms that solve Bounded Knapsack in time $\tilde O(n^3 w_{\mathrm{max}}^2)$ [Tamir'09], $\tilde O(n^2 w_{\mathrm{max}}^2)$ and $\tilde O(n w_{\mathrm{max}}^3)$ [Bateni, Hajiaghayi, Seddighin, Stein'18], $O(n^2 w_{\mathrm{max}}^2)$ and $\tilde O(n w_{\mathrm{max}}^2)$ [Eisenbrand and Weismantel'18], $O(n + w_{\mathrm{max}}^3)$ [Polak, Rohwedder, Wegrzycki'21], and very recently $\tilde O(n + w_{\mathrm{max}}^{12/5})$ [Chen, Lian, Mao, Zhang'23]. In this paper we resolve this question by designing an algorithm for Bounded Knapsack with running time $\tilde O(n + w_{\mathrm{max}}^2)$, which is conditionally near-optimal. This resolves the question both for the classic 0-1-Knapsack problem and for the Bounded Knapsack problem.

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

↑