Approximately Counting Knapsack Solutions in Almost Linear Time
Abstract
Given integer weights , we approximate the number of subsets whose total weight is at most the capacity . For every fixed we give a randomized algorithm that estimates to relative error with probability at least in time on the standard word RAM with words of bits. This improves the time bound by Jin, Park, and Saha. Instead of estimating the core threshold probabilities by sampling, we compute them under an exponentially tilted product law by Fourier analysis; this suffices when the total weight is polynomial. For arbitrary weights we use a discrete inverse Littlewood--Offord theorem to show that, after an inward rounding that preserves almost all feasible sets, all but a small power of of the items selected under the tilted law lie, in expectation, in a progression of bounded rank. We find such a progression by sampling and lattice reduction, count the weights in it with the Fourier machinery, and add back the remaining weights through a degree-truncated inclusion--exclusion whose correction terms are estimated by sampling.
Create a lesson
Related papers
Graph Minor Decomposition in Almost-Linear Time
Shared title terminologycs.DSMohammadTaghi Hajiaghayi, Mahdi JafariRaviz
First-Order Entropic Sampling of Words with Prescribed Letter Counts in Linear Time
Shared title terminologycs.DSOlivier Bodini, Francis Durand
Deterministic Approximate Counting Beyond Bounded Degree
Shared title terminologycs.DSYitong Yin, Xinyuan Zhang
Near-Linear Almost Exact Diameter in Weighted Planar Digraphs
Shared title terminologycs.DSShinwoo An, Avi Kadria, Wolfgang Mulzer et al.
No polynomial-time \frac78-approximation algorithm for MAX SAT, assuming UGC and \mathsf{P} ≠ \mathsf{NP}
Shared title terminologycs.DSJoshua Brakensiek, Neng Huang, Aaron Potechin et al.
Near-Linear Time Maximum Weight Clique for Objects Inscribed in a Circle
Shared title terminologycs.DSJaehyun Koo, Dario Moschetti