Distributed and Non-Distributed Computational Models
Ami Paz IRIF β CNRS and Paris Diderot University
Distributed and Non-Distributed Computational Models Ami Paz IRIF - - PowerPoint PPT Presentation
Distributed and Non-Distributed Computational Models Ami Paz IRIF CNRS and Paris Diderot University Message Passing Models Local 1. Congest 2. Clique 3. Message Passing Models A graph = , representing the network
Ami Paz IRIF β CNRS and Paris Diderot University
1.
Local
2.
Congest
3.
Clique
ο½ A graph π» = π, πΉ representing the networkβs topology ο½ π unbounded processors, located on the nodes ο½ Communicating on the edges ο½ Synchronous network ο½ Compute / verify graph parameters
3
ο½ Unbounded messages ο½ Solving local tasks:
ο½ Coloring ο½ MST ο½ MIS
ο½ Anything solvable in Ξ πΈ rounds
2-hop environment 1-hop environment
*
4
ο½ Triangle detection
ο½ Easy, in one round ο½ Send all your neighbors your list of neighbors
ο½ Computing the diameter πΈ
ο½ Takes Ξ(πΈ) rounds
5
ο½ Computing πΈ takes Ξ© πΈ rounds
ο½ Indistinguishability argument
6
πΈ = π/2 πΈ = π β 1
ο½ Computing πΈ takes Ξ© πΈ rounds
ο½ Indistinguishability argument
7
View after π/2 β 1 rounds View after π/2 β 1 rounds
Cannot distinguish
πΈ = π/2 πΈ = π β 1
ο½ Bounded message size; typically π = O log π ο½ All Local lower bounds still hold ο½ Some Local algorithms still work
ο½ But not all!
Bottleneck
8
ο½ Communication complexity problem ο½ Inputs encoded by a graph ο½ Split the graph between Alice and Bob ο½ CC lower bounds imply message lower bounds
Alice Bob Bottleneck
1 2 3 4
Alice
Bottleneck
Ξ©( π/π) lower bound Verification: MST, bipartiteness, cycle, connectivityβ¦ Approximation: MST, min cut, shortest s-t pathβ¦
ο½ Local model:
ο½ Unbounded messages ο½ Everything is solvable in π πΈ rounds
ο½ Congest model:
ο½ Message = π log π bits ο½ Lower bounds of
ο½ Tight for many problems
ο½ Question: is Ξ©
11
ο½ All-to-all message passing β a clique network ο½ Diameter of 1 ο½ No distance β only congestion ο½ MST in π(logβ π) rounds [GP16]
ο½ Fast triangle detection, diameter, APSP, β¦
12
ο½ Diam = 1 ο½ Larger set β more outgoing edges ο½ No nontrivial lower bound is known ο½ Simple counting argument [DKO14]
ο½ many functions need π β 5 log π rounds
13
ο½ π synchronous processors, π inputs to each ο½ Connected by a communication graph ο½ Typical graphs:
ο½ Clique ο½ Cycle ο½ T
ο½ Known topology, known identities ο½ Bounded message size ο½ Bounded memory ο½ Bounded computational power
15
ο½ Parallel is more restrictive:
ο½ Bounded memory ο½ Bounded computational power
ο½ Different focus:
ο½ Specific communication graphs ο½ Algebraic questions vs. graph parameters
16
ο½ Algebraic computation model ο½ A computation graph (circuit) composed of:
ο½ Inputs, output, and operation gates
ο½ Represent many algorithms:
ο½ Matrix multiplication, determinant, permanent
ο½ Complexity measures:
ο½ Depth, number of gates, fan-in, fan-out + * + + Λ Λ Λ Λ
18
Λ
ο½ Arithmetic circuits ο½ Boolean circuits ο½ Boolean circuits augmented with:
ο½ mod π gates ο½ Threshold gates ο½ β¦ Λ
mod 3 Λ Λ
19
ο½ What can be computed in constant depth? ο½ Counting argument:
ο½ Many functions cannot be computed using Boolean circuits ο½ β¦ or even using augmented circuits
ο½ But:
ο½ No explicit function is known
20
ο½ Clique can simulate circuits [DKO14]
ο½ Each node simulates a set of gates in a layer ο½ Circuitβs depth = # of rounds mod 3 mod 3 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ
22
ο½ Main idea:
ο½ Simulate each layer of the circuit in π 1 rounds mod 3 mod 3 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ π¦ π§ π§ π¦ Λ
23
ο½ Main idea:
ο½ Simulate each layer of the circuit in π 1 rounds mod 3 mod 3 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ
24
ο½ Main idea:
ο½ Simulate each layer of the circuit in π 1 rounds mod 3 mod 3 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ
25
ο½ Main idea:
ο½ Simulate each layer of the circuit in π 1 rounds mod 3 mod 3 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ
26
ο½ Clique can simulate circuits
ο½ Non-constant rounds lower bound for the Clique β
ο½ There is also a reduction in the other direction [DKO14]
ο½ A circuit can simulate the Clique
mod 3 Λ Λ Λ
27
ο½ Base for many algebraic problems ο½ Thoroughly studied in parallel computing ο½ Several algorithms:
ο½ different topologies, input / output partitions
29
ο½ This talk:
ο½ The 3D algorithm [ABG+95] ο½ For π Γ π matrices and π processors ο½ Adaptation of parallel algorithm to the Clique [CHK+16]
30
ο½ Parallel 3D algorithm β
ο½ Implies triangle detection, πΈ, APSP
ο½ In similar time [CHK+16]
31
ο½ Standard matrix multiplication:
ο½ Compute π2 entries, each need π multiplications ο½ T
ο½ There exist faster algorithms:
ο½ Strassen π π2.807
ο½ Coopersmith-Vinograd π π2.376
ο½ β¦ ο½ Le Gall π π2.373
ο½ Distributed matrix multiplication in π(π0.158) rounds
32
ο½ Ξ π
1 3
ο½
ο½ O π1β
2 π β Ξ π0.158 rounds [CHK+16]
ο½ 2,3 Imply similar complexities for:
ο½ APSP, diameter, girth
34
ο½ Several models:
ο½ Message passing
ο½ Local, Congest and Clique
ο½ Parallel systems ο½ Circuits
ο½ Arithmetic, Boolean, augmented
ο½ Many connections and similarities ο½ Approach different questions ο½ Using different techniques
+ * + +
35