English

Shortest Paths with Linear Edge Weights

Data Structures and Algorithms 2026-07-23 v1 Computational Complexity Computational Geometry Discrete Mathematics

Abstract

We study shortest paths in directed graphs whose edge weights are of the form wt(e)=ae,1λ1+ae,2λ2+ae,3λ3++ae,dλd+ae,d+1. \mathsf{wt}(e) = a_{e,1} \lambda_1 + a_{e,2} \lambda_2 + a_{e,3} \lambda_3 + \cdots + a_{e,d} \lambda_d + a_{e,d+1}. Here, each ae,iRa_{e,i}\in\mathbb{R} is a fixed constant for each edge ee, whereas each λiR\lambda_i\in\mathbb{R} is common across the entire graph. So, there could be different shortest paths in the graph for different values of the λi\lambda_i's. This is called the Parametric Shortest Paths problem, and has been studied since the 1980s. For d=1d=1, Carstensen (1983) showed that the number of shortest paths in nn-vertex graphs is at most nO(logn)n^{O(\log n)}. She also proved a matching lower bound of nΩ(logn)n^{\Omega(\log n)}, later refined by Mulmuley & Shah (2001). For d=2d=2, Gajjar & Radhakrishnan (2019) showed an upper bound of nO(log2n)n^{O(\log^2 n)}. Barth, Funke & Proissl (2022) generalized their result to prove an upper bound of nOd(logdn)n^{O_d(\log^d n)} for all positive integers dd. The lower bound did not undergo any improvement over the years. In this paper, we close this long line of research by showing an nO(dlogn)n^{O(d\log n)} upper bound for all positive integers dd, exponentially improving the previous upper bound. We observe that a matching lower bound of nΩ(dlogn)n^{\Omega(d\log n)} can be obtained from earlier works. We also show that our proof can be adapted to work for undirected graphs with positive edge weights. Furthermore, for directed graphs whose edge weights are univariate polynomials of degree at most qq, we prove an upper bound of nO(logn+logq)n^{O(\log{n}+\log{q})}. Finally, building upon work on the Point Location problem by Ezra, Har-Peled, Kaplan & Sharir (2020), we construct a Shortest Path Oracle which takes as input a point xRd\overline{x}\in \mathbb{R}^d, and outputs a shortest path at λ=x\overline{\lambda}=\overline{x} in sublinear time (for a wide regime of dd).

Cite

@article{arxiv.2607.21055,
  title  = {Shortest Paths with Linear Edge Weights},
  author = {Suryajith Chillara and Kshitij Gajjar and Nithish Raja},
  journal= {arXiv preprint arXiv:2607.21055},
  year   = {2026}
}

Comments

21 pages, 6 figures; to be presented at FOCS 2026