The shortest paths problem is a fundamental challenge in graph theory, with a broad range of potential applications. The algorithms based on matrix multiplication exhibits excellent parallelism and scalability, but is constrained by high memory consumption and algorithmic complexity. Traditional shortest paths algorithms are limited by priority queues, such as BFS and Dijkstra algorithm, making the improvement of their parallelism a focal issue. We propose a matrix operation-optimized algorithm, which offers improved parallelism, reduced time complexity, and lower memory consumption. The novel algorithm requires $O(E_{wcc}(i))$ and $O(S_{wcc} \cdot E_{wcc})$ times for single-source and all-pairs shortest paths problems, respectively, where $S_{wcc}$ and $E_{wcc}$ denote the number of nodes and edges included in the largest weakly connected component in graph. To evaluate the effectiveness of the novel algorithm, we tested it using graphs from SuiteSparse Matrix Collection and Gunrock benchmark dataset. Our algorithm outperformed the BFS implementations from Gunrock and GAP (the previous state-of-the-art solution), achieving an average speedup of 3.769$\times$ and 9.410$\times$, respectively.
Distributed Exact Weighted All-Pairs Shortest Paths in $\tilde O(n^{5/4})$ Rounds
我们研究计算{ \em所有对最短路径}(APSP)的分布式网络(CONGEST模型)。目标是让(加权)网络中的每个节点都知道使用通信的每个其他节点的距离。该问题允许$(1+o(1))$ -近似$\tilde O(n)$ -时间算法~ \cite{LenzenP-podc15,Nanongkai-STOC14},它与$\tilde Ω(n)$ -时间下界~ \cite{Nanongkai-STOC14,LenzenP_stoc13,FrischknechtHW12} \footnote{$\tilde Θ$, $\tilde O$ and $\tilde Ω$ hide polylogarithmic factors. Note that the lower bounds also hold even in the unweighted case and in the weighted case with polynomial approximation ratios.}相匹配.没有$ω(n)$下限或$o(m)$上限已知的精确计算。在本文中,我们提出了一个$\tilde O(n^{5/4})$ -时间随机(拉斯维加斯)算法精确加权APSP,这提供了第一个改进的天真$O(m)$ -时间算法时,网络不是那么稀疏。我们的结果也适用于边权重是{PDMATHAMM不对称}(a.k.a.通信是双…
Distributed Exact Weighted All-Pairs Shortest Paths in Near-Linear Time
在{ \em distributed all-pairs shortest paths}问题(APSP)中,加权无向分布式网络(CONGEST模型)中的每个节点都需要使用最少的通信轮数(通常称为{ \em时间复杂度})来知道与其他节点的距离。该问题允许$(1+o(1))$ -近似$\tildeΘ(n)$ -时间算法和接近紧的$\tilde Ω(n)$下界[Nanongkai,STOC'14; Lenzen和Patt-Shamir PODC'15] \footnote{$\tilde Θ$, $\tilde O$ and $\tilde Ω$ hide polylogarithmic factors. Note that the lower bounds also hold even in the unweighted case and in the weighted case with polynomial approximation ratios~\cite{LenzenP_podc13,HolzerW12,PelegRT12,Nanongkai-STOC14}.}。对于确切的情况,Elkin [STOC'17]提出了一个$O(n^{5/3} \log^{2/3} n)$时间界限,后来改进为$\tilde O(n^{5/4})$ [Huang,Nanongkai,Saranura…
Fully Polynomial-Time Distributed Computation in Low-Treewidth Graphs
我们考虑全球性的问题,即问题,需要至少直径的时间,即使带宽不受限制。我们表明,所有考虑的问题承认有效的解决方案,在低树宽图。我们所说的"有效“是指运行时间对树宽有多项式依赖性,对直径有线性依赖性(这是不可避免的),对图中节点数$n$只有多对数依赖性。我们提出了解决CONGEST模型中以下问题的算法,它们都达到了$\tilde{O(τ^{O(1)}D)}$ -轮复杂度(其中$τ$和$D$分别表示图的树宽和直径):(1)精确单源最短路径(实际上,计算距离标记方案的更一般的问题),(2)精确二分未加权最大匹配,(3)有向图和无向图的加权围长。我们得出我们所有的结果使用一个统一的框架,其中包括两个新的技术成分,第一个是一个完全多项式时间的分布式树分解算法,它输出分解的宽度$O(τ^2\log n)$在$\tilde{O}(τ^{O(1)}D)$轮(其中$n$是图中的节点数)。第二个成分,也是本文的技术亮点,是\emph{stateful walk constraint}的新概念,它基于它们的局部属性(例如,增强路径)。给定有状态的行走约束,最短路径问题(或距离标记)的约束版本要求算法输出给定源顶点和宿顶点的最短\emph{constrained}行走(或其距离)。我们表明,这个问题可以有效地解决在CONGEST模型,减少它的\emph{unconstrained}版本的问题。