计算机工程与应用 ›› 2017, Vol. 53 ›› Issue (20): 43-49.DOI: 10.3778/j.issn.1002-8331.1706-0087

• 理论与研发 • 上一篇    下一篇

过必经结点集的选择性排序算法

董跃华,周永新   

  1. 江西理工大学 信息工程学院,江西 赣州 341000
  • 出版日期:2017-10-15 发布日期:2017-10-31

Selective sorting algorithm over a set of necessary nodes

DONG Yuehua, ZHOU Yongxin   

  1. School of Information Engineering, Jiangxi University of Science and Technology, Ganzhou, Jiangxi 341000, China
  • Online:2017-10-15 Published:2017-10-31

摘要: 目前研究经过必经结点集的最短路径算法多数是针对不允许存在回路的情况,少数针对存在回路的传统算法时间复杂度相对偏高。对此通过探索最优路径形成的规律,将含有大量结点的图转化为含有少量结点的图,用选择性排序法尽量少地生成路径序列分支,对这些分支进行筛选从而得到最短路径。实验结果表明,在面对数目较多的必经结点时,该算法性能将优于传统算法。

关键词: 最优路径, Dijkstra算法, 单边因子, 选择性排序

Abstract: At present, most of the shortest path algorithms that pass through the necessary set of nodes are aimed at the situation where no loops are allowed, and a small number of traditional algorithms for the loop have high time complexity. In this regard, this paper explores the law of the formation of the optimal path, the graph containing a large number of nodes is transformed into a graph containing a small number of nodes, the path sequence branch is generated as little as possible by selective sorting, these branches are filtered to obtain the shortest path. The analysis of the algorithm and experimental results show that the performance of the algorithm is superior to that of the traditional algorithm in the face of a large number of necessary nodes.

Key words: shortest path, Dijkstra’s algorithm, one-sided factor, selective sorting