Faster 0-1-Knapsack via Near-Convex Min-Plus-Convolution

05/02/2023
by   Karl Bringmann, et al.
0

We revisit the classic 0-1-Knapsack problem, in which we are given n items with their weights and profits as well as a weight budget W, and the goal is to find a subset of items of total weight at most W that maximizes the total profit. We study pseudopolynomial-time algorithms parameterized by the largest profit of any item p_max, and the largest weight of any item w_max. Our main result are algorithms for 0-1-Knapsack running in time Õ(n w_max p_max^2/3) and Õ(n p_max w_max^2/3), improving upon an algorithm in time O(n p_max w_max) by Pisinger [J. Algorithms '99]. In the regime p_max≈ w_max≈ n (and W ≈OPT≈ n^2) our algorithms are the first to break the cubic barrier n^3. To obtain our result, we give an efficient algorithm to compute the min-plus convolution of near-convex functions. More precisely, we say that a function f [n] ↦𝐙 is Δ-near convex with Δ≥ 1, if there is a convex function f̆ such that f̆(i) ≤ f(i) ≤f̆(i) + Δ for every i. We design an algorithm computing the min-plus convolution of two Δ-near convex functions in time Õ(nΔ). This tool can replace the usage of the prediction technique of Bateni, Hajiaghayi, Seddighin and Stein [STOC '18] in all applications we are aware of, and we believe it has wider applicability.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/17/2022

Faster Knapsack Algorithms via Bounded Monotone Min-Plus-Convolution

We present new exact and approximation algorithms for 0-1-Knapsack and U...
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
12/28/2019

Approximating Subset Sum is equivalent to Min-Plus-Convolution

Approximating Subset Sum is a classic and fundamental problem in compute...
research
03/01/2019

An FPTAS for Stochastic Unbounded Min-Knapsack Problem

In this paper, we study the stochastic unbounded min-knapsack problem (M...
research
11/30/2018

Fast Algorithms for Knapsack via Convolution and Prediction

The knapsack problem is a fundamental problem in combinatorial optimizat...
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
05/09/2021

Fast n-fold Boolean Convolution via Additive Combinatorics

We consider the problem of computing the Boolean convolution (with wrapa...

Please sign up or login with your details

Forgot password? Click here to reset