Faster Detours in Undirected Graphs

Abstract

The k-Detour problem is a basic path-finding problem: given a graph G on n vertices, with specified nodes s and t, and a positive integer k, the goal is to determine if G has an st-path of length exactly dist(s, t) + k, where dist(s, t) is the length of a shortest path from s to t. The k-Detour problem is NP-hard when k is part of the input, so researchers have sought efficient parameterized algorithms for this task, running in f(k)poly(n) time, for f as slow-growing as possible. We present faster algorithms for k-Detour in undirected graphs, running in 1.853k poly(n) randomized and 4.082k poly(n) deterministic time. The previous fastest algorithms for this problem took 2.746k poly(n) randomized and 6.523k 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 k in undirected graphs [Bj\"orklund-Husfeldt-Kaski-Koivisto, JCSS 2017]. Our work has direct implications for the k-Longest Detour problem: in this problem, we are given the same input as in k-Detour, but are now tasked with determining if G has an st-path of length at least dist(s, t) + k. Our results for k-Detour imply that we can solve k-Longest Detour in 3.432k poly(n) randomized and 16.661k poly(n) deterministic time. The previous fastest algorithms for this problem took 7.539k poly(n) randomized and 42.549k poly(n) deterministic time [Fomin et al., STACS 2022].

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…