山东科学 ›› 2018, Vol. 31 ›› Issue (2): 64-71.doi: 10.3976/j.issn.1002-4026.2018.02.011

• 交通运输 • 上一篇    下一篇

基于预处理的点到点最短路径计算方法

陆文琦,谷远利,李萌,王硕,张源   

  1. 北京交通大学城市交通复杂系统理论与技术教育部重点实验室,北京 100044
  • 收稿日期:2017-06-14 出版日期:2018-04-20 发布日期:2018-04-20
  • 作者简介:陆文琦(1993—),男,硕士研究生,研究方向为交通运输规划与管理。E-mail:16120863@bjtu.edu.cn
  • 基金资助:

    国家重点基础研究发展计划(973计划)(2012CB725403);北京市科技计划项目(Z121100000312101)

An algorithm for point to point shortest paths based on preprocessing

LU Wen-qi, GU Yuan-li, LI Meng, WANG Shuo, ZHANG Yuan   

  1. MOE Key Laboratory for Urban Transportation Complex Systems Theory and Technology, Beijing Jiaotong University, Beijing 100044, China
  • Received:2017-06-14 Online:2018-04-20 Published:2018-04-20

摘要:

基于经典的Dijkstra算法,研究采用预处理的点到点最短路径算法。通过引入双向Dijkstra和基于reach的预处理方法形成新的RE算法,并利用C++编程设计算法程序,将新算法应用于交通工程领域。利用EFSS数据结构搭建考虑交叉口和路段延误的交通网络,检验新算法的适用性和效率,结果发现RE算法与Dijkstra算法相比,搜索速度有大幅提升且能保证路径查询的正确性,RE算法在大规模网络上优势更为显著,查询时间约为Dijkstra算法的10%。

关键词: 双向Dijkstra算法, RE算法, 路径优化, 基于reach的剪枝方法

Abstract:

Based on the classical Dijkstra algorithm, an algorithm for point to point shortest paths based on preprocessing was studied. The bidirectional Dijkstra algorithm and the reachbased preprocessing method were introduced to establish the new RE algorithm in this paper. The program of the new algorithm was compiled with C++ and the new algorithm was applied to traffic engineering field. Traffic networks considering delay on roads and intersections were constructed by using EFSS data structure to test the applicability and efficiency of RE algorithm. The results reveal that compared with the original Dijkstra algorithm, the RE algorithm has a significant increase in the search speed and can ensure the correctness of path query. On largescale networks, the new RE algorithm shows great advantages and its query time is approximately 10% of the Dijkstra algorithm.

Key words: reach-based pruning method, route optimization, RE algorithm, bidirectional Dijkstra algorithm

中图分类号: 

  • U116.2