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 time, where 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 was , 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.
Create a lesson
Metadata
- Comments
- 22 pages, 1 figure, 2 algorithms
Related papers
Fast Computation of Lowest Common Ancestor in Version Control Commit Graph
Shared title terminologycs.DSStepan Polokhin, Ruslan Savchenko, Yuriy Chernyshov
A deterministic O(n\log n) algorithm for fixed-link shortest paths in concave Monge graphs
Shared title terminologycs.DSShucheng Chi, Jiayi Lian
Directed k Disjoint Shortest Paths Is Polynomial for Every Fixed k
Shared title terminologycs.DSSaeed Amiri
Directed disjoint shortest paths via guillotine cuts
Shared title terminologycs.DSWilliam Lochet, M. S. Ramanujan, Saket Saurabh
Fixed-Depth Bootstrapping for Directed Shortest Paths
Shared title terminologycs.DSJerry Yao-Chieh Hu, Zhao Song
Linear Single-Source Shortest Path, Almost
Shared title terminologycs.DSIman Gholami, MohammadTaghi Hajiaghayi