PCSP: Efficiently Answering Label-Constrained Shortest Path Queries in Road Networks
Libin Wang, Raymond Chi-Wing Wong
Abstract
Shortest path queries are ubiquitous in many spatial applications. Existing solutions assign numerical weights to edges and compute the path with the minimum sum of edge weights. However, in practice, the road categories associated with edges (e.g., toll) can make shortest paths undesirable, e.g., they may use unfavorable toll roads. Augmenting each edge with a label to denote its category, we study the Label-Constrained Shortest Path (LCSP) query that finds the shortest path under the constraint that the edge labels along the path should follow a pattern expressed by a formal language. There have been extensive LCSP solutions, but they are either inefficient in query processing or limited to special languages with low expressiveness capacity. In this paper, we propose the index called Partially Constrained Shortest Path (PCSP), which answers each query quickly by concatenating two shortest paths that partially satisfy the constraint and support more general regular languages. We also present pruning techniques that further optimize query efficiency. Experimental comparison with the state-of-the-art index demonstrates the superiority of PCSP. It can answer each LCSP query in around 100 microseconds and runs faster than the best-known solution by up to two orders of magnitude.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a3b0e4f0-1a79-481a-b569-fa505c3da6b5Cited by top-tier papers4
- X-Blossom: Massive Parallelization of Graph Maximum MatchingDayi Fan, Rubao Lee, Xiaodong ZhangVLDB 2025 · 3 citations
- Efficient Temporal Simple Path Graph GenerationZhiyang Tang, Yanping Wu, Xiangjun Zai, Chen Chen et al.ICDE 2025 · 1 citation
- NRP: An Efficient Index for Stochastic Routing in Road NetworksLibin Wang, Raymond Chi-Wing WongICDE 2025
- PRIME: Efficient Algorithm for Token Graph Routing ProblemHaotian Xu, Yuqing Zhu, Yuming Huang, Jing TangICDE 2026
Builds on7
- Dynamic Hub Labeling for Road NetworksMengxuan Zhang, Lei Li, Wen Hua, Rui Mao et al.ICDE 2021 · 52 citations
- Scaling Up Distance Labeling on Graphs with Core-Periphery PropertiesWentao Li, Miao Qiao, Lu Qin, Ying Zhang et al.SIGMOD 2020 · 38 citations
- Relative Subboundedness of Contraction Hierarchy and Hierarchical 2-Hop Index in Dynamic Road NetworksYikai Zhang, Jeffrey Xu YuSIGMOD 2022 · 24 citations
- FHL-Cube: Multi-Constraint Shortest Path Querying with Flexible Combination of ConstraintsZiyi Liu, Lei Li, Mengxuan Zhang, Wen Hua et al.VLDB 2022 · 20 citations
- Architecture-Intact Oracle for Fastest Path and Time Queries on Dynamic Spatial NetworksVictor Junqiu Wei, Raymond Chi-Wing Wong, Cheng LongSIGMOD 2020 · 18 citations
Related papers
- Efficient Indexing for Flexible Label-Constrained Shortest Path Queries in Road NetworksLibin Wang, Raymond Chi-Wing WongSIGMOD 2025
- Efficient Label-Constrained Shortest Path Queries on Road Networks: A Tree Decomposition ApproachJunhua Zhang, Long Yuan, Wentao Li, Lu Qin et al.VLDB 2022 · 29 citations
- Efficient Constrained Shortest Path Query Answering with Forest Hop LabelingZiyi Liu, Lei Li, Mengxuan Zhang, Wen Hua et al.ICDE 2021 · 37 citations
- Approximate Skyline Index for Constrained Shortest Pathfinding with Theoretical GuaranteeZiyi Liu, Lei Li, Mengxuan Zhang, Wen Hua et al.ICDE 2024 · 8 citations
- QHL: A Fast Algorithm for Exact Constrained Shortest Path Search on Road NetworksLibin Wang, Raymond Chi-Wing WongSIGMOD 2023 · 10 citations
