English

Dynamic Detours

Data Structures and Algorithms 2026-05-06 v1

Abstract

Fix a parameter kNk\in \mathbf{N}. We give dynamic data structures that for a fully dynamic undirected graph GG, updated over time by edge insertions and edge deletions, can answer the following queries: - Long (u,v)(u,v)-path: Given u,vV(G)u,v\in V(G), is there a path from uu to vv of length at least kk? - Long (u,v)(u,v)-detour: Given u,vV(G)u,v\in V(G), is there a path from uu to vv of length at least distG(u,v)+k\text{dist}_G(u,v)+k? - Even/odd (u,v)(u,v)-path: Given u,vV(G)u,v\in V(G), is there a path from uu to vv of even/odd length? The amortized time of executing an update or answering a query is 2O(k3)logn+O(log2nlog2logn)2^{O(k^3)} \log n + O(\log^2 n \log^2 \log n) in the first two cases, and O(log2nlog2logn)O(\log^2 n \log^2 \log n) in the last, where nn is the number of vertices of GG. The first result is in sharp contrast with known conditional lower bounds for reporting paths of length at most kk. Specifically, there is no data structure supporting queries about (u,v)(u,v)-paths of length at most two in time no(1)n^{o(1)} unless the Triangle Conjecture fails. Our main technical contribution is a mechanism of "delayed edge insertion" that works locally on the level of biconnected components.

Keywords

Cite

@article{arxiv.2605.03225,
  title  = {Dynamic Detours},
  author = {Daniel Dadush and Michał Pilipczuk and Amadeus Reinald and Marek Sokołowski and Michał Włodarczyk},
  journal= {arXiv preprint arXiv:2605.03225},
  year   = {2026}
}

Comments

17 pages