surender baswana
play

Surender Baswana Indian Institute of Technology Kanpur, India - PowerPoint PPT Presentation

Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest paths in presence of node or link failures Surender Baswana Indian Institute of Technology Kanpur,


  1. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest paths in presence of node or link failures Surender Baswana Indian Institute of Technology Kanpur, India

  2. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest Paths Problem Problem Domain Graph G = ( V , E ) , with n = | V | , m = | E | , ω : E → R . P ( u , v ) : shortest path from u to v . δ ( u , v ) : distance from u to v .

  3. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest Paths Problem Single Source Shortest Paths (SSSP) Positive edge weights: Dijkstra’s algorithm : O ( m + n log n ) time, O ( n ) space. Negative edge weights (but no negative cycle): Bellman Ford algorithm : O ( mn ) time, O ( n ) space. All-Pairs Shortest Paths (APSP) Floyd and Warshal Algorithm : O ( n 3 ) Johnson’s algorithm : O ( mn + n 2 log n ) Pettie [2004] : O ( mn + n 2 log log n )

  4. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest paths in planar graphs Planar graph A graph is said to be planar if its vertices can be embedded on a sphere so that no two edges cross each others. Research on SSSP for planar graphs For possibly negative weights O ( n 1 . 5 ) Late 70’s : ... O ( n log n ) Klein[2006] : Key ingredients • Topology. • Small size separator.

  5. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Shortest paths in presence of vertex failure Algorithmic Objective Construct a data-structure that supports following query. report P ( x , y , z ) : the shortest path from x to y in G \{ z } . report δ ( x , y , z ) : the length of the path P ( x , y , z ) .

  6. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Motivation and applications A model for dynamic shortest paths At any time a subset S ⊂ V of at most t vertices may be 1 down. The set S may keep changing but | S | ≤ t holds always. 2 Other applications k -shortest paths problem most vital node or link

  7. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Single source shortest paths in presence of vertex failure Trivial upper bound preprocessing time: O ( mn ) space: O ( n 2 ) Lower bounds for directed graphs preprocessing time: Ω( m √ n ) space: Ω( n 2 )

  8. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for a source-destination pair

  9. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for a ( r , t ) pair Problem definition Given an undirected graph, a source r and destination t , compute P ( r , t , e ) efficiently for all e ∈ P ( r , t ) . Solution O ( m ) time and O ( n ) space solution Gupta and Malik [1989], Hershberger and Suri [2001]

  10. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Notations used T r : shortest path tree rooted at r . T r ( x ) : subtree of T r rooted at x .

  11. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for a ( r , t ) pair Key Ideas Revisiting the shortest paths problem 1 Investigating the properties of P ( r , t , e ) 2 Deriving key observations 3 Using elementary data structure 4

  12. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Handling an edge failure Revisiting the shortest paths problem Recall Dijkstra’s algorithm ... optimal subpath property 1 use of Heap data structure 2

  13. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Investigating properties of P ( r , t , e ) r U e e . . . . t T r ( y ) How does the path P ( r , t , e ) look like ?

  14. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Observation 1 r U e e u v . . . . t T r ( y ) Once P ( r , t , e ) leaves U e , it never enters U e again

  15. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Observation 2 r U e e u v . . . . t T r ( y ) P ( v , t , e ) is the same as P ( v , t )

  16. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for ( r , t ) pair Key idea For an edge e = ( x , y ) δ ( r , t , e ) = ( u , v ) ∈ E , u ∈ U e , v ∈ T r ( y ) δ ( r , u ) + ω ( u , v ) + δ ( t , v ) min

  17. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for ( r , t ) pair Key idea For an edge e = ( x , y ) δ ( r , t , e ) = ( u , v ) ∈ E , u ∈ U e , v ∈ T r ( y ) δ ( r , u ) + ω ( u , v ) + δ ( t , v ) min solution lies in classical SSSP itself !!

  18. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Replacement paths problem for ( r , t ) pair An O ( m ) time and O ( n ) space solution build shortest path tree T r rooted at source r build shortest path tree T t rooted at destination t use Heap on crossing edges with suitable weights .

  19. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve All-pairs replacement paths problem

  20. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Problem Definition Compute a compact data structure for reporting P ( r , t , x ) and/or δ ( r , t , x ) for all r , t , x ∈ V in optimal time. Solution Demetrescu et al. [SICOMP 2008] O ( n 2 ) storage-space and O ( mn 2 polylog n ) processing time. ˜

  21. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Problem Definition Compute a compact data structure for reporting P ( r , t , x ) and/or δ ( r , t , x ) for all r , t , x ∈ V in optimal time. Solution Demetrescu et al. [SICOMP 2008] O ( n 2 ) storage-space and O ( mn 2 polylog n ) processing time. ˜ Bernstein and Karger [STOC 2009] Improved processing time to O ( mn polylog n ) .

  22. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Overcoming challenges through Collaboration A toy problem : Given an array A storing n numbers, design a data structure to to answer query of the following kind report_min( A , i , j ): smallest element from { A [ i ] , A [ i + 1 ] , ..., A [ j ] } . Trivial solution Build an n × n table M where M [ i , j ] stores the smallest element from { A [ i ] , A [ i + 1 ] , ..., A [ j ] } .

  23. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Solving the toy problem through collaboration 8 4 2 A i

  24. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Solving the toy problem through collaboration A j i

  25. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve O ( n log n ) space and O ( 1 ) query time solution 2 k A j i 2 k j − 2 i

  26. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Solving all-pairs replacement paths problem r 0 1 2 3 2 k i x

  27. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Solving all-pairs replacement paths problem r u 2 k x t

  28. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Solving all-pairs replacement paths problem For each u ∈ V and i ∈ [ 0 , log 2 n ] , do Compute and store δ ( u , v , x ) for all x lying at level 2 i in G . Compute and store δ ( u , v , x ) for all x lying at level 2 i in G r . (guess why ... ) Compute and store δ ( u , v , P ) for all paths P starting from a vertex at level 2 i − 1 to level 2 i . (guess why ...)

  29. Shortest paths problem in static setting Replacement paths problem for a source destination pair All-pairs shortest paths avoiding ve Recent results on replacement paths Efficient solution for Approximate replacement paths Efficient solution for Planar graphs

Recommend


More recommend