A Faster FPTAS for #Knapsack

02/15/2018
by   Paweł Gawrychowski, et al.
0

Given a set W = {w_1,..., 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,..., 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ε^-1.5(n ε^-1) (n ε)) time. The previous best deterministic algorithm [FOCS 2011] runs in O(n^3 ε^-1(nε^-1)) time (see also [ESA 2014] for a logarithmic factor improvement). The previous best randomized algorithm [STOC 2003] runs in O(n^2.5√( (nε^-1) ) + ε^-2 n^2 ) time. Therefore, in the natural setting of constant ε, we close the gap between the Õ(n^2.5) randomized algorithm and the Õ(n^3) deterministic algorithm. For the integer version with U = _i {u_i}, we present a deterministic FPTAS running in O(n^2.5ε^-1.5(nε^-1 U) (n ε) ^2 U) time. The previous best deterministic algorithm [APPROX 2016] runs in O(n^3ε^-1(n ε^-1 U) ^2 U) time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/24/2018

Faster approximation algorithms for computing shortest cycles on weighted graphs

Given an n-vertex m-edge graph G with non negative edge-weights, the gir...
research
04/30/2018

A Subquadratic Algorithm for 3XOR

Given a set X of n binary words of equal length w, the 3XOR problem asks...
research
10/14/2019

An Improved FPT Algorithm for the Flip Distance Problem

Given a set P of points in the Euclidean plane and two triangulations of...
research
10/06/2021

More on Change-Making and Related Problems

Given a set of n integer-valued coin types and a target value t, the wel...
research
01/05/2020

All non-trivial variants of 3-LDT are equivalent

The popular 3-SUM conjecture states that there is no strongly subquadrat...
research
04/14/2023

On deterministic, constant memory triangular searches on the integer lattice

Recently it has been shown that four constant memory, deterministic agen...
research
07/22/2019

The k-Dimensional Weisfeiler-Leman Algorithm

In this note, we provide details of the k-dimensional Weisfeiler-Leman A...

Please sign up or login with your details

Forgot password? Click here to reset