arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.01593cs.DS
收藏

通过近凸Min-Plus卷积加速0-1背包问题

Faster 0-1-Knapsack via Near-Convex Min-Plus-Convolution

Karl Bringmann, Alejandro Cassis

AI总结:

本文研究了0-1背包问题的伪多项式时间算法,通过提出高效的近凸函数min-plus卷积计算方法,改进了现有算法的时间复杂度,并在特定条件下首次打破了立方时间障碍。

摘要:

我们重新审视经典的0-1背包问题:给定$n$个物品的重量和收益以及重量预算$W$,目标是找到一个总重量最多为$W$且总收益最大的物品子集。我们研究了以任意物品的最大收益$p_{\max}$和最大重量$w_{\max}$为参数的伪多项式时间算法。我们的主要成果是运行时间分别为$\tilde{O}(n\\,w_\max\\,p_\max^{2/3})$和$\tilde{O}(n\\,p_\max\\,w_\max^{2/3})$的0-1背包算法,改进了Pisinger [J. Algorithms '99]提出的$O(n\\,p_\max\\,w_\max)$算法。在$p_\max \approx w_\max \approx n$(且$W \approx \mathrm{OPT} \approx n^2$)的情况下,我们的算法是首个打破$n^3$立方障碍的算法。为了得到结果,我们给出了一个计算近凸函数min-plus卷积的高效算法。更准确地说,如果存在一个凸函数$\breve{f}$使得对每个$i$都有$\breve{f}(i) \leq f(i) \leq \breve{f}(i) + Δ$,则称函数$f \colon [n] \mapsto \mathbf{Z}$是$Δ$-近凸的($Δ\geq 1$)。我们设计了一个在$\tilde{O}(nΔ)$时间内计算两个$Δ$-近凸函数min-plus卷积的算法。该工具可以在我们已知的所有应用中替代Bateni, Hajiaghayi, Seddighin和Stein [STOC '18]的预测技术,且我们相信它具有更广泛的适用性。

英文摘要:

We revisit the classic 0-1-Knapsack problem, in which we are given $n$ items with their weights and profits as well as a weight budget $W$, and the goal is to find a subset of items of total weight at most $W$ that maximizes the total profit. We study pseudopolynomial-time algorithms parameterized by the largest profit of any item $p_{\max}$, and the largest weight of any item $w_{\max}$. Our main result are algorithms for 0-1-Knapsack running in time $\tilde{O}(n\,w_\max\,p_\max^{2/3})$ and $\tilde{O}(n\,p_\max\,w_\max^{2/3})$, improving upon an algorithm in time $O(n\,p_\max\,w_\max)$ by Pisinger [J. Algorithms '99]. In the regime $p_\max \approx w_\max \approx n$ (and $W \approx \mathrm{OPT} \approx n^2$) our algorithms are the first to break the cubic barrier $n^3$. To obtain our result, we give an efficient algorithm to compute the min-plus convolution of near-convex functions. More precisely, we say that a function $f \colon [n] \mapsto \mathbf{Z}$ is $Δ$-near convex with $Δ\geq 1$, if there is a convex function $\breve{f}$ such that $\breve{f}(i) \leq f(i) \leq \breve{f}(i) + Δ$ for every $i$. We design an algorithm computing the min-plus convolution of two $Δ$-near convex functions in time $\tilde{O}(nΔ)$. This tool can replace the usage of the prediction technique of Bateni, Hajiaghayi, Seddighin and Stein [STOC '18] in all applications we are aware of, and we believe it has wider applicability.

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

↑