arXiv · 2611.37835
New Parameterized Upper Bounds for All-Pairs Shortest Path and Lowest Common Ancestor in DAGs
Abstract
We present new algorithms on two well-known all-pairs problems on directed acyclic graphs (DAGs): shortest path and lowest common ancestor. The new algorithms provide specialized bounds that relate to the degree distribution of the vertices on the edges essential for the output. In particular, we show how to solve all-pairs shortest path problem on real-weighted DAGs in $O((E^*)^2/V + Vσ+ V^2)$ time, where $E^*$ is the number of essential edges and $σ$ is the covariance of the in-degree and out-degree exceedance distributions on these edges. In comparison, the previous best bound making use of $E^*$ was $O(VE^*)$, which can be asymptotically larger. The lowest common ancestor problem on DAGs also gets a similar bound, involving the variance of the in-degree exceedances. At their heart, our algorithms leverage the varying branching factors in multiple recurrences on the same function to obtain a bound that involves the covariance/variance. This interesting technique can be utilized in other places where dynamic programming is used.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Ersel Hengirmen, Hakan Yıldız. 2026-11-27. New Parameterized Upper Bounds for All-Pairs Shortest Path and Lowest Common Ancestor in DAGs. https://arxiv.science/abs/2611.37835
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.