Download presentation
Presentation is loading. Please wait.
Published byแฟฌฮฑฯฮฎฮป ฮ ฮฑฯฮฑฮฝฮนฮบฮฟฮปฮฌฮฟฯ Modified over 6 years ago
1
MST in Log-Star Rounds of Congested Clique
Mohsen Ghaffari and Merav Parter Ben Gurion Seminar Nov. 2017
2
The Congested Clique Model
๐ machines communicating over complete graph. Bandwidth restriction: In every round, send on each link only ๐ฉ=๐ถ( ๐ฅ๐จ๐ ๐) bits. Classical multi-party communication, number-in-hand model.
3
The Congested Clique Model
Two Graphs: Problem Graph & Communication Graph โ Clique In every round, every pair of vertices can exchange O(log n) bits. Main complexity parameter: communication rounds.
4
Congested Clique: Practical Motivation
Overlay Networks Large Scale Graph Processing (Every node holds partial information about the graph)
5
Congested Clique: Theoretical Motivation
Congestion Congest Local Model ฮฉ(๐ท๐๐๐๐๐ก๐๐) Locality
6
MST in the Congested Clique Model
Boruvka (1926): O(log n) rounds of components merging. Each component, select minimum outgoing edge. Merge components connected by an edge.
7
MST in O(log n) Rounds (Boruvka 1926)
At the beginning of every round, each node knows: Its component ID (leader ID). Components of neighbors. 2 2 a b c d 1 1 1 1 2 e f g h 3 3 3 3 i j k l 2 1 1 1 1 m n o p 2 2
8
MST in O(log n) Rounds (Boruvka 1926)
R1: send lightest outgoing edge to the local leader. R2: local leader picks lightest edge and send to the global leader. R3: global leader merges components. Send to nodes new component ID. R4: each node broadcast its component ID. 2 2 a b c d 1 1 1 1 2 e f g h 3 3 3 3 i j k l 2 1 1 1 1 m n o p 2 2
9
MST in O(log n) Rounds (Boruvka 1926)
Phase 1: a b c d 1 1 1 1 2 e f g h 3 3 3 3 i j k l 1 1 1 1 m n o p 2 2
10
MST in O(log n) Rounds (Boruvka 1926)
Phase 2: a b c d 1 1 1 1 2 e f g h 3 3 3 3 i j k l 1 1 1 1 m n o p 2 2
11
MST in O(log n) Rounds (Boruvka 1926)
Phase 3: 2 2 a b c d 1 1 1 1 2 e f g h 3 3 3 3 2 i j k l 1 1 1 1 m n o p 2 2
12
MST in O(log n) Rounds (Boruvka 1926)
Phase 4: 2 2 a b c d 2 e f g h 3 3 3 3 i j k l 2 1 1 1 1 m n o p 2 2
13
MST in O(log n) Rounds (Boruvka 1926)
c d 2 e f g h 3 3 3 3 i j k l 2 1 1 1 1 m n o p 2 2
14
MST in the Congested Clique Model
Lotker, Pavlov, Patt-Shamir and Peleg [SIGCOMPโ05]: O(log log n) rounds of component merging. Quadratic growth rate: In O(1) rounds, component of size ๐ฅ to components of size ๐ฅ 2 Find ๐ฅ minimum outgoing edges Quadratic growth rate
15
Faster MST in the Congested Clique
Hegeman, Pandurangan, Pemmaraju, Sardeshmukh and Scquizzato [PODCโ15]: O(log log log n) rounds of components merging. Run Lotker et al. for O(log log log n) rounds. Number of components: O(n/poly-log n). Finish in O(1) rounds using linear sketches.
16
โฆ Faster MST in the Congested Clique
Hegeman, Pandurangan, Pemmaraju, Sardeshmukh and Scquizzato [PODCโ15]: O(log log log n) rounds of components merging. โฆ O( log 4 ๐) Leader
17
This Talk: MST in ๐( log โ ๐ ) Rounds
Road Map ๐( log โ ๐ ) graph connectivity algorithm (growing maximal forest) Parallel computation of O(โ๐) connectivity instances MST
18
Basic Connectivity (BC) Algorithm
For each node, select an incident edge. Contract selected edges. Repeat until no edges. Lemma: Compute maximal forest within ๐( log ๐) rounds.
19
๐( log โ ๐) Graph Connectivity Algorithm
Forest Growth: From ๐(๐/ log 2 ๐ฅ) to ๐/๐ฅ components in O(1) rounds, w.h.p. The Goal: Simulate locally log ๐ฅ merging of components in a ``Boruvka styleโ manner. Leader
20
๐( log โ ๐) Graph Connectivity Algorithm
Forest Growth: From ๐(๐/ log 2 ๐ฅ) to ๐/๐ฅ components. The Challenge: How can vertex know which of its edges is is an outgoing edge? Our Approach: Distinguish between dense and sparse case. Leader
21
Intuition: Dense Scenario
Forest Growth: From ๐(๐/ log 2 ๐ฅ) to ๐/๐ฅ components. The Dense Scenario: The outgoing degree of each component is โฅ ๐ฅ 5 . Select a RANDOM edge and send to leader. Leader
22
Intuition: Dense Scenario
Forest Growth: From ๐(๐/ log 2 ๐ฅ) to ๐/๐ฅ components. The Dense Scenario: outgoing degree โฅ ๐ฅ 5 . Why random edge works? If the current component size โค๐ฅ then with good prob., a random edge is an outgoing edge. One step of random merging is ``equivalentโ to ๐( log ๐ฅ) steps of Boruvka-Style merging.
23
Intuition: Sparse Scenario
Forest Growth: From ๐(๐/ log 2 ๐ฅ) to ๐/๐ฅ components. The Sparse Scenario: outgoing degree โค ๐ฅ 5 . Design Sparsity-Sensitive Sketch of size ๐ถ( ๐ฅ๐จ๐ ๐ ๐โ
๐ฅ๐จ๐ ๐) The leader simulates ๐( log ๐ฅ) Boruvka-Style merging. Projecting incident edges into lower dimensional space. linear โ 0 sampler
24
Sparsity Sensitive Sketching
Define the sketch and properties. Show how to locally simulate ๐ถ( ๐ฅ๐จ๐ ๐) rounds of BC. Show that it can be delivered to leader with O(1) rounds.
25
Sketch of vertex v Each row ๐ is XOR of a subset of edges ๐ธ ๐ .
An edge is sampled to ๐ธ ๐ with prob. 2 โ๐ . ฮ( log ๐ ) bits ๐ผ ๐ท 1 โ๐ผ ๐ท 4 โ๐ผ ๐ท 9 โโฆโ๐ผ ๐ท โ ๐ผ ๐ท 1 ๐ผ ๐ท 2 โ๐ผ ๐ท 5 โ..โ๐ผ ๐ท โโ1 โฆ ฮ( log ๐ฅ ) rows ๐ฃ ๐ผ ๐ท 6 โ๐ผ ๐ท 12 Row log โ contains the ID of one edge with const. prob. ๐ผ ๐ท 11 โฆ ๐ผ ๐ท โ ๐๐๐๐ก๐ โ ๐ (๐ฃ)
26
Sketch of component ๐ถ: ๐๐๐๐ก๐โ ๐ถ = โ ๐ข ๐๐๐๐ก๐โ ๐ข
Sketch of a Component Sketch of component ๐ถ: ๐๐๐๐ก๐โ ๐ถ = โ ๐ข ๐๐๐๐ก๐โ ๐ข 1000 ๐ 1 1001 0111 ๐ฃ ๐ข ๐ 4 ๐ 3 0101 ๐ 2 ๐ 1 โ ๐ 2 โ ๐ 4 ๐ 4 1001 ๐ 1 โ ๐ 2 1101 0100 0111 ๐ 1 โ ๐ 3 1111 ๐ 1 1000 ๐ 3 ๐๐๐๐ก๐โ(๐ฃ) ๐๐๐๐ก๐โ(๐ข) ๐๐๐๐ก๐โ({๐ข,๐ฃ})= ๐๐๐๐ก๐โ(๐ข) โ ๐๐๐๐ก๐โ(๐ฃ)
27
Properties of the Sketch
Sketches allows a leader to simulate BC algorithm locally. Linearity The sketch of a component is the sum of its elements. Internal edges cancelled out. For that, the sampling of an edge (u,v) is consistent between endpoints.
28
The Sketch of Component is the Sketch of the Contracted Node
1000 ๐ 1 1001 0111 ๐ฃ ๐ข ๐ 4 ๐ 3 0101 ๐ 2 ๐ 1 โ ๐ 2 โ ๐ 4 ๐ 4 1001 ๐ 1 โ ๐ 2 1101 0100 0111 ๐ 1 โ ๐ 3 1111 ๐ 1 1000 ๐ 3 ๐๐๐๐ก๐โ(๐ฃ) ๐๐๐๐ก๐โ(๐ข) ๐๐๐๐ก๐โ({๐ข,๐ฃ})= ๐๐๐๐ก๐โ(๐ข) โ ๐๐๐๐ก๐โ(๐ฃ)
29
Properties of the Sketch
Sketches allows a leader to simulate BC algorithm locally. Linearity (cancel internal edges) ๐ฟ 0 โSampler. Completeness: With constant prob. one row contains single edge. Soundness: With high prob., detect rows containing XOR of more than one edge.
30
Example: Sketch of Components
1000 ๐ 1 1001 0111 ๐ฃ ๐ข ๐ 4 ๐ 3 0101 ๐ 2 ๐ 1 โ ๐ 2 โ ๐ 4 ๐ 4 1001 ๐ 1 โ ๐ 2 1101 0100 0111 ๐ 1 โ ๐ 3 1111 ๐ 1 1000 ๐ 3 ๐๐๐๐ก๐โ(๐ฃ) ๐๐๐๐ก๐โ(๐ข) ๐๐๐๐ก๐โ({๐ข,๐ฃ})= ๐๐๐๐ก๐โ(๐ข) โ ๐๐๐๐ก๐โ(๐ฃ)
31
Properties of the Sketches: ๐ฟ 0 โSampler
Component ๐ถ with ๐โค ๐ ๐ outgoing edges. Row ๐ฅ๐จ๐ ๐ of the sketch: Each outgoing edge is sampled w.p. ๐ ๐ . With constant prob., exactly one outgoing edge is sampled.
32
Sparsity Sensitive Sketching
Define the sketch and properties. Show how to locally simulate ๐ถ( ๐ฅ๐จ๐ ๐) rounds of BC. Show that it can be delivered to leader with O(1) rounds.
33
Simulating ๐( log ๐ฅ) rounds of BC
In iteration ๐ use the ๐ ๐กโ sketch: Sample & Merge ๐๐๐๐ก๐ โ ๐ ( ๐ถ 1 ) ๐ถ 1 ๐ผ ๐ท ๐ฅ ๐ถ 1 ๐ถ 3 ๐ผ ๐ท ๐ฅ ๐ถ 2 ๐ถ 2 ๐๐๐๐ก๐ โ ๐+1 ๐ถ 3 = ๐๐๐๐ก๐ โ ๐+1 ๐ถ 1 + ๐๐๐๐ก๐ โ ๐+1 ๐ถ 2 ๐๐๐๐ก๐ โ ๐ ( ๐ถ 2 )
34
Sparsity Sensitive Sketching
Define the sketch and properties. Show how to locally simulate ๐ถ( ๐ฅ๐จ๐ ๐) rounds of BC. Show that it can be delivered to leader with O(1) rounds.
35
Delivering Sketches to Leader in O(1) rounds
#Components ๐(n/ log 2 ๐ฅ). Sketch size O( log 2 ๐ฅ log ๐ ) bits. โฆ โ โ โ โ โ ๐( log 2 ๐ฅ) Leader
36
Putting Things Together: The Graph Connectivity Algorithm
Input: Forest F with ๐(๐/ log 2 ๐ฅ) components. Output: Forest Fโ with ๐/๐ฅ components. Types of components in F: 1. Large: with more than 8๐ฅ vertices โ Easy! 2. Non growable: small components with no outgoing edge. 3. Growable components: Low-degree (sparse): with less than ๐ฅ 5 outgoing edges. High-degree (dense): with more than ๐ฅ 5 outgoing edges.
37
The Graph Connectivity Algorithm
Input: Forest with ๐(๐/ log 2 ๐ฅ) growable components. Output: Forest with ๐/๐ฅ growable components. Step S1: Handling low-degree components (โค ๐ ๐ ) Every vertex ๐ฃ computes L=๐( log ๐ฅ) sketches: ๐บ๐๐๐๐ ๐ ๐ ๐ ,โฆ๐บ๐๐๐๐ ๐ ๐ณ ๐ . Compute the sketch of each component ๐ถ Route ๐๐๐๐ก๐ โ ๐ ๐ถ of growable component to leader. The leader locally simulates ๐( log ๐ฅ) BC merging. ๐๐๐๐ก๐ โ ๐ ๐ถ = โ ๐ข ๐๐๐๐ก๐ โ ๐ (๐ข), 1โค๐โค๐ฟ.
38
The Graph Connectivity Algorithm
Input: Forest F with ๐(๐/ log 2 ๐ฅ) growable components. Output: Forest Fโ with ๐/๐ฅ growable components. Step S2: Handling high-degree components (โฅ ๐ ๐ ) Every vertex ๐ฃ sends a random edge to the leader. The Leader merges components into forest Fโ. Step S3: Cleanup The leader identifies and deactivates components in Fโ that are smaller than ๐ฅ and non-growable.
39
Analysis of (S1): The Sparse Case
Lemma[Low-Deg]: After Step (S1), w.h.p., there are โค๐/4๐ฅ growable low-degree components. Leader simulates ๐( log ๐ฅ) of BC algorithm. iโth phase: ๐ฆ ๐ low-deg components. ๐ผ(#edges decoded successfully using ๐ โฒ ๐กโ sketch)= ๐ฆ ๐ /10 W.h.p., we get ๐ฆ ๐ /20 outgoing edges. W.h.p., ๐ฆ ๐+1 โค39/40 ๐ฆ ๐
40
Analysis of (S2): The Dense Case
Lemma[High-Deg]: After Step (S2), there are โค๐/4๐ฅ growable high-degree components. Assume the current size of the component is less than 8๐ฅ. The prob. that a random edge is internal is (8๐ฅ) 2 / ๐ฅ 4 =1/ ๐ฅ 2 . Hence, the probability that the final component has size less than 8๐ฅ is at most 1/๐๐ฅ. Overall, in expectation, ๐(๐/ ๐ฅ ) components of size โค8๐ฅ. ๐ฅ 5 โค8๐ฅ vertices
41
Analysis of (S2): The Dense Case
Lemma[High-Deg]: After Step (S2), there are โค๐/4๐ฅ growable high-degree components. ๐=1 ๐
=1 ๐
โ bound on number of small components that do not contain low-degree components ๐=2 ๐
=1 ๐
=2 ๐=3
42
The Graph Connectivity Algorithm
Input: Forest with ๐(๐/ log 2 ๐ฅ) growable components. Output: Forest with ๐/๐ฅ growable components. Step S1: Handling low-degree components (โค ๐ ๐ ) Every vertex ๐ฃ computes L=๐( log ๐ฅ) sketches: ๐บ๐๐๐๐ ๐ ๐ ๐ ,โฆ๐บ๐๐๐๐ ๐ ๐ณ ๐ . Compute the sketch of each component ๐ถ Route ๐๐๐๐ก๐ โ ๐ ๐ถ of growable component to leader. The leader locally simulates ๐( log ๐ฅ) BC merging. ๐๐๐๐ก๐ โ ๐ ๐ถ = โ ๐ข ๐๐๐๐ก๐ โ ๐ (๐ข), 1โค๐โค๐ฟ.
43
The Graph Connectivity Algorithm
Input: Forest F with ๐(๐/ log 2 ๐ฅ) growable components. Output: Forest Fโ with ๐/๐ฅ growable components. Step S2: Handling high-degree components (โฅ ๐ ๐ ) Every vertex ๐ฃ sends a random edge to the leader. The Leader merges components into forest Fโ. Step S3: Cleanup The leader identifies and deactivates components in Fโ that are smaller than ๐ฅ and non-growable.
44
๐( log โ ๐) MST Algorithm
Karger-Klein-Tarjan (KKT) Sampling: Reduce the problem into solving two MST problems, each on graph with ๐( ๐ 3/2 ) edges. 1. Sample edges ๐ฏโ๐ฎ with probability ๐= ๐ ๐ . 2. Compute MSF ๐น on the subgraph ๐ฏ. Def: Edge ๐=(๐,๐) in G is ๐ญโ๐๐๐๐๐ if it is not the heaviest on ๐โ๐ path in ๐ญ. 3. W.h.p, there are ๐ถ ๐ ๐ =๐ถ( ๐ ๐/๐ ) F-light edges ๐ณ. 4. Compute MST tree on ๐ฏโช๐ณ. ๐ฅ 3 5 ๐ฆ 4
45
๐( log โ ๐) MST Algorithm
Karger-Klein-Tarjan (KKT) Sampling: Reduce the problem into solving two MST problems, each on graph with ๐( ๐ 3/2 ) edges. Sorting Edges into ๐ buckets: By Lenzenโ12, within O(1) rounds: Every vertex knows the bucket of each of its edges. For every bucket ๐, there is a node ๐ข ๐ that knows ๐ธ ๐ ๐ 1 , ๐ 2 ,โฆ ๐ ๐ ,โฆ, ๐ ๐๐ , โฆ.., ๐ ๐+1 ๐ , โฆ., ๐ ๐ 3/2 ๐ธ 1 โฆ ๐ธ ๐ โฆ ๐ธ ๐
46
From MST to ๐ Connectivity Problems
Key Observation: An edge ๐ ๐๐ = x,y in MST if ๐ and ๐ are not connected in ๐ธ 1 โช ๐ธ 2 โฆโช ๐ธ ๐โ1 ๐ ๐ , ๐ ๐ ,โฆ ๐ ๐ ,โฆ, ๐ ๐๐ , โฆ.., ๐ ๐+๐ ๐ , โฆ., ๐ ๐ ๐/๐ ๐ธ ๐ Leader ๐ข ๐ should know the connected components of ๐ป ๐ =๐ธ 1 โช ๐ธ 2 โฆโช ๐ธ ๐โ1 . Nodes compute ๐ connectivity problems for ๐ป 1 ,โฆ, ๐ป ๐ in parallel.
47
Key Result -Summary A Minimum Spanning Tree (Forest) can be computed within ๐( log โ ๐) Congested Clique rounds. Corollaries: Can be done within ๐( log โ ๐) rounds: Testing bipartiteness, cut verification, s-t connectivity, and cycle containment.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.