https://hal.inria.fr/hal-03864725v2Brunelli, FilippoFilippoBrunelliUPCité - Université Paris CitéInria de Paris - Inria - Institut National de Recherche en Informatique et en AutomatiqueIRIF (UMR_8243) - Institut de Recherche en Informatique Fondamentale - CNRS - Centre National de la Recherche Scientifique - UPCité - Université Paris CitéViennot, LaurentLaurentViennotUPCité - Université Paris CitéInria de Paris - Inria - Institut National de Recherche en Informatique et en AutomatiqueIRIF (UMR_8243) - Institut de Recherche en Informatique Fondamentale - CNRS - Centre National de la Recherche Scientifique - UPCité - Université Paris CitéMinimum-Cost Temporal Walks under Waiting-Time Constraints in Linear TimeHAL CCSD2023Temporal graphTemporal pathTemporal walkShortest temporal pathOptimal temporal walkWaiting-time constraintsRestless temporal walkLinear time[INFO.INFO-DS] Computer Science [cs]/Data Structures and Algorithms [cs.DS]Viennot, Laurent - Routage dans les grands réseaux de transports multi-modal - - MultiMod2017 - ANR-17-CE22-0016 - AAPG2017 - VALID - - Problèmes algorithmiques sur les graphes temporels - - TEMPOGRAL2022 - ANR-22-CE48-0001 - AAPG2022 - VALID - 2023-01-20 08:55:322023-03-24 14:53:302023-01-30 14:46:23enPreprints, Working Papers, ...https://hal.inria.fr/hal-03864725v2/documenthttps://hal.inria.fr/hal-03864725v1application/pdf2In a temporal graph, each edge is available at specific points in time. Such an availability point is often represented by a "temporal edge" that can be traversed from its tail only at a specific departure time, for arriving in its head after a specific travel time. In such a graph, the connectivity from one node to another is naturally captured by the existence of a temporal path where temporal edges can be traversed one after the other. When imposing constraints on how much time it is possible to wait at a node in-between two temporal edges, it then becomes interesting to consider temporal walks where it is allowed to visit several times the same node, possibly at different times. We study the complexity of computing minimum-cost temporal walks from a single source under waiting-time constraints in a temporal graph, and ask under which conditions this problem can be solved in linear time. Our main result is a linear time algorithm when the input temporal graph is given by its (classical) space-time representation. We use an algebraic framework for manipulating abstract costs, enabling the optimization of a large variety of criteria or even combinations of these. It allows to improve previous results for several criteria such as number of edges or overall waiting time even without waiting constraints. It saves a logarithmic factor for all criteria under waiting constraints. Interestingly, we show that a logarithmic factor in the time complexity appears to be necessary with a more basic input consisting of a single ordered list of temporal edges (sorted either by arrival times or departure times). We indeed show equivalence between the space-time representation and a representation with two ordered lists.