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

一种确定性的多项式时间近似背包解计算方法

A Deterministic Polynomial-time Approximation Scheme for Counting Knapsack Solutions

Daniel Stefankovic, Santosh Vempala, Eric Vigoda

摘要:

给定n个具有非负整数权重w1,...的元素,wn和一个整数容量C,我们考虑经典背包问题的计数版本:找到不同子集的数量,这些子集的权重加起来至多等于给定的容量。我们给出了一个确定性的算法,估计的解决方案的数量在相对误差1+-eps在时间多项式n和1/eps(完全多项式逼近方案)。时间复杂度为O(n^3(1/eps)log(n))。我们的算法是基于动态规划。在此之前,随机多项式时间近似方案首先由Morris和Sinclair通过Markov chain Monte Carlo技术已知,随后由Dyer通过动态规划和拒绝采样已知。

英文摘要:

Given n elements with nonnegative integer weights w1,..., wn and an integer capacity C, we consider the counting version of the classic knapsack problem: find the number of distinct subsets whose weights add up to at most the given capacity. We give a deterministic algorithm that estimates the number of solutions to within relative error 1+-eps in time polynomial in n and 1/eps (fully polynomial approximation scheme). More precisely, our algorithm takes time O(n^3 (1/eps) log (n/eps)). Our algorithm is based on dynamic programming. Previously, randomized polynomial time approximation schemes were known first by Morris and Sinclair via Markov chain Monte Carlo techniques, and subsequently by Dyer via dynamic programming and rejection sampling.

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

↑