Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
125 tokens/sec
GPT-4o
47 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Convolution and Knapsack in Higher Dimensions (2403.16117v1)

Published 24 Mar 2024 in cs.DS

Abstract: In the Knapsack problem, one is given the task of packing a knapsack of a given size with items in order to gain a packing with a high profit value. In recent years, a connection to the $(\max,+)$-convolution problem has been established, where knapsack solutions can be combined by building the convolution of two sequences. This observation has been used to give conditional lower bounds but also parameterized algorithms. In this paper we want to carry these results into higher dimension. We consider Knapsack where items are characterized by multiple properties - given through a vector - and a knapsack that has a capacity vector. The packing must now not exceed any of the given capacity constraints. In order to show a similar sub-quadratic lower bound we introduce a multi-dimensional version of convolution as well. Instead of combining sequences, we will generalize this problem and combine higher dimensional matrices. We will establish a few variants of these problems and prove that they are all equivalent in terms of algorithms that allow for a running time sub-quadratic in the number of entries of the matrix. We further develop a parameterized algorithm to solve higher dimensional Knapsack. The techniques we apply are inspired by an algorithm introduced by Axiotis and Tzamos. In general, we manage not only to extend their result to higher dimension. We will show that even for higher dimensional Knapsack, we can reduce the problem to convolution on one-dimensional sequences, leading to an $\mathcal{O}(d(n + D \cdot \max{\Pi_{i=1}d{t_i}, t_{\max}\log t_{\max}} ))$ algorithm, where $D$ is the number of different weight vectors, $t$ the capacity vector and $d$ is the dimension of the problem. Finally we also modify this algorithm to handle items with negative weights to cross the bridge from solving not only Knapsack but also Integer Linear Programs (ILPs) in general.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (15)
  1. Capacitated Dynamic Programming: Faster Knapsack and Graph Algorithms. In 46th International Colloquium on Automata, Languages, and Programming (ICALP), volume 132, pages 19:1–19:13, Dagstuhl, Germany, 2019.
  2. Necklaces, convolutions, and x + y. In Yossi Azar and Thomas Erlebach, editors, Algorithms – ESA 2006, pages 160–171, Berlin, Heidelberg, 2006. Springer Berlin Heidelberg.
  3. Karl Bringmann. A Near-Linear Pseudopolynomial Time Algorithm for Subset Sum, pages 1073–1084. Society for Industrial and Applied Mathematics, 2017. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611974782.69, arXiv:https://epubs.siam.org/doi/pdf/10.1137/1.9781611974782.69, doi:10.1137/1.9781611974782.69.
  4. Improving the cook et al. proximity bound given integral valued constraints. In Karen Aardal and Laura Sanità, editors, Integer Programming and Combinatorial Optimization, pages 84–97, Cham, 2022. Springer International Publishing.
  5. Clustered integer 3sum via additive combinatorics. In Proceedings of the Forty-Seventh Annual ACM Symposium on Theory of Computing, STOC ’15, page 31–40, New York, NY, USA, 2015. Association for Computing Machinery. doi:10.1145/2746539.2746568.
  6. Faster algorithms for bounded knapsack and bounded subset sum via fine-grained proximity results, 2023. arXiv:2307.12582.
  7. Faster min-plus product for monotone instances. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022, page 1529–1542, New York, NY, USA, 2022. Association for Computing Machinery. doi:10.1145/3519935.3520057.
  8. On problems equivalent to (min,+)-convolution. ACM Trans. Algorithms, 15(1), jan 2019. doi:10.1145/3293465.
  9. Proximity results and faster algorithms for integer programming using the steinitz lemma. ACM Trans. Algorithms, 16(1), nov 2019.
  10. Structured (min,+)(\min,+)( roman_min , + )-convolution and its applications for the shortest vector, closest vector, and separable nonlinear knapsack problems, 2022. arXiv:2209.04812.
  11. Ce Jin. 0-1 knapsack in nearly quadratic time, 2023. arXiv:2308.04093.
  12. On the fine-grained complexity of one-dimensional dynamic programming. In Ioannis Chatzigiannakis, Piotr Indyk, Fabian Kuhn, and Anca Muscholl, editors, 44th International Colloquium on Automata, Languages, and Programming, ICALP 2017, July 10-14, 2017, Warsaw, Poland, volume 80 of LIPIcs, pages 21:1–21:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017. URL: https://doi.org/10.4230/LIPIcs.ICALP.2017.21, doi:10.4230/LIPICS.ICALP.2017.21.
  13. Improving proximity bounds using sparsity. In Mourad Baïou, Bernard Gendron, Oktay Günlük, and A. Ridha Mahjoub, editors, Combinatorial Optimization, pages 115–127, Cham, 2020. Springer International Publishing.
  14. Knapsack and Subset Sum with Small Items. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), volume 198 of Leibniz International Proceedings in Informatics (LIPIcs), pages 106:1–106:19, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/opus/volltexte/2021/14175, doi:10.4230/LIPIcs.ICALP.2021.106.
  15. Ryan Williams. Faster all-pairs shortest paths via circuit complexity. In Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC ’14, page 664–673, New York, NY, USA, 2014. Association for Computing Machinery. doi:10.1145/2591796.2591811.

Summary

We haven't generated a summary for this paper yet.

X Twitter Logo Streamline Icon: https://streamlinehq.com