Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
175 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
42 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Faster Multi-Source Directed Reachability via Shortcuts and Matrix Multiplication (2401.05628v2)

Published 11 Jan 2024 in cs.DS

Abstract: Given an $n$-vertex $m$-edge digraph $G = (V,E)$ and a set $S \subseteq V$, $|S| = n{\sigma}$ (for some $0 < \sigma \le 1$) of designated sources, the $S \times V$-direachability problem is to compute for every $s \in S$, the set of all the vertices reachable from $s$ in $G$. Known naive algorithms for this problem either run a BFS/DFS separately from every source, and as a result require $O(m \cdot n{\sigma})$ time, or compute the transitive closure of $G$ in $\tilde O(n{\omega})$ time, where $\omega < 2.371552\ldots$ is the matrix multiplication exponent. Hence, the current state-of-the-art bound for the problem on graphs with $m = \Theta(n{\mu})$ edges in $\tilde O(n{\min {\mu + \sigma, \omega }})$. Our first contribution is an algorithm with running time $\tilde O(n{1 + \tiny{\frac{2}{3}} \omega(\sigma)})$ for this problem, where $\omega(\sigma)$ is the rectangular matrix multiplication exponent. Using current state-of-the-art estimates on $\omega(\sigma)$, our exponent is better than $\min {2 + \sigma, \omega }$ for $\tilde \sigma \le \sigma \le 0.53$, where $1/3 < \tilde \sigma < 0.3336$ is a universal constant. Our second contribution is a sequence of algorithms $\mathcal A_0, \mathcal A_1, \mathcal A_2, \ldots$ for the $S \times V$-direachability problem. We argue that under a certain assumption that we introduce, for every $\tilde \sigma \le \sigma < 1$, there exists a sufficiently large index $k = k(\sigma)$ so that $\mathcal A_k$ improves upon the current state-of-the-art bounds for $S \times V$-direachability with $|S| = n{\sigma}$, in the densest regime $\mu =2$. We show that to prove this assumption, it is sufficient to devise an algorithm that computes a rectangular max-min matrix product roughly as efficiently as ordinary $(+, \cdot)$ matrix product. Our algorithms heavily exploit recent constructions of directed shortcuts by Kogan and Parter.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (14)
  1. Closing the Gap Between Directed Hopsets and Shortcut Sets, pages 163–182. 20223. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611977554.ch7, arXiv:https://epubs.siam.org/doi/pdf/10.1137/1.9781611977554.ch7, doi:10.1137/1.9781611977554.ch7.
  2. Maximum flow and minimum-cost flow in almost-linear time. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 612–623, 2022. doi:10.1109/FOCS54457.2022.00064.
  3. Matrix multiplication via arithmetic progressions. Journal of Symbolic Computation, 9(3):251–280, 1990. Computational algebraic complexity editorial. URL: https://www.sciencedirect.com/science/article/pii/S0747717108800132, doi:https://doi.org/10.1016/S0747-7171(08)80013-2.
  4. Fast Algorithms for (max, min)-Matrix Multiplication and Bottleneck Shortest Paths, pages 384–391. 2009. doi:10.1137/1.9781611973068.43.
  5. Centralized, parallel, and distributed multi-source shortest paths via hopsets and rectangular matrix multiplication. In Petra Berenbrink and Benjamin Monmege, editors, 39th International Symposium on Theoretical Aspects of Computer Science, STACS 2022, March 15-18, 2022, Marseille, France (Virtual Conference), volume 219 of LIPIcs, pages 27:1–27:22. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022. URL: https://doi.org/10.4230/LIPIcs.STACS.2022.27, doi:10.4230/LIPICS.STACS.2022.27.
  6. François Le Gall. Faster rectangular matrix multiplication by combination loss analysis. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), page To appear in SODA 2024, 2024.
  7. All-Pairs LCA in DAGs: Breaking through the O⁢(n2.5)𝑂superscript𝑛2.5O(n^{2.5})italic_O ( italic_n start_POSTSUPERSCRIPT 2.5 end_POSTSUPERSCRIPT ) barrier, pages 273–289. 2021. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611976465.18, arXiv:https://epubs.siam.org/doi/pdf/10.1137/1.9781611976465.18, doi:10.1137/1.9781611976465.18.
  8. Improved rectangular matrix multiplication using powers of the coppersmith-winograd tensor. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’18, page 1029–1046, USA, 2018. Society for Industrial and Applied Mathematics.
  9. Beating matrix multiplication for n1/3superscript𝑛13n^{1/3}italic_n start_POSTSUPERSCRIPT 1 / 3 end_POSTSUPERSCRIPT-directed shortcuts. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of Leibniz International Proceedings in Informatics (LIPIcs), pages 82:1–82:20, Dagstuhl, Germany, 2022. doi:10.4230/LIPIcs.ICALP.2022.82.
  10. New Diameter-Reducing Shortcuts and Directed Hopsets: Breaking the n𝑛\sqrt{n}square-root start_ARG italic_n end_ARG Barrier, pages 1326–1341. 2022.
  11. François Le Gall. Powers of tensors and fast matrix multiplication. In Proceedings of the 39th International Symposium on Symbolic and Algebraic Computation, ISSAC ’14, page 296–303, New York, NY, USA, 2014. Association for Computing Machinery. doi:10.1145/2608628.2608664.
  12. Quantum algorithms for matrix products over semirings. In R. Ravi and Inge Li Gørtz, editors, Algorithm Theory – SWAT 2014, pages 331–343, Cham, 2014. Springer International Publishing.
  13. New bounds for matrix multiplication: from alpha to omega. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), page To appear in SODA 2024, 2024.
  14. Uri Zwick. All pairs shortest paths using bridging sets and rectangular matrix multiplication. J. ACM, 49(3):289?317, may 2002. doi:10.1145/567112.567114.

Summary

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