Abstract
We present a simple reduction of the problem of nondecreasing paths (with minimal last edge weight) in a directed edge-weighted graph to a reachability problem in a directed unweighted graph. The reduction yields an alternative simple method of solving the single-source nondecreasing paths problem in almost linear time. If the edge weights are integers then our algorithm can be implemented in O((n+m)loglogn) time on the word RAM, where n and m stand for the number of vertices and edges in the input graph, respectively. By using the reduction, we obtain also a simple algorithm for the all-pairs nondecreasing paths problem. It runs in O˜(nωmin{awGω,WG}) time, where awG denotes the average number of distinct weights of edges incident to the same vertex while WG stands for the total number of distinct edge weights in the input graph G, and ω is the exponent of fast matrix multiplication.
Original language | English |
---|---|
Article number | 105992 |
Journal | Information Processing Letters |
Volume | 162 |
Early online date | 2020 Jul 1 |
DOIs | |
Publication status | Published - 2020 Oct |
Subject classification (UKÄ)
- Computer Science
Free keywords
- Graph algorithms
- Nondecreasing paths
- Time complexity