Title: Dynamic Shortest Paths
1Dynamic Shortest Paths
- Camil Demetrescu
- University of Rome La Sapienza
- Giuseppe F. Italiano
- University of Rome Tor Vergata
2Dynamic (All Pairs) Shortest Paths
- Given a weighted directed graph
G(V,E,w),perform any intermixed sequence of the
following operations
3Previous work on dynamic APSP
papers
65-69
70-74
75-79
80-84
85-89
90-94
95-99
00-
4Previous work on fully dynamic APSP
5A new approach
6A new fully dynamic algorithm
7?(n2) changes per update
1
-1
1
8Main ingredients of previous results
(results for general graphs with integer weights
in 0,C)
(results for general graphs with S real weights
per edge)
(all fully dynamic algorithms on general graphs)
9Uniform paths
UNIFORM
NOT UNIFORM
10Properties of Uniform paths
Theorem I
Shortest paths ? Uniform paths
11Properties of Uniform paths
12Properties of Uniform paths
(Ties can be broken by adding a tiny fraction to
the weight of each edge)
13Properties of Uniform paths
Theorem III
There are at most n-1 uniform paths connecting x,y
This is a consequence of vertex-disjointess
14Dynamic graphs
15Uniform paths in dynamic graphs
16Uniform paths in dynamic graphs
17Uniform paths in dynamic graphs
18Uniform paths in dynamic graphs
19Uniform paths in dynamic graphs
Theorem V
For any pair (x,y), the amortized number of
uniform paths pxy appearing with a new weight
per update in a fully dynamic sequence is O(log
n)
20Sketch of proof of Theorem VI (1/3)
21Sketch of proof of Theorem VI (2/3)
22Sketch of proof of Theorem VI (3/3)
Map each edge (?1, ?2) of H into a point p(?1,
?2) in the square k ? k
23Shortest paths and edge weight updates
How does a shortest path change after an update?
24Shortest paths and edge weight updates
25A new approach to dynamic APSP
NO
26How to pay only once?
27Looking at the substructure
but if we removed the edge it would get a
shortest path again!
28Zombies
A path is a zombie if it used to be a shortest
path, and its edges have not been updated since
then
29Potentially uniform paths
Relaxed notion of uniformity Subpaths do not
need to be shortest at the same time
30Properties of potentially uniform paths
Potentiallyuniform paths
31Properties of potentially uniform paths
Theorem II
O(zn2) zombies at any time
O(zn2) new potentially uniform paths per update
32How many zombies can we have?
33Reducing of zombies Smoothing
At each update we pick an edge with the maximum
number of zombies passing through it, and we
remove and reinsert it
zombies
34A new approach to dynamic APSP (II)
There exists and update algorithm that spends
O(log n) time per potentially uniform path
35Handling the hard case
36The update algorithm
37Conclusions