Knapsack and Subset Sum with Small Items

05/09/2021
by   Adam Polak, et al.
0

Knapsack and Subset Sum are fundamental NP-hard problems in combinatorial optimization. Recently there has been a growing interest in understanding the best possible pseudopolynomial running times for these problems with respect to various parameters. In this paper we focus on the maximum item size s and the maximum item value v. We give algorithms that run in time O(n + s^3) and O(n + v^3) for the Knapsack problem, and in time Õ(n + s^5/3) for the Subset Sum problem. Our algorithms work for the more general problem variants with multiplicities, where each input item comes with a (binary encoded) multiplicity, which succinctly describes how many times the item appears in the instance. In these variants n denotes the (possibly much smaller) number of distinct items. Our results follow from combining and optimizing several diverse lines of research, notably proximity arguments for integer programming due to Eisenbrand and Weismantel (TALG 2019), fast structured (min,+)-convolution by Kellerer and Pferschy (J. Comb. Optim. 2004), and additive combinatorics methods originating from Galil and Margalit (SICOMP 1991).

READ FULL TEXT

page 1

page 3

page 7

page 9

page 15

page 19

research
07/24/2023

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

We investigate pseudopolynomial-time algorithms for Bounded Knapsack and...
research
11/30/2018

Fast Algorithms for Knapsack via Convolution and Prediction

The knapsack problem is a fundamental problem in combinatorial optimizat...
research
04/19/2021

Joint replenishment meets scheduling

In this paper we consider a combination of the joint replenishment probl...
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
09/11/2022

Dynamic Subset Sum with Truly Sublinear Processing Time

Subset sum is a very old and fundamental problem in theoretical computer...
research
05/20/2018

A PTAS for a Class of Stochastic Dynamic Programs

We develop a framework for obtaining polynomial time approximation schem...
research
02/21/2022

A Probabilistic Approach to The Perfect Sum Problem

The subset sum problem is known to be an NP-hard problem in the field of...

Please sign up or login with your details

Forgot password? Click here to reset