×

Fully dynamic algorithms for maintaining shortest paths trees. (English) Zbl 0949.68169

Summary: We propose fully dynamic algorithms for maintaining the distances and the shortest paths from a single source in either a directed or an undirected graph with positive real edge weights, handling insertions, deletions, and weight updates of edges. The algorithms require linear space and optimal query time. The cost of the update operations depends on the class of the considered graph and on the number of the output updates, i.e., on the number of vertices that, due to an edge modification, either change the distance from the source or change the parent in the shortest paths tree. We first show that, if we deal only with updates on the weights of edges, then the update procedures require \(O(\log n)\) worst case time per output update for several classes of graphs, as in the case of graphs with bounded genus, bounded arboricity, bounded degree, bounded treewidth, and bounded pagenumber. For general graphs with \(n\) vertices and \(m\) edges the algorithms require \(O(\sqrt m\log n)\) worst case time per output update. We also show that, if insertions and deletions of edges are allowed, then similar amortized bounds hold.

MSC:

68W05 Nonnumerical algorithms

Software:

LEDA
PDFBibTeX XMLCite
Full Text: DOI