arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.20062cs.DS
收藏

面向动态Top-$k$简单最短路径

Towards Dynamic Top-$k$ Simple Shortest Paths

Gran Sasso Science Institute(格兰萨索科学研究所);Fondazione Gran Sasso Tech(格兰萨索技术基金会);Centre of Excellence EX-EMERGE(EX-EMERGE卓越中心);University of L’Aquila(拉奎拉大学)

Gianlorenzo D'Angelo, Andrea D'Ascenzo, Mattia D'Emidio, Gabriele Di Stefano, Marta Innamorati

AI总结:

该研究针对动态Top-$k$简单最短路径问题,提出基于伪树的UPD动态算法,可复用已有路径更新解决方案,实验显示其多数配置下速度远超从头计算,加速比最高超60倍。

摘要:

计算图中两个顶点之间的Top-$k$简单最短路径(即求解P-KSSP问题)是图分析中的基础原语。然而在现代场景中,查询很少是一次性的:参数会随应用调整信息需求而变化,每次请求都从头重新计算解决方案很快会成为瓶颈。我们在动态场景中研究P-KSSP,重点关注参数$k$的变化:给定一对顶点的Top-$k$解决方案和新值$k'$,目标是通过复用之前计算的路径来计算Top-$k'$解决方案。我们的方法基于伪树(pseudo-tree),这是一种对一组简单$s$-$t$路径的紧凑表示:我们证明从任意非结构化解决方案构建伪树相当于构建前缀树(trie),并给出两种构建方式,其运行时间与路径集合的大小呈线性关系。在此基础上,我们设计了UPD算法,这是一种在$k$变化时更新解决方案的动态算法;我们证明了其正确性,分析了其复杂度,并表明它是一种通用的、与求解器无关的方案,仅从路径开始,其参数化于生成候选路径的例程,可与已知的预处理技术以及我们形式化的在线剪枝规则相结合。虽然最坏情况下的更新在渐近上与从头重新计算相当,但广泛的实验评估表明,UPD的一种变体在绝大多数测试配置中是最快的方法,通常优势显著(与重新计算相比的加速比随$k$和$k'$增长,超过60倍),为部署的配置提供了实用方案。

英文摘要:

Computing the top-$k$ \textit{simple} shortest paths between two vertices of a graph, i.e., solving the P-KSSP problem, is a fundamental primitive in graph analytics. In modern scenarios, however, queries are rarely one-shot: parameters change as applications adapt their information needs, and recomputing a solution from scratch at every request quickly becomes a bottleneck. We study P-KSSP in a dynamic setting, focusing on changes of the parameter $k$: given a top-$k$ solution for a pair of vertices and a new value $k'$, the goal is to compute a top-$k'$ solution reusing the previously computed paths. Our approach rests on the \textit{pseudo-tree}, a compact representation of a collection of simple $s$--$t$ paths: we show that building it from an arbitrary, unstructured solution amounts to trie construction, and give two constructions running in time linear in the size of the collection. On top of it, we design UPD, a dynamic algorithm that updates a solution upon a change of $k$; we prove its correctness, analyze its complexity, and show that it is a general, solver-agnostic scheme, which starts from the paths alone, is parametric in the routine that generates candidate paths and combinable with known preprocessing techniques, as well as with an online pruning rule that we formalize. While a worst-case update is asymptotically comparable to recomputing from scratch, an extensive experimental evaluation shows that a variant of UPD is the fastest method in the large majority of tested configurations, often by a wide margin (with speedups over recomputation that grow with $k$ and $k'$ and exceed $60\times$), yielding a practical recipe for the configuration to deploy.

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

↑