Distributed MST for Constant Diameter Graphs Zvi Lotker & Boaz Patt-Shamir & David Peleg.

Slides:



Advertisements
Similar presentations
Energy-Efficient Distributed Algorithms for Ad hoc Wireless Networks Gopal Pandurangan Department of Computer Science Purdue University.
Advertisements

Chapter 5: Tree Constructions
Distributed Leader Election Algorithms in Synchronous Ring Networks
Distributed Computing 1. Lower bound for leader election on a complete graph Shmuel Zaks ©
Chapter 15 Basic Asynchronous Network Algorithms
Minimum Spanning Trees Definition Two properties of MST’s Prim and Kruskal’s Algorithm –Proofs of correctness Boruvka’s algorithm Verifying an MST Randomized.
Lecture 7: Synchronous Network Algorithms
Minimum Spanning Trees
Minimum Spanning Trees
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
A Randomized Linear-Time Algorithm to Find Minimum Spanning Trees David R. Karger David R. Karger Philip N. Klein Philip N. Klein Robert E. Tarjan.
LOCALITY IN DISTRIBUTED GRAPH ALGORITHMS Nathan Linial Presented by: Ron Ryvchin.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Building MST with Õ(n) bits of communication in a Distributed Network Building MST with Õ(n) bits of communication in a Distributed Network 1 Valerie King,
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 21st Lecture Christian Schindelhauer.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
1 Minimum Spanning Trees Gallagher-Humblet-Spira (GHS) Algorithm.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 8 May 4, 2005
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Distributed Coloring in Õ(  log n) Bit Rounds COST 293 GRAAL and.
Lecture 12 Minimum Spanning Tree. Motivating Example: Point to Multipoint Communication Single source, Multiple Destinations Broadcast – All nodes in.
A Distributed Algorithm for Minimum-Weight Spanning Trees by R. G. Gallager, P.A. Humblet, and P. M. Spira ACM, Transactions on Programming Language and.
Maximal Independent Set Distributed Algorithms for Multi-Agent Networks Instructor: K. Sinan YILDIRIM.
Raeda Naamnieh 1. The Partition Algorithm Intuitively, the idea of the following algorithm is to choose each cluster as a maximal subset of nodes whose.
The Shortest Path Problem
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
Distributed Algorithms 2014 Igor Zarivach A Distributed Algorithm for Minimum Weight Spanning Trees By Gallager, Humblet,Spira (GHS)
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Distributed Verification and Hardness of Distributed Approximation Atish Das Sarma Stephan Holzer Danupon Nanongkai Gopal Pandurangan David Peleg 1 Weizmann.
Broadcast & Convergecast Downcast & Upcast
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
1 Quantum query complexity of some graph problems C. DürrUniv. Paris-Sud M. HeiligmanNational Security Agency P. HøyerUniv. of Calgary M. MhallaInstitut.
Distributed Coloring Discrete Mathematics and Algorithms Seminar Melih Onus November
Minimum Spanning Tree Given a weighted graph G = (V, E), generate a spanning tree T = (V, E’) such that the sum of the weights of all the edges is minimum.
2IL05 Data Structures Fall 2007 Lecture 13: Minimum Spanning Trees.
UNC Chapel Hill Lin/Foskey/Manocha Minimum Spanning Trees Problem: Connect a set of nodes by a network of minimal total length Some applications: –Communication.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
알고리즘 설계 및 분석 Foundations of Algorithm 유관우. Digital Media Lab. 2 Chap4. Greedy Approach Grabs data items in sequence, each time with “best” choice, without.
PODC Distributed Computation of the Mode Fabian Kuhn Thomas Locher ETH Zurich, Switzerland Stefan Schmid TU Munich, Germany TexPoint fonts used in.
A graph problem: Maximal Independent Set Graph with vertices V = {1,2,…,n} A set S of vertices is independent if no two vertices in S are.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
A correction The definition of knot in page 147 is not correct. The correct definition is: A knot in a directed graph is a subgraph with the property that.
Minimal Spanning Tree Problems in What is a minimal spanning tree An MST is a tree (set of edges) that connects all nodes in a graph, using.
Tree Constructions Distributed Algorithms for Multi-Agent Networks Instructor: K. Sinan YILDIRIM.
Vertex Coloring Distributed Algorithms for Multi-Agent Networks
Minimum- Spanning Trees
Graphs Upon completion you will be able to:
Andrea CLEMENTI Radio Networks The Model Broadcast.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. Fast.
Introduction Wireless Ad-Hoc Network  Set of transceivers communicating by radio.
CIS 825 Lecture 8. Leader Election Aim is to elect exactly one node as the leader.
Distributed Algorithms for Network Diameter David Peleg, Liam Roditty and Elad Tal.
Khaled M. Alzoubi, Peng-Jun Wan, Ophir Frieder
Minimum Spanning Tree 8/7/2018 4:26 AM
CS60002: Distributed Systems
MST in Log-Star Rounds of Congested Clique
MST GALLAGER HUMBLET SPIRA ALGORITHM
Tree Construction (BFS, DFS, MST) Chapter 5
Minimum Spanning Tree.
Graphs Chapter 11 Objectives Upon completion you will be able to:
Chapter 23 Minimum Spanning Tree
CS 583 Analysis of Algorithms
Introduction Wireless Ad-Hoc Network
MST GALLAGER HUMBLET SPIRA ALGORITHM
Lecture 8: Synchronous Network Algorithms
CSE 417: Algorithms and Computational Complexity
Locality In Distributed Graph Algorithms
Minimum Spanning Trees
Presentation transcript:

