The shortest path problem is a class of typical problems in graph theory and network science, with a wide range of application scenarios. The state of the art all-pair shortest path algorithm is implemented by the parallel single source shortest path algorithms, since the Floyd algorithm is difficult to accelerate by parallelism. We propose a novel all-pair shortest path algorithm based on block matrix multiplication via GPUs, which transforms shortest path problems into the linear algebra problems and takes advantage of the GPUs' superior performance in this regard. In the experiments, the novel algorithm achieves average of 41.257$\times$ and the maximum of 89.919$\times$ over widely used Dijkstra algorithm which implements the priority queue by the binary heap and is optimized via multi-threading.
翻译:最短路径问题在于图表理论和网络科学中的典型问题,其应用情景范围很广。最短路径算法的状态是由平行的单一来源实施,最短路径算法,因为弗洛伊德算法难以通过平行法加速。我们建议采用新的全路径算法,其基础是块式矩阵乘以GPUs,将最短路径问题转化为线性代数问题,并利用GPUs在这方面的优异性能。在实验中,新式算法平均达到41,257美元,最多达到89.919美元,超过广泛使用的Dijkstra算法的89.919美元。Dijkstra算法执行二进制的优先排,并通过多读法优化。