English

Detecting Disjoint Shortest Paths in Linear Time and More

Data Structures and Algorithms 2024-05-13 v2 Discrete Mathematics

Abstract

In the kk-Disjoint Shortest Paths (kk-DSP) problem, we are given a weighted graph GG on nn nodes and mm edges with specified source vertices s1,,sks_1, \dots, s_k, and target vertices t1,,tkt_1, \dots, t_k, and are tasked with determining if GG contains vertex-disjoint (si,ti)(s_i,t_i)-shortest paths. For any constant kk, it is known that kk-DSP can be solved in polynomial time over undirected graphs and directed acyclic graphs (DAGs). However, the exact time complexity of kk-DSP remains mysterious, with large gaps between the fastest known algorithms and best conditional lower bounds. In this paper, we obtain faster algorithms for important cases of kk-DSP, and present better conditional lower bounds for kk-DSP and its variants. Previous work solved 2-DSP over weighted undirected graphs in O(n7)O(n^7) time, and weighted DAGs in O(mn)O(mn) time. For the main result of this paper, we present linear time algorithms for solving 2-DSP on weighted undirected graphs and DAGs. Our algorithms are algebraic however, and so only solve the detection rather than search version of 2-DSP. For lower bounds, prior work implied that kk-Clique can be reduced to 2k2k-DSP in DAGs and undirected graphs with O((kn)2)O((kn)^2) nodes. We improve this reduction, by showing how to reduce from kk-Clique to kk-DSP in DAGs and undirected graphs with O((kn)2)O((kn)^2) nodes. A variant of kk-DSP is the kk-Disjoint Paths (kk-DP) problem, where the solution paths no longer need to be shortest paths. Previous work reduced from kk-Clique to pp-DP in DAGs with O(kn)O(kn) nodes, for p=k+k(k1)/2p= k + k(k-1)/2. We improve this by showing a reduction from kk-Clique to pp-DP, for p=k+k2/4p=k + \lfloor k^2/4\rfloor. Under the kk-Clique Hypothesis from fine-grained complexity, our results establish better conditional lower bounds for kk-DSP for all k4k\ge 4, and better conditional lower bounds for pp-DP for all p4031p\le 4031.

Keywords

Cite

@article{arxiv.2404.15916,
  title  = {Detecting Disjoint Shortest Paths in Linear Time and More},
  author = {Shyan Akmal and Virginia Vassilevska Williams and Nicole Wein},
  journal= {arXiv preprint arXiv:2404.15916},
  year   = {2024}
}

Comments

Added reference

R2 v1 2026-06-28T16:05:09.091Z