English

Simpler and faster algorithms for detours in planar digraphs

Discrete Mathematics 2023-01-09 v1 Combinatorics

Abstract

In the directed detour problem one is given a digraph GG and a pair of vertices ss and~tt, and the task is to decide whether there is a directed simple path from ss to tt in GG whose length is larger than distG(s,t)\mathsf{dist}_{G}(s,t). The more general parameterized variant, directed long detour, asks for a simple ss-to-tt path of length at least distG(s,t)+k\mathsf{dist}_{G}(s,t)+k, for a given parameter kk. Surprisingly, it is still unknown whether directed detour is polynomial-time solvable on general digraphs. However, for planar digraphs, Wu and Wang~[Networks, '15] proposed an O(n3)\mathcal{O}(n^3)-time algorithm for directed detour, while Fomin et al.~[STACS 2022] gave a 2O(k)nO(1)2^{\mathcal{O}(k)}\cdot n^{\mathcal{O}(1)}-time fpt algorithm for directed long detour. The algorithm of Wu and Wang relies on a nontrivial analysis of how short detours may look like in a plane embedding, while the algorithm of Fomin et al.~is based on a reduction to the §{\S}-disjoint paths problem on planar digraphs. This latter problem is solvable in polynomial time using the algebraic machinery of Schrijver~[SIAM~J.~Comp.,~'94], but the degree of the obtained polynomial factor is huge. In this paper we propose two simple algorithms: we show how to solve, in planar digraphs, directed detour in time O(n2)\mathcal{O}(n^2) and directed long detour in time 2O(k)n4logn2^{\mathcal{O}(k)}\cdot n^4 \log n. In both cases, the idea is to reduce to the 22-disjoint paths problem in a planar digraph, and to observe that the obtained instances of this problem have a certain topological structure that makes them amenable to a direct greedy strategy.

Keywords

Cite

@article{arxiv.2301.02421,
  title  = {Simpler and faster algorithms for detours in planar digraphs},
  author = {Meike Hatzel and Konrad Majewski and Michał Pilipczuk and Marek Sokołowski},
  journal= {arXiv preprint arXiv:2301.02421},
  year   = {2023}
}
R2 v1 2026-06-28T08:04:46.934Z