A Deterministic Polynomial-Time Approximation Scheme for Counting Knapsack Solutions
Authors:
- Daniel ŠtefankovičDŠDaniel Štefankovič
- Santosh VempalaSVSantosh Vempala
- Eric VigodaEVEric Vigoda
- 1 January 2012
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 41 (2) , 356-366
Abstract
Given n elements with nonnegative integer weights $w_1, \ldots, w_n$ 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\pm\varepsilon$ in time polynomial in n and $1/\varepsilon$ (fully polynomial approximation scheme). More precisely, our algorithm takes time $O(n^3\varepsilon^{-1}\log(n/\varepsilon))$. 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.
Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Simulated annealing in convex bodies and an volume algorithmJournal of Computer and System Sciences, 2006
- PRIMES is in PAnnals of Mathematics, 2004
- A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entriesJournal of the ACM, 2004
- Markov Chain Algorithms for Planar Lattice StructuresSIAM Journal on Computing, 2001
- A very simple algorithm for estimating the number of k‐colorings of a low‐degree graphRandom Structures & Algorithms, 1995
- Polynomial-Time Approximation Algorithms for the Ising ModelSIAM Journal on Computing, 1993
- A Mildly Exponential Time Algorithm for Approximating the Number of Solutions to a Multidimensional Knapsack ProblemCombinatorics, Probability and Computing, 1993
- A random polynomial-time algorithm for approximating the volume of convex bodiesJournal of the ACM, 1991
- Approximating the PermanentSIAM Journal on Computing, 1989
- Monte-Carlo algorithms for the planar multiterminal network reliability problemJournal of Complexity, 1985