English

Faster Detours in Undirected Graphs

Data Structures and Algorithms 2023-07-06 v1 Discrete Mathematics

Abstract

The kk-Detour problem is a basic path-finding problem: given a graph GG on nn vertices, with specified nodes ss and tt, and a positive integer kk, the goal is to determine if GG has an stst-path of length exactly dist(s,t)+k\text{dist}(s, t) + k, where dist(s,t)\text{dist}(s, t) is the length of a shortest path from ss to tt. The kk-Detour problem is NP-hard when kk is part of the input, so researchers have sought efficient parameterized algorithms for this task, running in f(k)poly(n)f(k)\text{poly}(n) time, for ff as slow-growing as possible. We present faster algorithms for kk-Detour in undirected graphs, running in 1.853kpoly(n)1.853^k \text{poly}(n) randomized and 4.082kpoly(n)4.082^k \text{poly}(n) deterministic time. The previous fastest algorithms for this problem took 2.746kpoly(n)2.746^k \text{poly}(n) randomized and 6.523kpoly(n)6.523^k \text{poly}(n) deterministic time [Bez\'akov\'a-Curticapean-Dell-Fomin, ICALP 2017]. Our algorithms use the fact that detecting a path of a given length in an undirected graph is easier if we are promised that the path belongs to what we call a "bipartitioned" subgraph, where the nodes are split into two parts and the path must satisfy constraints on those parts. Previously, this idea was used to obtain the fastest known algorithm for finding paths of length kk in undirected graphs [Bj\"orklund-Husfeldt-Kaski-Koivisto, JCSS 2017]. Our work has direct implications for the kk-Longest Detour problem: in this problem, we are given the same input as in kk-Detour, but are now tasked with determining if GG has an stst-path of length at least dist(s,t)+k.\text{dist}(s, t) + k. Our results for k-Detour imply that we can solve kk-Longest Detour in 3.432kpoly(n)3.432^k \text{poly}(n) randomized and 16.661kpoly(n)16.661^k \text{poly}(n) deterministic time. The previous fastest algorithms for this problem took 7.539kpoly(n)7.539^k \text{poly}(n) randomized and 42.549kpoly(n)42.549^k \text{poly}(n) deterministic time [Fomin et al., STACS 2022].

Keywords

Cite

@article{arxiv.2307.01781,
  title  = {Faster Detours in Undirected Graphs},
  author = {Shyan Akmal and Virginia Vassilevska Williams and Ryan Williams and Zixuan Xu},
  journal= {arXiv preprint arXiv:2307.01781},
  year   = {2023}
}
R2 v1 2026-06-28T11:21:58.849Z