[Paper Review] Polynomial-Time Approximation Schemes for Knapsack and Related Counting Problems using Branching Programs
This paper presents the first deterministic polynomial-time approximation schemes (PTAS) for counting solutions to the knapsack problem, multidimensional knapsack, integer-valued knapsack, and contingency tables with few rows. The approach uses small-width, read-once branching programs (ROBPs) under carefully chosen distributions to approximate the solution space, enabling efficient counting and sampling with (1+ε)-multiplicative accuracy in time polynomial in n, log W, and 1/ε.
We give a deterministic, polynomial-time algorithm for approximately counting the number of {0,1}-solutions to any instance of the knapsack problem. On an instance of length n with total weight W and accuracy parameter eps, our algorithm produces a (1 + eps)-multiplicative approximation in time poly(n,log W,1/eps). We also give algorithms with identical guarantees for general integer knapsack, the multidimensional knapsack problem (with a constant number of constraints) and for contingency tables (with a constant number of rows). Previously, only randomized approximation schemes were known for these problems due to work by Morris and Sinclair and work by Dyer. Our algorithms work by constructing small-width, read-once branching programs for approximating the underlying solution space under a carefully chosen distribution. As a byproduct of this approach, we obtain new query algorithms for learning functions of k halfspaces with respect to the uniform distribution on {0,1}^n. The running time of our algorithm is polynomial in the accuracy parameter eps. Previously even for the case of k=2, only algorithms with an exponential dependence on eps were known.
Motivation & Objective
- To develop the first deterministic polynomial-time approximation schemes for #P-hard counting problems like knapsack and multidimensional knapsack.
- To extend these algorithms to integer-valued knapsack and contingency tables with a constant number of rows.
- To provide efficient sampling algorithms after a pre-processing phase.
- To learn functions of k halfspaces under uniform, symmetric, and product distributions with polynomial dependence on 1/ε.
Proposed method
- Constructs small-width, read-once branching programs (ROBPs) that approximate the solution space under a distribution chosen to minimize approximation error.
- Uses a greedy layer-by-layer construction where each layer maintains a representative set of prefixes with bounded distance under a distance measure d(fx, fy).
- Employs randomized estimation of distance d(fx◦b, fy) via sampling random suffixes, with Chernoff bounds ensuring error bounds with high probability.
- Applies Dyer’s rounding techniques to reduce multidimensional knapsack counting to single knapsack counting under non-uniform distributions.
- Leverages the fact that halfspaces are (ε, 1/ε, n)-almost ROBPs to enable learning under uniform and product distributions.
- Combines results on almost-ROBPs with composition lemmas to show that functions of k halfspaces are (2kε, W^k, n)-almost ROBPs.
Experimental results
Research questions
- RQ1Can a deterministic polynomial-time algorithm achieve (1+ε)-approximate counting for the standard knapsack problem?
- RQ2Can such algorithms be extended to multidimensional knapsack with a constant number of constraints?
- RQ3Can the same framework be applied to integer-valued knapsack and contingency tables with few rows?
- RQ4Can functions of k halfspaces be learned efficiently under uniform and product distributions with polynomial dependence on 1/ε?
- RQ5Can small-width branching programs be used to design efficient sampling algorithms after pre-processing?
Key findings
- The algorithm computes a (1+ε)-multiplicative approximation to |KNAP(a,b)| in O(n³ log W log(n/ε)/ε) time, marking the first deterministic PTAS for this problem.
- For multidimensional knapsack with k constraints, the algorithm runs in O((n/ε)^{O(k²)} log W) time, providing a deterministic PTAS.
- For integer-valued knapsack, the algorithm runs in O(n⁵ (log U)² log W / ε²) time, achieving a deterministic FPTAS.
- For contingency tables with m rows, the algorithm runs in (n^{O(m)} (log R)/ε)^m time, yielding a deterministic FPTAS.
- The framework enables learning functions of k halfspaces under uniform and product distributions in time polynomial in 1/ε, improving over prior exponential dependence.
- All counting algorithms also yield fast sampling: after pre-processing, each new sample can be generated in near-linear time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.