FLASH-TB: Integrating Arc-Flags and Trip-Based Public Transit Routing

Published Online:https://doi.org/10.1287/trsc.2023.0481

We present FLASH-TB, a journey-planning algorithm for public transit networks that combines trip-based public transit routing (TB) with the arc-flags speedup technique. The basic idea is simple: The network is partitioned into a configurable number of cells. For each cell and each possible transfer between two vehicles, the algorithm precomputes a flag that indicates whether the transfer is required to reach the cell. During a query, only flagged transfers are explored. Our algorithm improves on previous attempts to apply arc-flags to public transit networks, which saw limited success due to conflicting rules for pruning the search space. We show that these rules can be reconciled while still producing correct results. Because the number of cells is configurable, FLASH-TB offers a tradeoff between query time and memory consumption. It is significantly more space efficient than existing techniques with a comparable preprocessing time, which store generalized shortest-path trees: To match their query performance, it requires up to two orders of magnitude less memory. The fastest configuration of FLASH-TB achieves a speedup of more than two orders of magnitude over TB, offering submillisecond query times even on large countrywide networks.

Funding: This work was supported by the Deutsche Forschungsgemeinschaft [Grants SCHU 2567/3-1 and WA 654/23-2].

Supplemental Material: The online appendix is available at https://doi.org/10.1287/trsc.2023.0481.

INFORMS site uses cookies to store information on your computer. Some are essential to make our site work; Others help us improve the user experience. By using this site, you consent to the placement of these cookies. Please read our Privacy Statement to learn more.