near optimal algorithms for shortest paths in weighted
play

Near-optimal Algorithms for Shortest Paths in Weighted Unit-Disk - PowerPoint PPT Presentation

Near-optimal Algorithms for Shortest Paths in Weighted Unit-Disk Graphs Haitao Wang 1 Jie Xue 2 1 Utah State University 2 University of Minnesota, Twin Cities t u d e n S t n P o r e i t s a e n t Haitao Wang and Jie Xue 1 / 20


  1. Near-optimal Algorithms for Shortest Paths in Weighted Unit-Disk Graphs Haitao Wang 1 Jie Xue 2 1 Utah State University 2 University of Minnesota, Twin Cities t u d e n S t n P o r e i t s a e n t Haitao Wang and Jie Xue 1 / 20

  2. Background Geometric intersection graphs The intersection graph of a set of geometric objects Haitao Wang and Jie Xue 2 / 20

  3. Background Unit-disk graphs (UDGs) The intersection graph of unit-disks or disks of identical radii Haitao Wang and Jie Xue 3 / 20

  4. Background Single-source shortest path (SSSP) problem Given a positively weighted graph G = ( V , E , w ) and a source s ∈ V , compute the shortest paths from s to all the other vertices of G . Haitao Wang and Jie Xue 4 / 20

  5. Background Single-source shortest path (SSSP) problem Given a positively weighted graph G = ( V , E , w ) and a source s ∈ V , compute the shortest paths from s to all the other vertices of G . SSSP on UDGs? Haitao Wang and Jie Xue 4 / 20

  6. Background Single-source shortest path (SSSP) problem Given a positively weighted graph G = ( V , E , w ) and a source s ∈ V , compute the shortest paths from s to all the other vertices of G . SSSP on UDGs? Two ways to weight a UDG 1. Edges are weighted identically (Unweighted UDGs) 2. Edges are weighted using Euclidean distances between the disk centers (Weighted UDGs) Haitao Wang and Jie Xue 4 / 20

  7. Background Classical SSSP algorithms Dijkstra’s algorithm Johnson’s algorithm Bellman-Ford algorithm ... Haitao Wang and Jie Xue 5 / 20

  8. Background Classical SSSP algorithms Dijkstra’s algorithm Johnson’s algorithm Bellman-Ford algorithm ... These algorithms requires Ω( | E | ) time for solving SSSP. It is a lower bound for general graphs, due to the Ω( | E | ) input size. Haitao Wang and Jie Xue 5 / 20

  9. Background Classical SSSP algorithms Dijkstra’s algorithm Johnson’s algorithm Bellman-Ford algorithm ... These algorithms requires Ω( | E | ) time for solving SSSP. It is a lower bound for general graphs, due to the Ω( | E | ) input size. The input size for an n -vertex UDG is only O ( n ). However, | E | = Ω( n 2 ) in an n -vertex UDG in worst case. Haitao Wang and Jie Xue 5 / 20

  10. Background Classical SSSP algorithms Dijkstra’s algorithm Johnson’s algorithm Bellman-Ford algorithm ... These algorithms requires Ω( | E | ) time for solving SSSP. It is a lower bound for general graphs, due to the Ω( | E | ) input size. The input size for an n -vertex UDG is only O ( n ). However, | E | = Ω( n 2 ) in an n -vertex UDG in worst case. Maybe we can break the Ω( | E | ) lower bound for UDGs? Haitao Wang and Jie Xue 5 / 20

  11. Background SSSP on unweighted UDGs O ( n log n ) time and O ( n ) space by [Cabello and Jejˇ ciˇ c 2015] O ( n ) time and O ( n ) space after presorting by [Chan and Skrepetos 2016] Haitao Wang and Jie Xue 6 / 20

  12. Background SSSP on unweighted UDGs O ( n log n ) time and O ( n ) space by [Cabello and Jejˇ ciˇ c 2015] O ( n ) time and O ( n ) space after presorting by [Chan and Skrepetos 2016] SSSP on weighted UDGs O ( n 1+ δ ) time and O ( n 1+ δ ) space for any δ > 0 by [Cabello and Jejˇ ciˇ c 2015] O ( n log 12+ o (1) n ) expected time and O ( n log 3 n ) space (randomized) by [Kaplan et al. 2017] O ( n log n /ε 2 ) time and O ( n /ε 2 ) space for (1 + ε )-approximation by [Chan and Skrepetos 2016] Haitao Wang and Jie Xue 6 / 20

  13. Our results The subject of this work: SSSP on weighted UDGs Haitao Wang and Jie Xue 7 / 20

  14. Our results The subject of this work: SSSP on weighted UDGs Theorem (Exact algorithm) There is an SSSP algorithm on weighted UDGs using O ( n log 2 n ) time and O ( n ) space, where n is the input size. Haitao Wang and Jie Xue 7 / 20

  15. Our results The subject of this work: SSSP on weighted UDGs Theorem (Exact algorithm) There is an SSSP algorithm on weighted UDGs using O ( n log 2 n ) time and O ( n ) space, where n is the input size. Theorem (Approximation algorithm) There is a (1 + ε ) -approximate SSSP algorithm on weighted UDGs using O ( n log n + n log 2 (1 /ε )) time and O ( n ) space, where n is the input size. Haitao Wang and Jie Xue 7 / 20

  16. Our results Our results are achieved by relating SSSP on weighted UDGs to the offline insertion-only weighted nearest-neighbor (OIWNN) problem. Haitao Wang and Jie Xue 8 / 20

  17. Our results Our results are achieved by relating SSSP on weighted UDGs to the offline insertion-only weighted nearest-neighbor (OIWNN) problem. The OIWNN problem in R 2 [Input] a sequence of n operations each of which is one of Insert( s ) - insert a new weighted site s ∈ R 2 Query( q ) - query the WNN of q ∈ R 2 among the current sites Haitao Wang and Jie Xue 8 / 20

  18. Our results Our results are achieved by relating SSSP on weighted UDGs to the offline insertion-only weighted nearest-neighbor (OIWNN) problem. The OIWNN problem in R 2 [Input] a sequence of n operations each of which is one of Insert( s ) - insert a new weighted site s ∈ R 2 Query( q ) - query the WNN of q ∈ R 2 among the current sites [Goal] answer all queries Haitao Wang and Jie Xue 8 / 20

  19. Our results Our results are achieved by relating SSSP on weighted UDGs to the offline insertion-only weighted nearest-neighbor (OIWNN) problem. The OIWNN problem in R 2 [Input] a sequence of n operations each of which is one of Insert( s ) - insert a new weighted site s ∈ R 2 Query( q ) - query the WNN of q ∈ R 2 among the current sites [Goal] answer all queries We reduce SSSP on weighted UDGs to the OIWNN problem in R 2 . Haitao Wang and Jie Xue 8 / 20

  20. Our results Theorem (Exact) If the OIWNN problem with n operations can be solved in f ( n ) time, then SSSP on weighted UDGs can be solved in O ( n log n + f ( n )) time. Haitao Wang and Jie Xue 9 / 20

  21. Our results Theorem (Exact) If the OIWNN problem with n operations can be solved in f ( n ) time, then SSSP on weighted UDGs can be solved in O ( n log n + f ( n )) time. We show that f ( n ) = O ( n log 2 n ) (D&C + WVD). This is the bottleneck of our algorithm. Haitao Wang and Jie Xue 9 / 20

  22. Our results Theorem (Exact) If the OIWNN problem with n operations can be solved in f ( n ) time, then SSSP on weighted UDGs can be solved in O ( n log n + f ( n )) time. We show that f ( n ) = O ( n log 2 n ) (D&C + WVD). This is the bottleneck of our algorithm. Theorem (Approximation) If the OIWNN problem with n operations in which at most k operations are insertions can be solved in f ( n , k ) time, then (1 + ε ) -approximate SSSP on weighted UDGs can be solved in O ( n log n + f ( n , 1 /ε )) time. Haitao Wang and Jie Xue 9 / 20

  23. Our results Theorem (Exact) If the OIWNN problem with n operations can be solved in f ( n ) time, then SSSP on weighted UDGs can be solved in O ( n log n + f ( n )) time. We show that f ( n ) = O ( n log 2 n ) (D&C + WVD). This is the bottleneck of our algorithm. Theorem (Approximation) If the OIWNN problem with n operations in which at most k operations are insertions can be solved in f ( n , k ) time, then (1 + ε ) -approximate SSSP on weighted UDGs can be solved in O ( n log n + f ( n , 1 /ε )) time. We show that f ( n , k ) = O ( n log 2 k ) (D&C + WVD). Haitao Wang and Jie Xue 9 / 20

  24. The exact SSSP algorithm For convenience, assume UDG is defined by disks of radii 1 2 . Haitao Wang and Jie Xue 10 / 20

  25. The exact SSSP algorithm For convenience, assume UDG is defined by disks of radii 1 2 . Given n disks of radii 1 2 , let S be the set of the disk centers. Haitao Wang and Jie Xue 10 / 20

  26. The exact SSSP algorithm For convenience, assume UDG is defined by disks of radii 1 2 . Given n disks of radii 1 2 , let S be the set of the disk centers. Two points a , b ∈ S are connected by an edge iff � a − b � ≤ 1. (The edge is weighted by � a − b � .) Haitao Wang and Jie Xue 10 / 20

  27. The exact SSSP algorithm For convenience, assume UDG is defined by disks of radii 1 2 . Given n disks of radii 1 2 , let S be the set of the disk centers. Two points a , b ∈ S are connected by an edge iff � a − b � ≤ 1. (The edge is weighted by � a − b � .) Let s ∈ S be a given source. Our goal is to compute a table dist[ · ], where dist[ a ] stores the length of the shortest path from s to a , for all a ∈ S . Haitao Wang and Jie Xue 10 / 20

  28. The exact SSSP algorithm Dijkstra’s algorithm [Input] G = ( V , E , w ) and s ∈ V Haitao Wang and Jie Xue 11 / 20

  29. The exact SSSP algorithm Dijkstra’s algorithm [Input] G = ( V , E , w ) and s ∈ V 1 dist[ s ] ← 0, dist[ a ] ← ∞ for all a ∈ V \{ s } , A ← V 2 Pick c ∈ A with the smallest dist[ c ] 3 For all neighbors b ∈ A of c , dist[ b ] ← min { dist[ b ] , dist[ c ] + w ( b , c ) } 4 A ← A \{ c } , go to Step 2 if A � = ∅ Haitao Wang and Jie Xue 11 / 20

  30. The exact SSSP algorithm Dijkstra’s algorithm [Input] G = ( V , E , w ) and s ∈ V 1 dist[ s ] ← 0, dist[ a ] ← ∞ for all a ∈ V \{ s } , A ← V 2 Pick c ∈ A with the smallest dist[ c ] 3 For all neighbors b ∈ A of c , dist[ b ] ← min { dist[ b ] , dist[ c ] + w ( b , c ) } 4 A ← A \{ c } , go to Step 2 if A � = ∅ The previous works [Cabello and Jejˇ ciˇ c 2015] and [Kaplan et al. 2017] use Dijkstra’s algorithm + dynamic bichromatic closest pair Haitao Wang and Jie Xue 11 / 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend