通过捷径与矩阵乘法加速多源有向可达性
Faster Multi-Source Directed Reachability via Shortcuts and Matrix Multiplication
AI总结:
本文针对多源有向可达性问题,提出基于矩形矩阵乘法和有向捷径的新算法,在特定源点规模范围内改进现有时间复杂度,并给出一系列算法框架及进一步改进的充分条件。
摘要:
给定一个包含 n 个顶点、m 条边的有向图 G = (V,E),以及一个指定源点集合 S ⊆ V,|S| = n^σ(其中 0 < σ ≤ 1),S × V 有向可达性问题要求对每个 s ∈ S 计算从 s 在 G 中可达的所有顶点。已知的朴素算法要么对每个源点分别运行 BFS/DFS,因此需要 O(m · n^σ) 时间,要么在 Õ(n^ω) 时间内计算 G 的传递闭包,其中 ω < 2.371552… 是矩阵乘法指数。因此,对于边数 m = Θ(n^μ) 的图,该问题目前最先进的界为 Õ(n^{min{μ+σ, ω}})。我们的第一个贡献是一个运行时间为 Õ(n^{1 + (2/3)ω(σ)}) 的算法,其中 ω(σ) 是矩形矩阵乘法指数。利用当前最先进的 ω(σ) 估计,对于 σ̃ ≤ σ ≤ 0.53,我们的指数优于 min{2 + σ, ω},其中 1/3 < σ̃ < 0.3336 是一个通用常数。我们的第二个贡献是针对 S × V 有向可达性问题的一系列算法 A_0, A_1, A_2, …。我们论证,在我们引入的某个假设下,对于每个 σ̃ ≤ σ < 1,存在足够大的指标 k = k(σ),使得 A_k 在最稠密情形 μ = 2 下改进 |S| = n^σ 的 S × V 有向可达性问题的当前最先进界。我们证明,为证明该假设,只需设计一个算法,使其计算矩形 max-min 矩阵乘积的效率大致与普通 (+, ·) 矩阵乘积相当。我们的算法大量利用了 Kogan 和 Parter 近期构造的有向捷径。
英文摘要:
Given an $n$-vertex $m$-edge digraph $G = (V,E)$ and a set $S \subseteq V$, $|S| = n^σ$ (for some $0 < σ\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^σ)$ time, or compute the transitive closure of $G$ in $\tilde O(n^ω)$ time, where $ω< 2.371552\ldots$ is the matrix multiplication exponent. Hence, the current state-of-the-art bound for the problem on graphs with $m = Θ(n^μ)$ edges in $\tilde O(n^{\min \{μ+ σ, ω\}})$. Our first contribution is an algorithm with running time $\tilde O(n^{1 + \tiny{\frac{2}{3}} ω(σ)})$ for this problem, where $ω(σ)$ is the rectangular matrix multiplication exponent. Using current state-of-the-art estimates on $ω(σ)$, our exponent is better than $\min \{2 + σ, ω\}$ for $\tilde σ\le σ\le 0.53$, where $1/3 < \tilde σ< 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 σ\le σ< 1$, there exists a sufficiently large index $k = k(σ)$ so that $\mathcal A_k$ improves upon the current state-of-the-art bounds for $S \times V$-direachability with $|S| = n^σ$, in the densest regime $μ=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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。