期刊文献+

基于回溯法的Dijkstra算法改进及仿真 被引量:10

Improvement and Simulation of Dijkstra Algorithm Based on Backtracking Algorithm
在线阅读 下载PDF
导出
摘要 针对求有权图中任意两个顶点间的所有最短路径问题,提出了Dijkstra算法的改进。改进算法以加权图的邻接矩阵为基础,首先求出从一个顶点到其它各顶点的最短路径长度向量,然后由邻接矩阵和最短路径长度向量构造标识矩阵,最后用回溯法搜索标识矩阵得到从始点到其它各顶点的所有最短路径。改进算法具有使用范围广、计算规模小、计算过程简化、计算机易于实现等优点。改进算法的核心是用回溯法求解所有最短路径的运算,提出了从终点到始点的回溯求解问题,并且给出了求解任意两个顶点间的所有最短路径的快速算法。改进算法充分利用了标识矩阵所提供的路径信息经过回溯搜索得到两个顶点间的所有最短路径。仿真结果表明,改进算法对于求图中任意两个顶点间的所有最短路径行之有效。 In view of all of the shortest path problem, this paper put forward an improveed Dijkstra algorithm based on the weighted graph adjacency matrix. First of all, the shortest path length vector was obtained from a vertex to all other vertices. Then it structsed an identity matrix by adjacency matrix and shortest path length vector. Finally, it used the backtracking algorithm and the identity matrix to search out all shortest paths obtained from the starting point to all other vertices. This algorithm has the advantages of wide using range, small scale of calculation, simpli- fied calculation process, and easy realizaion with a computer. The core of the algorithm is to use backtracking to solve all the shortest path computation. The paer put forward a backtracking method to solve the problem from the end to the starting point, discussed and gave a fast algorithm for any two vertices to find all the shortest path. The algorithm makes full use of the path information obtained from the identity matrix to search all shortest paths between the two vertices by backtracking. The simulation results show that it is very effective to find all of the shortest paths between any two vertices.
作者 王防修 周康
出处 《计算机仿真》 CSCD 北大核心 2013年第11期352-355,共4页 Computer Simulation
基金 国家自然科学基金资助项目(61179032)
关键词 最短路径 狄杰斯特拉算法 标识矩阵 回溯法 所有最短路径 The shortest path Dijkstra algorithm Identity matrix Backtracking algorithm All of the shortest path
  • 相关文献

参考文献14

二级参考文献73

共引文献112

同被引文献59

引证文献10

二级引证文献22

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部