An Output-Sensitive Algorithm for All-Pairs Shortest Paths in Directed Acyclic Graphs

Andrzej Lingas, Mia Persson, Dzmitry Sledneu

Research output: Chapter in Book/Report/Conference proceedingPaper in conference proceedingpeer-review

Abstract

First, we present a new algorithm for the single-source shortest paths problem (SSSP) in edge-weighted directed graphs, with n vertices, m edges, and both positive and negative real edge weights. Given a positive integer parameter t, in O(tm) time the algorithm finds for each vertex v a path distance from the source to v not exceeding that yielded by the shortest path from the source to v among the so called t+ light paths. A directed path between two vertices is t+ light if it contains at most t more edges than the minimum edge-cardinality directed path between these vertices. For t= O(n), our algorithm yields an O(nm)-time solution to SSSP in directed graphs with real edge weights matching that of Bellman and Ford. Our main contribution is a new, output-sensitive algorithm for the all-pairs shortest paths problem (APSP) in directed acyclic graphs (DAGs) with positive and negative real edge weights. The running time of the algorithm depends on such parameters as the number of leaves in (lexicographically first) shortest-paths trees, and the in-degrees in the input graph. If the trees are sufficiently thin on the average, the algorithm is substantially faster than the best known algorithm. Finally, we discuss an extension of hypothetical improved upper time-bounds for APSP in non-negatively edge-weighted DAGs to include directed graphs with a polynomial number of large directed cycles.

Original languageEnglish
Title of host publicationAlgorithms and Discrete Applied Mathematics - 8th International Conference, CALDAM 2022, Proceedings
EditorsNiranjan Balachandran, R. Inkulu
PublisherSpringer Science and Business Media B.V.
Pages140-151
Number of pages12
ISBN (Print)9783030950170
DOIs
Publication statusPublished - 2022
Event8th International Conference on Algorithms and Discrete Applied Mathematics, CALDAM 2022 - Puducherry, India
Duration: 2022 Feb 102022 Feb 12

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13179 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference8th International Conference on Algorithms and Discrete Applied Mathematics, CALDAM 2022
Country/TerritoryIndia
CityPuducherry
Period2022/02/102022/02/12

Subject classification (UKÄ)

  • Computer Science

Fingerprint

Dive into the research topics of 'An Output-Sensitive Algorithm for All-Pairs Shortest Paths in Directed Acyclic Graphs'. Together they form a unique fingerprint.

Cite this