Huang Yang, Zhou Xu, Yang Zhibang, Yu Ting, Zhang Ji, Zeng Yuanyuan, Li Kenli. Cache-Based Shortest Path Query Algorithm for Time-Varying Road Networks[J]. Journal of Computer Research and Development, 2022, 59(2): 376-389. DOI: 10.7544/issn1000-1239.20210892
Citation:
Huang Yang, Zhou Xu, Yang Zhibang, Yu Ting, Zhang Ji, Zeng Yuanyuan, Li Kenli. Cache-Based Shortest Path Query Algorithm for Time-Varying Road Networks[J]. Journal of Computer Research and Development, 2022, 59(2): 376-389. DOI: 10.7544/issn1000-1239.20210892
Huang Yang, Zhou Xu, Yang Zhibang, Yu Ting, Zhang Ji, Zeng Yuanyuan, Li Kenli. Cache-Based Shortest Path Query Algorithm for Time-Varying Road Networks[J]. Journal of Computer Research and Development, 2022, 59(2): 376-389. DOI: 10.7544/issn1000-1239.20210892
Citation:
Huang Yang, Zhou Xu, Yang Zhibang, Yu Ting, Zhang Ji, Zeng Yuanyuan, Li Kenli. Cache-Based Shortest Path Query Algorithm for Time-Varying Road Networks[J]. Journal of Computer Research and Development, 2022, 59(2): 376-389. DOI: 10.7544/issn1000-1239.20210892
1(College of Computer Science and Electronic Engineering, Hunan University, Changsha 410082)
2(Zhejiang Lab, Hangzhou 311100)
Funds: This work was supported by the National Natural Science Foundation of China (62172146, 61802032, 61772182, 62172157), Zhejiang Lab Open Project (2021KD0AB02), the Natural Science Foundation of Hunan Province (2020JJ4220, 2020JJ5083), and the Science and Technology Innovation Program of Hunan Province (2020RC2032).
As one of the fundamental operations in graph theory, the shortest path query has been extensively applied to the related applications based on road networks, including GPS navigation and personalized recommendation. In view of the high computational cost and slow query speed faced by the use of servers in the road network to query the shortest path online, the existing solutions usually utilize caching technology to optimize their performance. Considering that the edge weight of the road network has the characteristics of frequent changes, the existing related work failed to effectively realize the rapid update of cached data, then ignored the timeliness of the shortest path in the cache, which led to a decrease in the cache hit ratio. In view of this, we first propose a new cache storage structure that effectively balances the relationship between the overall query speed of the shortest path and the cache data update speed; Secondly, we propose a cache storage strategy that combines path sharing abilities and path diversity to optimize cache revenue and improve cache hit ratio; Finally, we propose a cache-based time-varying shortest path query (CTSPQ) algorithm based on the storage structure to improve the speed of querying the shortest path in the cache. A great deal of experiments on real data sets prove the effectiveness and scalability of the proposed techniques.