计算机与现代化

• 网络与通信 • 上一篇    下一篇

基于方向优先和对向搜索的改进Dijkstra算法

  

  1. (山东万杰医学院,山东 淄博 255213)
  • 收稿日期:2014-04-24 出版日期:2014-07-16 发布日期:2014-07-17
  • 作者简介:唐彩红(1980-),女,山东淄博人,山东万杰医学院讲师,硕士,研究方向:计算机应用。

An Improved Dijkstra Algorithm Based on Direction Priority and Bidirectional Search

  1. (Shandong Wanjie Medical College, Zibo 255213, China)
  • Received:2014-04-24 Online:2014-07-16 Published:2014-07-17

摘要: 传统Dijkstra算法在搜索最短路径时需要逐一遍历网络图中所有顶点,计算量大,占用存储空间大,搜索效率很低。因此,针对交通网络的空间特性和传统算法的不足,改进存储结构,采用“方向优先+对向搜索”相结合的搜索方法,以减少存储空间,缩小搜索范围,从而加快搜索速度,提高算法的搜索效率。实验数据表明:与传统算法相比,改进的算法能够更有效地搜索交通网络中的最短路径,具有更好的实用价值。

关键词: 最短路径, 改进, 存储结构, 方向优先+对向搜索, 搜索效率

Abstract: In the process of searching the shortest path, the traditional Dijkstra algorithm needs to traverse all vertices one by one in the network graph. The amount of calculation and storage space is large, and the search efficiency is very low. Therefore, based on the spatial characteristics of traffic network and the shortage of the traditional algorithm, storage structure is improved, and the combination of direction priority and bidirectional search is adopted. The purpose is to reduce the storage space and narrow search scope. As a result, search speed is accelerated, and search efficiency is raised. The experimental data shows that: compared with the traditional algorithm, the improved algorithm can search more effectively the shortest path in a transportation network, and has better practical value.

Key words: shortest path, improvement, storage structure, direction priority and bidirectional search, search efficiency

中图分类号: