作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2002, Vol. 28 ›› Issue (02): 134-136.

• 论文 • 上一篇    下一篇

求图中顶点之间所有最短路径的一种实用算法

孙强,沈建华,顾君忠   

  1. 华东师范大学计算机科学技术系,华东师范大学计算机科学技术系,华东师范大学计算机科学技术系 上海 200062
  • 发布日期:2002-02-25

An Algorithm for Finding All the Shortest Paths from One Node to Another in A Graph

SUN Qiang, SHEN Jianhua, GU Junzhong   

  1. (Department of Computer Science and Technology, East China Normal University, Shanghai 200062)
  • Published:2002-02-25

摘要: 提出了求一个顶点到另一个顶点的所有最短路径的一个算法,此算法中设计了一些独特的数据结构,在算法运行的整个过程中,求一个有效顶点(后面定义)到终点的所有最短路径的过程(入栈、出栈等操作)实际只进行一遍,用语言编制的相应程序验证了这个算法C的可靠性和实用性。

关键词: 最短路径, 算法, 顶点

Abstract: An algorithm for finding all the shortest paths from one node to another has been put forward. Some peculiar data structures are designed in this algorithm. The process for finding all the shortest paths from one effective node (defined below) to the extreme node is carried out only once in fact, so the efficiency of the algorithm is raised highly.In this article, some instances are provided to prove the algorithm reliable and useful.

中图分类号: