## Abstract

Two algorithms for shortest path problems are presented. One is to find the all-pairs shortest paths (APSP) that runs in O(n^{2}Iogn + nm) time for n-vertex m-edge directed graphs consisting of strongly connected components with O(Iogn) edges among them. The other is to find the single-source shortest paths (SSSP) that runs in O(n) time for graphs reducible to the trivial graph by some simple transformations. These algorithms are optimally fast for some special classes of graphs in the sense that the former achieves O(n^{2}) which is a lower bound of the time necessary to find APSP, and that the latter achieves O(n) which is a lower bound of the time necessary to find SSSP. The latter can be used to find APSP, also achieving the running time O(n^{2}).

Original language | English |
---|---|

Pages (from-to) | 297-317 |

Number of pages | 21 |

Journal | International Journal of Computer Mathematics |

Volume | 70 |

Issue number | 2 |

Publication status | Published - 1998 |

## Keywords

- All-pairs shortest paths
- Dijkstra's algorithm
- Johnson's algorithm
- Shortest path problem
- Single-source shortest paths

## ASJC Scopus subject areas

- Applied Mathematics