Papers
Topics
Authors
Recent
Search
2000 character limit reached

Faster Knapsack Algorithms via Bounded Monotone Min-Plus-Convolution

Published 17 May 2022 in cs.DS | (2205.08493v1)

Abstract: 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+minnOPT,nW,OPT<sup>2,</sup>W<sup>2)\widetilde{O}(n + \min{n OPT, n W, OPT<sup>2,</sup> W<sup>2}), where nn is the number of items, WW is the weight budget, and OPTOPT is the optimal profit. We present an algorithm running in time O~(n+(W+OPT)<sup>1.5)\widetilde{O}(n + (W + OPT)<sup>{1.5}). This improves the running time in case n,W,OPTn,W,OPT are roughly equal. * Exact Algorithm for Unbounded Knapsack: Unbounded Knapsack has known algorithms running in time O~(n+minnpmax,nwmax,pmax<sup>2,</sup>wmax<sup>2)\widetilde{O}(n + \min{n \cdot p_{\max}, n \cdot w_{\max}, p_{\max}<sup>2,</sup> w_{\max}<sup>2}) [Axiotis, Tzamos '19, Jansen, Rohwedder '19, Chan, He '20], where nn is the number of items, wmaxw_{\max} is the largest weight of any item, and pmaxp_{\max} is the largest profit of any item. We present an algorithm running in time O~(n+(pmax+wmax)<sup>1.5)\widetilde{O}(n + (p_{\max} + w_{\max})<sup>{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~(minn/ε,n+1/ε<sup>2)\widetilde{O}(\min{n/\varepsilon, n + 1/\varepsilon<sup>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/ε<sup>1.5)\widetilde{O}(n + 1/\varepsilon<sup>{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<sup>1.5)O(n<sup>{1.5}) n2o(1)n^{2-o(1)} lower bound for the general case" title="" rel="nofollow" data-turbo="false" class="assistant-link">Chi,Duan,Xie,Zhang '22.

Citations (18)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.