Distributed MST for Constant Diameter Graphs Zvi Lotker & Boaz Patt-Shamir & David Peleg

Model and Notation G(V,E) is the network Each vertex has a unique name Each edge has a weight Vertices communicate only by edges The communication is synchronous Exactly B bits are sent at each time step D is the diameter of the graph

Related work If B=  then O(D) [N. Linial 92] If B=O(log(n)) communication optimal required O(n log(n)) and O(n) time [GHS83] and [A87] respectively O(D+n log * (n)), O(D+n 0.5 log * (n)) [GKP98], [KP98] respectively  (n 0.5 /(B log(n))) [PR00]

Our results lower bound There exists a family of graphs with diameter 4 s.t  ((n 1/3 )/B) There exists a family of graphs with diameter 3 s.t  ((n 1/4 )/(B 0.5 )) The lower bound holds for randomized algorithms

Our results graph with diameter 2 O(log n) time units suffice to compute an MST for graphs with diameter 2

The mailing problem [PR00] mail(G,s,r,b) G(V,E) s,r  V We wish to send x 1, x 2, … x b bits from s to r We denote the worst-case time complexity of algorithm A by T A (G,s,r,b)

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=1

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=2

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=3

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=4

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=5

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=6

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=7

The mailing problem Exmpal mail(P n,s,r,b) T A (P n,s,r,b)>b s r t=8 T A (P n,s,r,b)=n+b

Diameter 4 graphs c v 2,m 2 +1 v 3,m 2 +1 s=v 1,m 2 +1 r=v m,m 2 +1 v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 2 v 3,m 2 v m,m 2

Diameter 4 graphs  For all m> 2, the number of nodes is m^3+m+1 and the diameter is 4 c v 2,m 2 +1 v 3,m 2 +1 s=v 1,m 2 +1 r=v m,m 2 +1 v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 2 v 3,m 2 v m,m 2

Diameter 4 graphs v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 2 v 3,m 2 v m,m 2 s=v 1,m 2 +1 v 2,m 2 +1 v 3,m 2 +1 r=v m,m 2 +1 c m+2

Diameter 4 graphs  For any time t<m the number of bits delivered at r by time t is at most t m B v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 2 v 3,m 2 v m,m 2 s=v 1,m 2 +1 v 2,m 2 +1 v 3,m 2 +1 r=v m,m 2 +1 c

Diameter 4 graphs  For any time t<m the number of bits delivered at r by time t is at most t m B  For any correct mailing algorithm A, any m> 2 and any m^2 bit input string X, we have T A (h m,s,r,X)> m/B.  t m B>m^2  t>m/b

Diameter 4 graphs From mailing to MST 0 1,3 2

Diameter 4 graphs From mailing to MST 0 1,3 2

z1z1 z2z2 z3z3 r=z m kmkm Diameter 3 graphs  For all m> 2, the number of nodes is m^4+m+1 and the diameter is 3 v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 s

Diameter 3 graphs v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 z1z1 z2z2 z3z3 r=z m s kmkm 2 4 m+2

Diameter 3 graphs v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 z1z1 z2z2 z3z3 r=z m s kmkm M4M4

Diameter 3 graphs v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 z1z1 z2z2 z3z3 r=z m s kmkm

