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

求解无界背包问题的一种快速算法FPTAS

A Faster FPTAS for the Unbounded Knapsack Problem

Klaus Jansen, Stefan Erich Julius Kraft

摘要:

无界背包问题(UKP)是著名的0-1背包问题(0-1 KP)的著名变体。与0-1 KP相比,UKP中每个项目可以取任意数量的副本。由于UKP是NP-难的,全多项式时间近似格式(FPTAS)引起了人们极大的兴趣。这样的算法找到任意接近最优$\mathrm{OPT}(I)$的解,即对于$\varepsilon > 0$至少为$(1-\varepsilon) \mathrm{OPT}(I)$的值,并且在输入长度和$\frac{1}{\varepsilon}$中具有运行时间多项式。三十多年来,最好的FPTAS是由Lawler提出的,它的运行时间是$O(n + \frac{1}{\varepsilon^3})$,空间复杂度是$O(n + \frac{1}{\varepsilon^2})$,其中$n$是背包项的数量。我们提出了一个改进的FPTAS的运行时间在$O(n + \frac{1}{\varepsilon^2} \log^3 \frac{1}{\varepsilon})$和空间限制在$O(n + \frac{1}{\varepsilon} \log^2 \frac{1}{\varepsilon})$。这直接提高了运行时间的最快的已知近似计划装箱和带包装,近似解决UKP实例作为子问题。

英文摘要:

The Unbounded Knapsack Problem (UKP) is a well-known variant of the famous 0-1 Knapsack Problem (0-1 KP). In contrast to 0-1 KP, an arbitrary number of copies of every item can be taken in UKP. Since UKP is NP-hard, fully polynomial time approximation schemes (FPTAS) are of great interest. Such algorithms find a solution arbitrarily close to the optimum $\mathrm{OPT}(I)$, i.e. of value at least $(1-\varepsilon) \mathrm{OPT}(I)$ for $\varepsilon > 0$, and have a running time polynomial in the input length and $\frac{1}{\varepsilon}$. For over thirty years, the best FPTAS was due to Lawler with a running time in $O(n + \frac{1}{\varepsilon^3})$ and a space complexity in $O(n + \frac{1}{\varepsilon^2})$, where $n$ is the number of knapsack items. We present an improved FPTAS with a running time in $O(n + \frac{1}{\varepsilon^2} \log^3 \frac{1}{\varepsilon})$ and a space bound in $O(n + \frac{1}{\varepsilon} \log^2 \frac{1}{\varepsilon})$. This directly improves the running time of the fastest known approximation schemes for Bin Packing and Strip Packing, which have to approximately solve UKP instances as subproblems.

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

↑