首页 | 本学科首页   官方微博 | 高级检索  
     

不可达顶点剪枝算法及其在最短路径中的应用
引用本文:李艳,王阳阳,张红岩,武优西.不可达顶点剪枝算法及其在最短路径中的应用[J].计算机工程与应用,2020,56(15):51-57.
作者姓名:李艳  王阳阳  张红岩  武优西
作者单位:1.河北工业大学 经济管理学院,天津 300401 2.河北工业大学 人工智能与数据科学学院,天津 300401
基金项目:河北省研究生创新能力培养资助项目;国家自然科学基金
摘    要:k]步可达性查询用于回答图G]中从顶点u]到达顶点v]最多k]步是否存在路径,但其多用于无权图的可达性研究。针对加权图,在图中构建了最早到达、逆向最早到达和最晚到达等三个索引,并应用这三个索引实现对不可达顶点的快速剪枝,从而有效地缩减了加权图的规模。运用该方法建立索引并剪枝顶点的时间复杂度与空间复杂度分别为O(n+e)]和O(n)],这里n]和e]分别为图中顶点的数目和边的数目。该方法可以与Dijkstra算法、Floyd算法和A*算法等多种传统算法相结合,并应用于最短路径求解,从而提高传统算法计算性能。最后以物流配送网络为例进行了实验验证,实验结果表明提出的方法可以正确并高效地对不必要计算的顶点进行剪枝,从而加快了最短路径求解速度,验证了提出方法的有效性。

关 键 词:索引  剪枝策略  最短路径  可达性查询  

Fast Pruning Algorithm for Unreachable Vertices and Its Application in Solving Shortest Path Problem
LI Yan,WANG Yangyang,ZHANG Hongyan,WU Youxi.Fast Pruning Algorithm for Unreachable Vertices and Its Application in Solving Shortest Path Problem[J].Computer Engineering and Applications,2020,56(15):51-57.
Authors:LI Yan  WANG Yangyang  ZHANG Hongyan  WU Youxi
Affiliation:1.School of Economics and Management, Hebei University of Technology, Tianjin 300401, China 2.School of Artificial Intelligence, Hebei University of Technology, Tianjin 300401, China
Abstract:k] step reachability query is used to solve the problem whether there exists a reachable path from vertex u] to vertex v] within k] steps in graph G]. But these reachability studies mostly focus on unweighted graph. This paper builds three indexes:the earliest arrival index, the reverse earliest arrival index, and the latest arrival index in the weighted graph and employs these three indexes to achieve fast pruning of the unreachable vertices, so as to effectively reduce the scale of the weighted graph. The time and space complexities of the method are O(n+e)] and O(n)], where n] and e] are the number of the verices and the edges of graph G], respectively. This method combined with algorithms Dijkstra, Floyd, and A-star is utilized to solve the shortest path problem in order to improve the perfomance of the triditional algorithms. Finally, a logistics distribution network is employed to verify the performance of the proposed algorithm. The experimental results show that the proposed algorithm can accurately and efficiently prune the useless vertices and boost the calculating speed of the shortest path effectively, the effectiveness of the proposed method is verified.
Keywords:index  pruning strategy  shortest path  reachability query  
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号