Faster Algorithms for Bounded Knapsack and Bounded Subset Sum Via Fine-Grained Proximity Results
Abstract
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 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 is O(n + w3) [Polak, Rohwedder, Wegrzycki '21]. There is a conditional lower bound of O((n + w)2-o(1)) based on (,+)-convolution hypothesis [Cygan, Mucha, Wegrzycki, Wlodarczyk '17]. We narrow the gap significantly by proposing a O(n + w12/5)-time algorithm. Note that in the regime where w ≈ n, our algorithm runs in O(n12/5) time, while all the previous algorithms require (n3) time in the worst case. For Bounded Subset Sum, we give two algorithms running in O(nw) and O(n + w3/2) 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) for Bounded Subset Sum is O(n + w5/3) [Polak, Rohwedder, Wegrzycki '21] and O(n + μ1/2w3/2) [implied by Bringmann '19 and Bringmann, Wellnitz '21], where μ refers to the maximum multiplicity of item weights.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.