cs.DSMar 12, 2026

Adapting Dijkstra for Buffers and Unlimited Transfers

Authors: Denys Katkalo, Andrii Rohovyi, Toby Walsh

Organizations: ∗Igor Sikorsky Kyiv Polytechnic Institute, Kyiv, Ukraine · †University of New South Wales, Sydney, Australia

Abstract

In recent years, RAPTOR based algorithms have been considered the state-of-the-art for path-finding with unlimited transfers without preprocessing. However, this status largely stems from the evolution of routing research, where Dijkstra-based solutions were superseded by timetable-based algorithms without a systematic comparison. In this work, we revisit classical Dijkstra-based approaches for public transit routing with unlimited transfers and demonstrate that Time-Dependent Dijkstra (TD-Dijkstra) outperforms MR. However, efficient TD-Dijkstra implementations rely on filtering dominated connections during preprocessing, which assumes passengers can always switch to a faster connection. We show that this filtering is unsound when stops have buffer times, as it cannot distinguish between seated passengers who may continue without waiting and transferring passengers who must respect the buffer. To address this limitation, we introduce Transfer Aware Dijkstra (TAD), a modification that scans entire trip sequences rather than individual edges, correctly handling buffer times while maintaining performance advantages over MR. Our experiments on the London and Switzerland networks show that we can achieve more than a twofold speedup over MR while producing optimal results on both networks, with and without buffer times.

Figures & tables

Explore similar work

CardsList
  1. Early Pruning for Public Transport Routing

    Mar 13, 2026Andrii Rohovyi, Abdallah Abuaisha, Toby Walsh

  2. AlphaTransit: Learning to Design City-scale Transit Routes

    May 27, 2026Bibek Poudel, Sai Swaminathan, Weizi LiIntelligent Transportation SystemsMonte Carlo Tree Search

  3. A Swarm Approach to Public Transit Using On-demand Routing in a Slime-Mold-Inspired Framework

    Jun 4, 2026Lindsay Burke, Maxfield Comstock, Jason Graham +3Intelligent Transportation SystemsVehicle Routing