Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (8): 118-120.DOI: 10.3778/j.issn.1002-8331.2009.08.035

• 网络、通信、安全 • Previous Articles     Next Articles

Halfedge data structure based shortest path algorithm

WANG Ji-dong1,2,CHEN Gui-lin1   

  1. 1.Department of Computer Science and Technology,Chuzhou University,Chuzhou,Anhui 239012,China
    2.Department of Educational Technology,Nanjing Normal University,Nanjing 210097,China
  • Received:2008-01-24 Revised:2008-04-28 Online:2009-03-11 Published:2009-03-11
  • Contact: WANG Ji-dong

基于半边数据结构的最短路径算法及其实现

王继东1,2,陈桂林1   

  1. 1.滁州学院 计算机科学与技术系,安徽 滁州 239012
    2.南京师范大学 教育技术系,南京 210097
  • 通讯作者: 王继东

Abstract: In this paper,a novel shortest path algorithm based on the famous half-edge structure is introduced.In light of efficient data accessing of half-edge structure,a different strategy of shortest path searching is used.The algorithm has ability of calculating the shortest paths from an arbitrary given node to the other nodes in network.Experiments and results show that the algorithm can perform more efficiently than traditional ways,especially when the calculated network is a large scale and sparse one.

Key words: algorithm, shortest path, half-edge structure

摘要: 在分析传统最短路径算法数据结构的基础上,提出并实现了一种以半边数据结构存储网络拓扑数据的最短路径算法。该算法充分利用半边数据结构存储格式紧凑、操作直观高效等方面的优点,采用较传统方法不同的路径检索方式,实现了快速计算网络中任一结点到其他所有结点的最短路径。实验表明,基于半边数据结构的最短路径算法可以大幅度提高网络中最短路径的计算效率,其性能在网络结点显著增多时愈加明显。

关键词: 算法, 最短路径, 半边数据结构