arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.08685cs.DS
收藏

时间图中的啤酒路径问题

Beer Path Problems in Temporal Graphs

Gran Sasso Science Institute(格兰萨索科学研究所);LUISS University(鲁伊西斯大学);National Technical University of Athens(雅典国立技术大学);Archimedes, Athena Research Center(阿基米德雅典研究中心)

Andrea D'Ascenzo, Giuseppe F. Italiano, Sotiris Kanellopoulos, Anna Mpanti, Aris Pagourtzis, Christos Pergaminelis

AI总结:

本文研究时间图中的啤酒路径问题,提出计算最早到达、最晚出发、最快和最短路径的算法,并设计预处理技术以应对动态变化的场景。

摘要:

在图结构中计算路径是一项基础操作,广泛应用于交通网络和数据分析。啤酒路径问题涉及在到达最终目的地前访问兴趣点,如加油站或便利点,在静态图中已有研究。然而,现有方法未考虑时间信息,这在现实场景中至关重要。本文引入时间图中的啤酒路径概念,其中边是时间依赖的,某些顶点(啤酒顶点)仅在特定时间实例活跃。我们正式定义计算最早到达、最晚出发、最快和最短时间啤酒路径的问题,并提出针对边流和邻接表表示的高效算法。各算法的时间复杂度与相应的时间路径查找算法一致,从而保持效率。此外,我们提出预处理技术,以在动态条件下高效回答查询,例如新店铺的开放或关闭。我们通过适当预计算选定路径或通过将时间图转换为等效静态图来实现此目标。

英文摘要:

Computing paths in graph structures is a fundamental operation in a wide range of applications, from transportation networks to data analysis. The beer path problem, which captures the option of visiting points of interest, such as gas stations or convenience stops, prior to reaching the final destination, has been recently introduced and extensively studied in static graphs. However, existing approaches do not account for temporal information, which is often crucial in real-world scenarios. For instance, transit services may follow fixed schedules, and shops may only be accessible during certain hours. In this work, we introduce the notion of beer paths in temporal graphs, where edges are time-dependent and certain vertices (beer vertices) are active only at specific time instances. We formally define the problems of computing earliest-arrival, latest-departure, fastest, and shortest temporal beer paths and propose efficient algorithms for these problems under both edge stream and adjacency list representations. The time complexity of each of our algorithms is aligned with that of corresponding temporal pathfinding algorithms, thus preserving efficiency. Additionally, we present preprocessing techniques that enable efficient query answering under dynamic conditions, for example new openings or closings of shops. We achieve this through appropriate precomputation of selected paths or by transforming a temporal graph into an equivalent static graph.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