Towards Dynamic Top-k Simple Shortest Paths
Gianlorenzo D'Angelo, Andrea D'Ascenzo, Mattia D'Emidio, Gabriele Di Stefano, Marta Innamorati
Abstract
Computing the top-k 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 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×), yielding a practical recipe for the configuration to deploy.
Create a lesson
Related papers
Claw-Free and Line Graph Edge Deletion on Block Graphs
Rajat Adak
Bounded-Density Vertex Deletion Beyond Vertex Cover
Adrian Miclăuş, Alexandru Popa, Andrei Popa
Hypothesis Selection via Weighted Medians
Liang-Yu Zou
Simple, Faster (min, +) Matrix Multiplication and APSP
Barna Saha, Christopher Ye
Subexponential Parameterized Approximation for Group-Fair Euclidean k-Center
Rudranarayan Kar, Diya Roy, Abhishek Sahu
An Analytic 0.48-Approximation for Non-Monotone k-Submodular Maximization under a Matroid Constraint
Zizong Wang, Yibo Wang