Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results

07/24/2023
by   Lin Chen, et al.
0

We investigate pseudopolynomial-time algorithms for Bounded Knapsack and Bounded Subset Sum. Recent years have seen a growing interest in settling their fine-grained complexity with respect to various parameters. For Bounded Knapsack, the number of items n and the maximum item weight w_max are two of the most natural parameters that have been studied extensively in the literature. The previous best running time in terms of n and w_max is O(n + w^3_max) [Polak, Rohwedder, Wegrzycki '21]. There is a conditional lower bound of O((n + w_max)^2-o(1)) based on (min,+)-convolution hypothesis [Cygan, Mucha, Wegrzycki, Wlodarczyk '17]. We narrow the gap significantly by proposing a Õ(n + w^12/5_max)-time algorithm. Note that in the regime where w_max≈ n, our algorithm runs in Õ(n^12/5) time, while all the previous algorithms require Ω(n^3) time in the worst case. For Bounded Subset Sum, we give two algorithms running in Õ(nw_max) and Õ(n + w^3/2_max) time, respectively. These results match the currently best running time for 0-1 Subset Sum. Prior to our work, the best running times (in terms of n and w_max) for Bounded Subset Sum is Õ(n + w^5/3_max) [Polak, Rohwedder, Wegrzycki '21] and Õ(n + μ_max^1/2w_max^3/2) [implied by Bringmann '19 and Bringmann, Wellnitz '21], where μ_max refers to the maximum multiplicity of item weights.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/22/2023

Simple and Faster Algorithms for Knapsack

In this paper, we obtain a number of new simple pseudo-polynomial time a...
research
05/09/2021

Knapsack and Subset Sum with Small Items

Knapsack and Subset Sum are fundamental NP-hard problems in combinatoria...
research
08/12/2021

On the Fine-Grained Complexity of the Unbounded SubsetSum and the Frobenius Problem

Consider positive integral solutions x ∈ℤ^n+1 to the equation a_0 x_0 + ...
research
08/06/2023

Knapsack with Small Items in Near-Quadratic Time

The Bounded Knapsack problem is one of the most fundamental NP-complete ...
research
04/22/2022

An Algorithm to Find Sums of Consecutive Powers of Primes

We present and analyze an algorithm to enumerate all integers n≤ x that ...
research
08/08/2023

0-1 Knapsack in Nearly Quadratic Time

We study pseudo-polynomial time algorithms for the fundamental 0-1 Knaps...
research
11/30/2018

Fast Algorithms for Knapsack via Convolution and Prediction

The knapsack problem is a fundamental problem in combinatorial optimizat...

Please sign up or login with your details

Forgot password? Click here to reset