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

基于规则的最短路径查询算法
引用本文:李忠飞,杨雅君,王鑫.基于规则的最短路径查询算法[J].软件学报,2019,30(3):515-536.
作者姓名:李忠飞  杨雅君  王鑫
作者单位:天津大学 智能与计算学部, 天津 300354;数字出版技术国家重点实验室, 北京 100871;天津市认知计算与应用重点实验室, 天津 300354,天津大学 智能与计算学部, 天津 300354;数字出版技术国家重点实验室, 北京 100871;天津市认知计算与应用重点实验室, 天津 300354,天津大学 智能与计算学部, 天津 300354;天津市认知计算与应用重点实验室, 天津 300354
基金项目:国家自然科学基金(61402323,61572353,U1736103);数字出版技术国家重点实验室开放课题;天津市自然科学基金(17JCYBJC15400)
摘    要:最短路径查询是图数据管理中非常重要的一类问题.研究了基于规则的最短路径查询,它是一类特殊的最短路径查询问题.给定起点和终点,基于规则的最短路径查询是指找到一条从起点到终点的最短路径,使得此路径经过用户指定点集中的所有点,并且某些点的访问顺序满足一定的偏序规则.该问题被证明是一个NP-hard问题.目前已有的工作侧重于空间数据集(两点之间的最短距离用欧氏距离表示)上基于规则的最短路径问题,它采用穷举的方式列出所有满足规则的路径,然后选择长度最小的路径作为问题的解.然而在实际的道路交通网中,两点之间的距离等于两点之间的最短路径的长度,它往往大于两点之间的欧氏距离;此外,采用穷举的方式会造成大量重复的计算.因此,设计了一种前向搜索算法以及一些优化技术来求解该问题.最后,在不同的真实数据集上设计了大量的实验来验证算法的有效性.实验结果表明,该算法可以快速给出问题的解,而且算法的效率在很大程度上超过了现有的算法.

关 键 词:图数据  最短路径  规则  最优子排列  分层收缩
收稿时间:2018/7/19 0:00:00
修稿时间:2018/9/20 0:00:00

Rule Based Shortest Path Query Algorithm
LI Zhong-Fei,YANG Ya-Jun and WANG Xin.Rule Based Shortest Path Query Algorithm[J].Journal of Software,2019,30(3):515-536.
Authors:LI Zhong-Fei  YANG Ya-Jun and WANG Xin
Affiliation:College of Intelligence and Computing, Tianjin University, Tianjin 300354, China;State Key Laboratory of Digital Publishing Technology, Beijing 100871, China;Tianjin Key Laboratory of Cognitive Computing and Application, Tianjin 300354, China,College of Intelligence and Computing, Tianjin University, Tianjin 300354, China;State Key Laboratory of Digital Publishing Technology, Beijing 100871, China;Tianjin Key Laboratory of Cognitive Computing and Application, Tianjin 300354, China and College of Intelligence and Computing, Tianjin University, Tianjin 300354, China;Tianjin Key Laboratory of Cognitive Computing and Application, Tianjin 300354, China
Abstract:The shortest path query is very important in the related applications of graph data. The problem studied in this work is the rule-based shortest path query, which is a special kind of shortest path problem. Given the starting vertex and the ending vertex, the rule-based shortest path query is that finding a shortest path from the starting vertex to the ending vertex, which passes through all vertices in the user-specified set, and the access order of some vertices meets certain partial order rules. It has proved that this problem is NP-hard problem. The existing work focuses on the rule-based shortest path problem on spatial datasets (the shortest distance between two vertices is expressed by Euclidean distance), which exhaustively lists all paths those satisfy the rule, and selects the path with the smallest length as the solution to the problem. However, in an actual road network, the distance between two vertices is equal to the length of the shortest path between two vertices, which is often greater than the Euclidean distance between two vertices. In addition, using an exhaustive approach always results in a lot of repetitive calculations. Based on this, this study designs a forward search algorithm and some optimization techniques to solve such problems. Finally, this study designs a large number of experiments on different real datasets to verify the effectiveness of the algorithms. The experimental results show that the algorithms described in this paper can quickly give the solution to the problem, and the efficiency of the algorithms greatly exceeds the existing algorithms.
Keywords:graph data  shortest path  rule  optimal sub-permutation  contraction hierarchy
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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