The invention discloses a multi-constrained path query method under a time sequence diagram, which includes the following specific steps: aggregating multiple attributes of a path by defining an objective equation, and then searching backwards from the end point to the start point according to the user's given starting point and end point, constraint value and time interval, calculating the path from the start point to the end point and the path from the intermediate node to the end point. The minimum objective equation value of the path and the objective equation value at the latest moment are expanded forward from the starting point. The earliest, the latest, the fastest and the shortest are extended backward respectively. In the process of expansion, the two objective equation values obtained from the reverse are pruned to speed up the query. Through the above way, the multi-constrained path query method under the time sequence diagram of the present invention proposes a forward and backward combination method to comprehensively consider the constraints and the target values, so as to find the best path that meets the user's needs, and can efficiently and effectively query the path.
【技术实现步骤摘要】
一种时序图下多约束路径查询方法
本专利技术涉及图算法和数据挖掘的领域,尤其涉及一种时序图下多约束路径查询方法。
技术介绍
路径查询问题存在于现实生活中的许多应用里,比如交通网络上的路径规划,社交关系网络里的信任路径查找,这些都可以被抽象为图上的路径问题。现有的路径查询大多数是基于静态图的,但是现实生活中的很多图都是具有时序信息的。比如在电话网络中,某两个人之间的通信可能在一天当中的某些时刻发生,在公共交通网络里,车辆的出发时间是根据已有的时刻表来安排的,传统的静态图上的路径查询方法无法用于时序图,因此,一些文献已经在时序图上研究相关的路径查询问题[1][2],比较广泛研究的几种路径包括最早到达路径,最晚出发路径,最快路径和最短路径。此外,除了时刻信息外,很多图上会具有属性信息,可以形成多属性时序图,比如在公共交通网络里,每个车辆除了具有固定的出发时刻外,从出发地到目的地之间会有运行距离,运行费用等属性,在通信网络中,两个通信者之间会有通话时长等属性。通常人们在考虑路径时也会对这些属性提出一些相应的约束来表明他们对路径的要求,如果某人想在下午5点之后出发去餐厅,那么 ...
【技术保护点】
1.一种时序图下多约束路径查询方法,其特征在于,包括以下具体步骤:通过定义一个目标方程,对一条路径的多属性进行聚合,然后根据用户给定的起点和终点,约束值以及时间区间,从终点向起点进行反向搜索,计算出起点到终点的路径以及中间节点到终点的路径的最小目标方程值和最晚时刻下的目标方程值,然后从起点开始正向扩展路径,以最早、最晚、最快和最“短”分别为目标向后扩展,在扩展过程中结合反向求得的两个目标方程值进行剪枝来加快查询速度。
【技术特征摘要】
1.一种时序图下多约束路径查询方法,其特征在于,包括以下具体步骤:通过定义一个目标方程,对一条路径的多属性进行聚合,然后根据用户给定的起点和终点,约束值以及时间区间,从终点向起点进行反向搜索,计算出起点到终点的路径以及中间节点到终点的路径的最小目标方程值和最晚时刻下的目标方程值,然后从起点开始正向扩展路径,以最早、最晚、最快和最“短”...
【专利技术属性】
技术研发人员:时久超,赵安琪,刘冠峰,
申请(专利权)人:苏州大学,
类型:发明
国别省市:江苏,32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。