Faster Knapsack Algorithms via Bounded Monotone Min-Plus-Convolution

05/17/2022
by   Karl Bringmann, et al.
0

We present new exact and approximation algorithms for 0-1-Knapsack and Unbounded Knapsack: * Exact Algorithm for 0-1-Knapsack: 0-1-Knapsack has known algorithms running in time O(n + min{n OPT, n W, OPT^2, W^2}), where n is the number of items, W is the weight budget, and OPT is the optimal profit. We present an algorithm running in time O(n + (W + OPT)^1.5). This improves the running time in case n,W,OPT are roughly equal. * Exact Algorithm for Unbounded Knapsack: Unbounded Knapsack has known algorithms running in time O(n + min{n · p_max, n · w_max, p_max^2, w_max^2}) [Axiotis, Tzamos '19, Jansen, Rohwedder '19, Chan, He '20], where n is the number of items, w_max is the largest weight of any item, and p_max is the largest profit of any item. We present an algorithm running in time O(n + (p_max + w_max)^1.5), giving a similar improvement as for 0-1-Knapsack. * Approximating Unbounded Knapsack with Resource Augmentation: Unbounded Knapsack has a known FPTAS with running time O(min{n/ε, n + 1/ε^2}) [Jansen, Kraft '18]. We study weak approximation algorithms, which approximate the optimal profit but are allowed to overshoot the weight constraint. We present the first approximation scheme for Unbounded Knapsack in this setting, achieving running time O(n + 1/ε^1.5). Our algorithms can be seen as reductions to Min-Plus-Convolution on monotone sequences with bounded entries. These structured instances of Min-Plus-Convolution can be solved in time O(n^1.5) [Chi,Duan,Xie,Zhang '22] (in contrast to the conjectured n^2-o(1) lower bound for the general case).

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/02/2023

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

We revisit the classic 0-1-Knapsack problem, in which we are given n ite...
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
02/27/2022

On Problems Related to Unbounded SubsetSum: A Unified Combinatorial Approach

Unbounded SubsetSum is a classical textbook problem: given integers w_1,...
research
07/02/2020

Approximating Sparse Quadratic Programs

Given a matrix A ∈ℝ^n× n, we consider the problem of maximizing x^TAx su...
research
08/04/2022

Improved Bounds for Rectangular Monotone Min-Plus Product

In a recent breakthrough paper, Chi et al. (STOC'22) introduce an Õ(n^3 ...
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 + ...

Please sign up or login with your details

Forgot password? Click here to reset