Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
125 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
42 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

Approximating the Geometric Knapsack Problem in Near-Linear Time and Dynamically (2403.00536v1)

Published 1 Mar 2024 in cs.DS

Abstract: An important goal in algorithm design is determining the best running time for solving a problem (approximately). For some problems, we know the optimal running time, assuming certain conditional lower bounds. In this work, we study the $d$-dimensional geometric knapsack problem where we are far from this level of understanding. We are given a set of weighted d-dimensional geometric items like squares, rectangles, or hypercubes and a knapsack which is a square or a (hyper-)cube. We want to select a subset of items that fit non-overlappingly inside the knapsack, maximizing the total profit of the packed items. We make a significant step towards determining the best running time for solving these problems approximately by presenting approximation algorithms with near-linear running times for any constant dimension d and any constant parameter $\epsilon$. For (hyper)-cubes, we present a $(1+\epsilon)$-approximation algorithm whose running time drastically improves upon the known $(1+\epsilon)$-approximation algorithm which has a running time where the exponent of n depends exponentially on $1/\epsilon$ and $d$. Moreover, we present a $(2+\epsilon)$-approximation algorithm for rectangles in the setting without rotations and a $(17/9+\epsilon)$-approximation algorithm if we allow rotations by 90 degrees. The best known polynomial time algorithms for these settings have approximation ratios of $17/9+\epsilon$ and $1.5+\epsilon$, respectively, and running times in which the exponent of n depends exponentially on $1/\epsilon$. We also give dynamic algorithms with polylogarithmic query and update times and the same approximation guarantees as the algorithms above. Key to our results is a new family of structured packings which we call easily guessable packings. They are flexible enough to guarantee profitable solutions and structured enough so that we can compute these solutions quickly.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (32)
  1. Quadratic-time hardness of lcs and other sequence similarity measures. In Proceedings of the 56th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2015), pages 59–78, 2015.
  2. Stronger 3-SUM lower bounds for approximate distance oracles via additive combinatorics. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023), pages 391–404, 2023.
  3. A quasi-PTAS for the two-dimensional geometric knapsack problem. In Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2014), pages 1491–1505, 2014.
  4. Bin packing in multiple dimensions: inapproximability results and approximation schemes. Mathematics of Operations Research, 31(1):31–49, 2006.
  5. Karl Bringmann. Why walking the dog takes time: Frechet distance has no strongly subquadratic algorithms unless SETH fails. In Proceedings of the 55th Annual Symposium on Foundations of Computer Science (FOCS 2014), pages 661–670, 2014.
  6. Quadratic conditional lower bounds for string problems and dynamic time warping. In Proceedings of the 56th Annual Symposium on Foundations of Computer Science (FOCS 2015), pages 79–97, 2015.
  7. Multivariate fine-grained complexity of longest common subsequence. In Proceedings of the 29th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2018), pages 1216–1235, 2018.
  8. A polynomial time approximation scheme for the multiple knapsack problem. SIAM Journal on Computing, 35(3):713–728, 2005.
  9. Solving linear programs in the current matrix multiplication time. Journal of the ACM (JACM), 68(1):1–39, 2021.
  10. On problems equivalent to (min,+)-convolution. ACM Transactions on Algorithms (TALG), 15(1):1–25, 2019.
  11. Approximating knapsack and partition via dense subset sums. In Proceedings of the 34th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2023), pages 2961–2979, 2023.
  12. Fully Dynamic Algorithms for Knapsack Problems with Polylogarithmic Update Time. In Proceedings of the 41st IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2021), pages 18:1–18:17, 2021.
  13. Approximating geometric knapsack via L-packings. ACM Transactions on Algorithms (TALG), 17(4):1–67, 2021.
  14. Improved Approximation Algorithms for 2-Dimensional Knapsack: Packing into Multiple L-Shapes, Spirals, and More. In Proceedings of the 37th International Symposium on Computational Geometry (SoCG 2021), pages 39:1–39:17, 2021.
  15. A dichromatic framework for balanced trees. In Proceedings of the 19th Annual Symposium on Foundations of Computer Science (SFCS 1978), pages 8–21, 1978.
  16. Rolf Harren. Approximation algorithms for orthogonal packing problems for hypercubes. Theoretical Computer Science, 410(44):4504–4532, 2009.
  17. Unifying and strengthening hardness for dynamic problems via the online matrix-vector multiplication conjecture. In Proceedings of the 47th Annual ACM Symposium on Theory of Computing (STOC 2015), pages 21–30, 2015.
  18. Dynamic Maintenance of Monotone Dynamic Programs and Applications. In Proceedings of the 40th International Symposium on Theoretical Aspects of Computer Science (STACS 2023), pages 36:1–36:16, 2023.
  19. Faster approximation schemes for the two-dimensional knapsack problem. ACM Transactions on Algorithms (TALG), 15(4):1–28, 2019.
  20. Klaus Jansen. On rectangle packing: maximizing benefits. In Proceedings of the 15th ACM-SIAM Symposium on Discrete Algorithms (SODA 2004), 2004.
  21. Klaus Jansen. Parameterized approximation scheme for the multiple knapsack problem. SIAM Journal on Computing, 39(4):1392–1412, 2010.
  22. Klaus Jansen. A fast approximation scheme for the multiple knapsack problem. In Proceedings of the 38th International Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM 2012), pages 313–324, 2012.
  23. A PTAS for Packing Hypercubes into a Knapsack. In Proceedings of the 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), pages 78:1–78:20, 2022.
  24. Maximizing the number of packed rectangles. In Proceedings of the 9th Scandinavian Workshop on Algorithm Theory (SWAT 2004), pages 362–371, 2004.
  25. Hans Kellerer. A polynomial time approximation scheme for the multiple knapsack problem. In Proceedings of the 2nd International Workshop on Randomization and Approximation Techniques in Computer Science (APPROX 1999), pages 51–62, 1999.
  26. On the Fine-Grained Complexity of One-Dimensional Dynamic Programming. In Proceedings of the 44th International Colloquium on Automata, Languages, and Programming (ICALP 2017), pages 21:1–21:15, 2017.
  27. Iterative methods in combinatorial optimization, volume 46. Cambridge University Press, 2011.
  28. Computational geometry - a survey. IEEE Transactions on Computers, 100(12):1072–1101, 1984.
  29. On the Two-Dimensional Knapsack Problem for Convex Polygons. In Proceedings of the 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), pages 84:1–84:16, 2020.
  30. Fast approximation algorithms for the diameter and radius of sparse graphs. In Proceedings of the 45th Annual ACM Symposium on Theory of Computing (STOC 2013), pages 515–524, 2013.
  31. A Steinberg. A strip-packing algorithm with absolute performance bound 2. SIAM Journal on Computing, 26(2):401–409, 1997.
  32. Subcubic equivalences between path, matrix and triangle problems. In Proceedings of the 51st Annual Symposium on Foundations of Computer Science (FOCS 2010), pages 645–654, 2010.

Summary

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