Diameter 3 graphs v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 z1z1 z2z2 z3z3 r=z m s kmkm For any t<m, new bits that arrive at C enter only at nodes z i with 1  i  t.

Diameter 3 graphs For t< m, the number of bits arriving at r by time t is less than t^2mB/2. v 1,1 v 2,1 v 3,1 v m,1 v 1,2 v 2,2 v 3,2 v m,2 v 2,m 3 v 1,m 3 v 3,m 3 v m,m 3 z1z1 z2z2 z3z3 r=z m s kmkm

If for some probability distribution over the inputs the expected cost for all deterministic algorithms is at least C, then for any randomized algorithm there exists an input with expected complexity at least C. The minimax principle [Yao 77]

Segmented minima D=2 For each v  V we have segment number f(v) and value a(v) The task of segmented minima is to compute b(v)= min{ a(v):f(v)=f(u)}

Solving Segmented minima Lemma: Segmented minima can be computed in 2 steps in the B model, 1. Send (f(v),a(v)) to all neighbors 2. Send to each neighbor u the minimal value received from u 's segment 3. Set b(v) to be the minimum of all values received in the second step

Solving Segmented minima

1,2,3,4,7 3,5,6,7,8 3,4,6,8 2,4,5,7 1,4,6 2,4,7,8 1,3,6,8 2,5, Send (f(v),a(v)) to all neighbors

Solving Segmented minima 2. Send to each neighbor u the minimal value received from u 's segment 1,2,3,4,7 3,4,6,8 2,4,5,7 1,4,6 3, ,7 2,7 1,6 2,5 3,6 2,5 1,6 3,5,6,7,8 2,4,7,8 1,3,6,8 2,5,8

Solving Segmented minima 3. Set b(v) to be the minimum of all values received in the second step 1,2,3,4,7 3,4,6,8 2,4,5,7 1,4, ,5,6,7,8,2,4,7,8 1,3,6,8 2,5,8 1,3,2,1,2 1,3,3,1 1,2,2,2 1,1,1 5,7,6,5,6 5,7,7,5 5,6,6,6 5,5,5

definition A fragment is a collection of nodes connected by edges already added to the MST. The leader of a fragment is the node whose ID is minimal in the fragment. At any given time step, we use f(v) to denote the leader of the fragment that contains a node v

Phase k 1. Each fragment adds one edge to the MST (using the leader). By doing this a new structure of fragments is created 2. Each new fragment chooses a new leader.

A simple O(log^2 n) time algorithm derived from Boruvka's All nodes in a fragment know the ID of their leader at the beginning of every Phase Initially, each node forms a singleton fragment with itself being the leader

Phase k 1. Each node v sends the ID of its current leader f(v) to all its neighbors 2. The nodes execute segmented minima, with the values being the weight of their lightest incident edge outgoing to another fragment 3. Find the leader of the fragment using pointer jumping.

Example

Phase 1 The problem is to select a leader

O(Log(log(n))) in K n Elan Pavlov The idea is the increase the communication bandwidth the fragment The alg work in phases each take O(1) For every fragment F, the spanning subtree T(F) is know to all the node in the graph at the end of the time the fragmen is created.

Example

Phase k 1. For every other fragmen F' do: 2. Compute the minimum-weight edge e(v,F') that connects v to (any node of) F'. 3. Send e(v,F') to every node in the fragmen F'. 4. For every other fragmen F', inspect e(w,F) for every w  F ‘ and compute the fragmen edge between F' and F, denoted e(F,F') 5. selects a set A(F) containing the N cheapest edges that go out of F to N distinct fragmen end for each edge e appointed as guardian. 6. computes the new fragmen and spanning subtree of phase k.

computes the new fragmen Done in two stages 1. creating a logical graph G. 2. partitions this logical graph G into superclusters and constructs a spanning subtree.

computes the new fragmen partitions this logical graph into superclusters and constructs a spanning subtree. 1. Inspects the edges that where selected sequentially in increasing order of weight. 2. Edge e is added to G if it does not close a cycle with edges already in G. 3. Whenever an edge e=(F 1,F 2 ) is added to G the superclusters F 1 and F 2 are merged into one supercluster

computes the new fragmen newly constructed super- fragmen F is declared finished if 1. e is the heaviest edge in A(F 1 ) or in A(F 2 ), 2. Either F 1 or F 2 is finished. 3. The super-cluster F is declared finished if e is the heaviest edge.

End

Example

Example a a

At the end

Phase