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

一个更快的FPTAS #背包

A Faster FPTAS for #Knapsack

Paweł Gawrychowski, Liran Markin, Oren Weimann

摘要:

给定一组非负整数权重的$W = \{w_1,\ldots, w_n\}$和一个整数$C$,#背包问题要求计算总权重至多为$C$的$W$的不同子集的数量。在更一般的整数版本的问题,子集是多重集。也就是说,我们也给出了一个集合$ \{u_1,\ldots, u_n\}$,并且允许我们采用权重为$w_i$的$u_i$项。我们提出了一个确定性的FPTAS #背包运行在$O(n^{2.5}\varepsilon^{-1.5}\log(n \varepsilon^{-1})\log (n \varepsilon))$时间。之前的最佳确定性算法[FOCS 2011]在$O(n^3 \varepsilon^{-1} \log(n\varepsilon^{-1}))$时间内运行(另见[ESA 2014]的对数因子改进)。先前的最佳随机化算法[STOC 2003]在$O(n^{2.5} \sqrt{\log (n\varepsilon^{-1}) } + \varepsilon^{-2} n^2 )$时间内运行。因此,在恒定$\varepsilon$的自然设置中,我们缩小了$\tilde O(n^{2.5})$随机算法和$\tilde O(n^3)$确定性算法之间的差距。对于整数版本的$U = \max_i \{u_i\}$,我们提出了一个确定性的FPTAS运行在$O(n^{2.5}\varepsilon^{-1.5}\log(n\varepsilon^{-1} \log U)\log (n \varepsilon) \log^2 U)$时间。之前的最佳确定性算法[APPROX 2016]在$O(n^3\varepsilon^{-1}\log(n \varepsilon^{-1} \log U) \log^2 U)$时间内运行。

英文摘要:

Given a set $W = \{w_1,\ldots, w_n\}$ of non-negative integer weights and an integer $C$, the #Knapsack problem asks to count the number of distinct subsets of $W$ whose total weight is at most $C$. In the more general integer version of the problem, the subsets are multisets. That is, we are also given a set $ \{u_1,\ldots, u_n\}$ and we are allowed to take up to $u_i$ items of weight $w_i$. We present a deterministic FPTAS for #Knapsack running in $O(n^{2.5}\varepsilon^{-1.5}\log(n \varepsilon^{-1})\log (n \varepsilon))$ time. The previous best deterministic algorithm [FOCS 2011] runs in $O(n^3 \varepsilon^{-1} \log(n\varepsilon^{-1}))$ time (see also [ESA 2014] for a logarithmic factor improvement). The previous best randomized algorithm [STOC 2003] runs in $O(n^{2.5} \sqrt{\log (n\varepsilon^{-1}) } + \varepsilon^{-2} n^2 )$ time. Therefore, in the natural setting of constant $\varepsilon$, we close the gap between the $\tilde O(n^{2.5})$ randomized algorithm and the $\tilde O(n^3)$ deterministic algorithm. For the integer version with $U = \max_i \{u_i\}$, we present a deterministic FPTAS running in $O(n^{2.5}\varepsilon^{-1.5}\log(n\varepsilon^{-1} \log U)\log (n \varepsilon) \log^2 U)$ time. The previous best deterministic algorithm [APPROX 2016] runs in $O(n^3\varepsilon^{-1}\log(n \varepsilon^{-1} \log U) \log^2 U)$ time.

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

↑