摘要: 提出一种多核平台并行单源最短路径算法。采用与Δ-Stepping算法相似的并行策略,通过多个子线程对同一个桶中的弧段进行并行松弛,利用主线程控制串行搜索中桶的序列。实验结果表明,该算法求解全美单源最短路径的时间约为4 s,与使用相同代码实现的串行算法相比,加速比更高。
关键词:
并行算法,
最短路径,
网络分析,
多核平台
Abstract: A multi-thread parallel Single-source Shortest Path(SSSP) algorithm is proposed in multi-cores platform. It employs buckets to sort and uses the similar parallel strategy of Δ-Stepping algorithm. It does edge relaxations of the same bucket in parallel by slave threads, and searches all buckets in sequence by master thread. Experimental results show that this algorithm performs 4 seconds in the USA road network, achieving a higher speedup compared with serial parallel algorithm using same code.
Key words:
parallel algorithm,
shortest path,
network analysis,
multi-core platform
中图分类号:
黄跃峰, 钟耳顺. 多核平台并行单源最短路径算法[J]. 计算机工程, 2012, 38(3): 1-3.
HUANG Ti-Feng, ZHONG Er-Shun. Parallel Single-source Shortest Path Algorithm on Multi-core Platform[J]. Computer Engineering, 2012, 38(3): 1-3.