graph distances in the streaming model
play

Graph Distances in the Streaming Model Joan Feigenbaum Sampath - PowerPoint PPT Presentation

Graph Distances in the Streaming Model Joan Feigenbaum Sampath Kannan Andrew McGregor Siddharth Suri & Jian Zhang The Streaming Model The Streaming Model Classic Problem: Median Finding The Streaming Model Classic Problem:


  1. (2,2) (2,2) (2,7) (1,2) (1,4) (1,2) (1,7) (1,11) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12 (v 2 ,v 6 ): L v2 (v 6 ) = {(0,2),(1,2),(2,2)} L(v 6 ) = L(v 6 ) U {(1,2),(2,2)}. Add (v 2 ,v 6 ) to spanning trees for clusters C(1,2) and C(2,2).

  2. Proofs: Graph Created is Sparse

  3. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p:

  4. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n).

  5. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n).

  6. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n). • Total size of all cluster trees is O( t n ):

  7. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n). • Total size of all cluster trees is O( t n ): Each vertex appears at most in one cluster at each level.

  8. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n). • Total size of all cluster trees is O( t n ): Each vertex appears at most in one cluster at each level.

  9. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n). • Total size of all cluster trees is O( t n ): Each vertex appears at most in one cluster at each level. • |M(v)| = O( t n 1/t log n ) for each v w.h.p:

  10. Proofs: Graph Created is Sparse • |T| = O( n ) w.h.p: With high probability, # of clusters at top level is O( √ n). • Total size of all cluster trees is O( t n ): Each vertex appears at most in one cluster at each level. • |M(v)| = O( t n 1/t log n ) for each v w.h.p: Each edge added to M( v ) corresponds to an unselected label… hence # has geometric distribution.

  11. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i (4,1) (3,1) (2,1) (1,1) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12

  12. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i (4,1) (4,1) (3,1) (3,1) (2,1) (2,1) (1,1) (1,1) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12

  13. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i (4,1) (4,1) (4,1) (3,1) (3,1) (3,1) (2,1) (2,1) (2,1) (1,1) (1,1) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12

  14. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i (4,1) (4,1) (4,1) (4,1) (3,1) (3,1) (3,1) (3,1) (2,1) (2,1) (2,1) (1,1) (1,1) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12

  15. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i (4,1) (4,1) (4,1) (4,1) (4,1) (3,1) (3,1) (3,1) (3,1) (2,1) (2,1) (2,1) (1,1) (1,1) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) (0,7) (0,8) (0,9) (0,10) (0,11) (0,12) v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 10 v 11 v 12

  16. Proofs: Graph is a 2 t +1 spanner • Spanning tree of i th level cluster has diameter ≤ 2 i • For each edge ignored there is a short detour: – If u and v have an label l in common they are ≤ t apart. – If u and v have top level labels then they are ≤ 2t+1 apart. – If ( u , v ) not added to M(v) there was an edge ( u’,v ) in M ( v ) with u’ in same cluster as u . Then they are ≤ t+1 apart.

  17. Lower 2. Lower Bounds

  18. 2. Lower Bounds

  19. Estimating a Distance

  20. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration.

  21. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration.

  22. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k.

  23. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k.

  24. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  25. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  26. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  27. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  28. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  29. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges.

  30. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges. • In one pass it is not possible to approximate the distance to better than 1/ γ factor using space o(n 1+ γ ).

  31. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges. H u v • In one pass it is not possible to approximate the distance to better than 1/ γ factor using space o(n 1+ γ ).

  32. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges. s H t u v • In one pass it is not possible to approximate the distance to better than 1/ γ factor using space o(n 1+ γ ).

  33. Estimating a Distance Consider Zombie edges whose original presence can not be • decided from the memory configuration. • An edge ( u,v ) is k-critical if the shortest path from u to v in G\ ( u,v ) has length at least k. There exists a graph with O(n 1+ γ ) edges such that the majority • of edges are 1/ γ -critical. Consider a random subgraph H formed by deleting at most half the 1/ γ -critical edges. s H t u v • In one pass it is not possible to approximate the distance to better than 1/ γ factor using space o(n 1+ γ ).

  34. 3. Hardness of Computing a BFS

  35. Layered Graph Layer 8 Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 Layer 2 Layer 1 s

  36. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  37. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  38. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  39. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  40. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  41. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  42. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  43. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  44. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  45. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  46. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  47. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  48. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  49. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  50. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  51. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  52. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  53. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  54. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  55. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  56. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  57. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  58. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  59. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

  60. Layered Graph Problem: Layer 8 Find all vertices in Layer 7 layer i that are a Layer 6 distance i from Layer 5 vertex s . Layer 4 Layer 3 Layer 2 Layer 1 s

Recommend


More recommend