We consider the problem of maintaining a solution to the All Pairs Shortest Paths Problem in a directed graph G = (V, E) where edges may be dynamically inserted. In case of unit edge costs, we introduce a new data structure which is able to answer queries concerning the length of the shortest path (i.e., a path with minimal number of edges) from one vertex to another in constant time, and to trace out the shortest path from one vertex to another in time linear in the number of edges reported. The total time required to maintain the data structure under a sequence of at most O(n2) insertions of edges is O(n3log n)lin the worst case, where n is the total number of vertices in G. Our data structure can be extended to provide incremental algorithms for maintaining maximal length paths or shortest paths when the edge costs are integers in a fixed range. All the given algorithms improve the best previously known bounds for the same problems and are a factor of log n away from the best possible bounds.
Incremental algorithms for minimal length paths / Ausiello, Giorgio; Italiano, Giuseppe F.; Spaccamela, Alberto Marchetti; Nanni, Umberto. - (1990), pp. 12-21. (Intervento presentato al convegno 1st Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 1990 tenutosi a San Francisco, CA, USA).
Incremental algorithms for minimal length paths
Ausiello, Giorgio;Italiano, Giuseppe F.;Spaccamela, Alberto Marchetti;Nanni, Umberto
1990
Abstract
We consider the problem of maintaining a solution to the All Pairs Shortest Paths Problem in a directed graph G = (V, E) where edges may be dynamically inserted. In case of unit edge costs, we introduce a new data structure which is able to answer queries concerning the length of the shortest path (i.e., a path with minimal number of edges) from one vertex to another in constant time, and to trace out the shortest path from one vertex to another in time linear in the number of edges reported. The total time required to maintain the data structure under a sequence of at most O(n2) insertions of edges is O(n3log n)lin the worst case, where n is the total number of vertices in G. Our data structure can be extended to provide incremental algorithms for maintaining maximal length paths or shortest paths when the edge costs are integers in a fixed range. All the given algorithms improve the best previously known bounds for the same problems and are a factor of log n away from the best possible bounds.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.