On the Time Complexity of Distributed Topological Self-Stabilization - - PowerPoint PPT Presentation

on the time complexity of distributed topological self
SMART_READER_LITE
LIVE PREVIEW

On the Time Complexity of Distributed Topological Self-Stabilization - - PowerPoint PPT Presentation

Linearization Framework Table of Results On the Time Complexity of Distributed Topological Self-Stabilization Andrea Richa Joint work with Dominik Gall, Riko Jacob, Christian Scheideler, Stefan Schmid, and Hanjo Tubig Arizona State


slide-1
SLIDE 1

Linearization Framework Table of Results

On the Time Complexity of Distributed Topological Self-Stabilization

Andrea Richa

Joint work with Dominik Gall, Riko Jacob, Christian Scheideler, Stefan Schmid, and Hanjo Täubig Arizona State University

LATIN 2010

Time Complexity of Topological Algorithms Andrea Richa

slide-2
SLIDE 2

Linearization Framework Table of Results

Reminder: Purpose of a Model

A model should reflect reality accurately enough simply enough to say something interesting. The execution time of a parallel/distributed algorithm heavily depends on how parallelism is modeled: too loose: too many operations (some possibly conflicting) executed in one round too rigid: may “force” a sequential execution of the

  • perations when parallelism could still be exploited

We present an execution framework for local topological algorithms, which sheds new light on the achievable paralellism

  • f such algorithms.

Time Complexity of Topological Algorithms Andrea Richa

slide-3
SLIDE 3

Linearization Framework Table of Results

Reminder: Purpose of a Model

A model should reflect reality accurately enough simply enough to say something interesting. The execution time of a parallel/distributed algorithm heavily depends on how parallelism is modeled: too loose: too many operations (some possibly conflicting) executed in one round too rigid: may “force” a sequential execution of the

  • perations when parallelism could still be exploited

We present an execution framework for local topological algorithms, which sheds new light on the achievable paralellism

  • f such algorithms.

Time Complexity of Topological Algorithms Andrea Richa

slide-4
SLIDE 4

Linearization Framework Table of Results

Topological (Self-Stabilizing) Algorithm

System State Graph G on n nodes Local actions change edges between neighbors Goal Achieve a specific target topology

Time Complexity of Topological Algorithms Andrea Richa

slide-5
SLIDE 5

Linearization Framework Table of Results

Topological (Self-Stabilizing) Algorithm

System State Graph G on n nodes Local actions change edges between neighbors Goal Achieve a specific target topology

Time Complexity of Topological Algorithms Andrea Richa

slide-6
SLIDE 6

Linearization Framework Table of Results

Topological (Self-Stabilizing) Algorithm

System State Graph G on n nodes Local actions change edges between neighbors Goal Achieve a specific target topology

Time Complexity of Topological Algorithms Andrea Richa

slide-7
SLIDE 7

Linearization Framework Table of Results

Topological (Self-Stabilizing) Algorithm

System State Graph G on n nodes Local actions change edges between neighbors Goal Achieve a specific target topology

Time Complexity of Topological Algorithms Andrea Richa

slide-8
SLIDE 8

Linearization Framework Table of Results

Topological (Self-Stabilizing) Algorithm

System State Graph G on n nodes Local actions change edges between neighbors Goal Achieve a specific target topology FAST

Time Complexity of Topological Algorithms Andrea Richa

slide-9
SLIDE 9

Linearization Framework Table of Results

Outline

1

Setup

2

Linearization

3

Framework

4

Table of Results

Time Complexity of Topological Algorithms Andrea Richa

slide-10
SLIDE 10

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1}

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-11
SLIDE 11

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1}

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-12
SLIDE 12

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1}

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-13
SLIDE 13

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1} Rule ⇓ t = 0

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-14
SLIDE 14

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1} Rule ⇓ t = 1

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-15
SLIDE 15

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1} Rule ⇓ t = 2

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-16
SLIDE 16

Linearization Framework Table of Results

Linearization

Problem Initial State Arbitrary connected graph on {1, . . . , n} Goal Edges of the form {i, i + 1} Rule ⇓ t = 3

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-17
SLIDE 17

Linearization Framework Table of Results

Known result

Theorem [Onus, Richa, Scheideler ’06] The presented linearization algorithm takes Θ(n) rounds Lower bound Upper bound For every missing edge {k, k + 1}: Consider the length of the shortest interval [i, j] s.t. k and k + 1 are connected in the subgraph induced by {i, . . . , k, . . . , j}. This length is reduced in every step by at least one.

Time Complexity of Topological Algorithms Andrea Richa

slide-18
SLIDE 18

Linearization Framework Table of Results

Known result

Theorem [Onus, Richa, Scheideler ’06] The presented linearization algorithm takes Θ(n) rounds Lower bound Upper bound For every missing edge {k, k + 1}: Consider the length of the shortest interval [i, j] s.t. k and k + 1 are connected in the subgraph induced by {i, . . . , k, . . . , j}. This length is reduced in every step by at least one.

Time Complexity of Topological Algorithms Andrea Richa

slide-19
SLIDE 19

Linearization Framework Table of Results

Known result

Theorem [Onus, Richa, Scheideler ’06] The presented linearization algorithm takes Θ(n) rounds Lower bound Upper bound For every missing edge {k, k + 1}: Consider the length of the shortest interval [i, j] s.t. k and k + 1 are connected in the subgraph induced by {i, . . . , k, . . . , j}. This length is reduced in every step by at least one.

Time Complexity of Topological Algorithms Andrea Richa

slide-20
SLIDE 20

Linearization Framework Table of Results

Criticism

High degree nodes Executing the rule should take time proportional to the degree. Concurrent access Nodes should not participate “passively” in more than one execution of the rule.

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-21
SLIDE 21

Linearization Framework Table of Results

Criticism

High degree nodes Executing the rule should take time proportional to the degree. Concurrent access Nodes should not participate “passively” in more than one execution of the rule.

7 1 2 3 4 5 6

Time Complexity of Topological Algorithms Andrea Richa

slide-22
SLIDE 22

Linearization Framework Table of Results

Atomic Rule

Atomic algorithmic rule

v u v’ v u v’

Every such triple is considered independently The previous algorithm: Example with 3 triples Idea: Scheduler In every round, a scheduler decides on the executed triples. For example, an independent set of rules (matching)

Time Complexity of Topological Algorithms Andrea Richa

slide-23
SLIDE 23

Linearization Framework Table of Results

Atomic Rule

Atomic algorithmic rule

v u v’ v u v’

Every such triple is considered independently The previous algorithm: Example with 3 triples Idea: Scheduler In every round, a scheduler decides on the executed triples. For example, an independent set of rules (matching)

Time Complexity of Topological Algorithms Andrea Richa

slide-24
SLIDE 24

Linearization Framework Table of Results

Atomic Rule

Atomic algorithmic rule

v u v’ v u v’

Every such triple is considered independently The previous algorithm: Example with 3 triples Idea: Scheduler In every round, a scheduler decides on the executed triples. For example, an independent set of rules (matching)

Time Complexity of Topological Algorithms Andrea Richa

slide-25
SLIDE 25

Linearization Framework Table of Results

Variants of the Algorithm

Only longest: LinMax All neighbors: LinNgb All possible triples: LinAll

Time Complexity of Topological Algorithms Andrea Richa

slide-26
SLIDE 26

Linearization Framework Table of Results

Framework for different models of execution

Rounds Execution progresses in synchronous rounds; these are counted Scheduler In every round, the set of active rules is determined, and a scheduler decides which rules are executed in this round Matching The rules define hyperedges on 3 nodes. A matching is a set of hyperedges that do not share nodes.

Time Complexity of Topological Algorithms Andrea Richa

slide-27
SLIDE 27

Linearization Framework Table of Results

Framework for different models of execution

Rounds Execution progresses in synchronous rounds; these are counted Scheduler In every round, the set of active rules is determined, and a scheduler decides which rules are executed in this round Matching The rules define hyperedges on 3 nodes. A matching is a set of hyperedges that do not share nodes.

Time Complexity of Topological Algorithms Andrea Richa

slide-28
SLIDE 28

Linearization Framework Table of Results

Framework for different models of execution

Rounds Execution progresses in synchronous rounds; these are counted Scheduler In every round, the set of active rules is determined, and a scheduler decides which rules are executed in this round Matching The rules define hyperedges on 3 nodes. A matching is a set of hyperedges that do not share nodes.

Time Complexity of Topological Algorithms Andrea Richa

slide-29
SLIDE 29

Linearization Framework Table of Results

Schedulers: What happens in one round?

Best Case Scheduler Algorithm chooses a matching Realistic parallelism, but centrally coordinated Randomized Scheduler Takes random maximal matching Worst Case Scheduler An adversary chooses dominating set of actions Very realistic, even if not synchronized All rules [Onus, Richa, Scheideler ’06] Fire all allowed actions; insertion is stronger than deletion Unrealistic, easy to analyze. Antichain [Critical Path, Blumofe, Leiserson ’93] For some fixed serial execution, the next antichain Established, but actually not really parallel

Time Complexity of Topological Algorithms Andrea Richa

slide-30
SLIDE 30

Linearization Framework Table of Results

Schedulers: What happens in one round?

Best Case Scheduler Algorithm chooses a matching Realistic parallelism, but centrally coordinated Randomized Scheduler Takes random maximal matching Worst Case Scheduler An adversary chooses dominating set of actions Very realistic, even if not synchronized All rules [Onus, Richa, Scheideler ’06] Fire all allowed actions; insertion is stronger than deletion Unrealistic, easy to analyze. Antichain [Critical Path, Blumofe, Leiserson ’93] For some fixed serial execution, the next antichain Established, but actually not really parallel

Time Complexity of Topological Algorithms Andrea Richa

slide-31
SLIDE 31

Linearization Framework Table of Results

Schedulers: What happens in one round?

Best Case Scheduler Algorithm chooses a matching Realistic parallelism, but centrally coordinated Randomized Scheduler Takes random maximal matching Worst Case Scheduler An adversary chooses dominating set of actions Very realistic, even if not synchronized All rules [Onus, Richa, Scheideler ’06] Fire all allowed actions; insertion is stronger than deletion Unrealistic, easy to analyze. Antichain [Critical Path, Blumofe, Leiserson ’93] For some fixed serial execution, the next antichain Established, but actually not really parallel

Time Complexity of Topological Algorithms Andrea Richa

slide-32
SLIDE 32

Linearization Framework Table of Results

Schedulers: What happens in one round?

Best Case Scheduler Algorithm chooses a matching Realistic parallelism, but centrally coordinated Randomized Scheduler Takes random maximal matching Worst Case Scheduler An adversary chooses dominating set of actions Very realistic, even if not synchronized All rules [Onus, Richa, Scheideler ’06] Fire all allowed actions; insertion is stronger than deletion Unrealistic, easy to analyze. Antichain [Critical Path, Blumofe, Leiserson ’93] For some fixed serial execution, the next antichain Established, but actually not really parallel

Time Complexity of Topological Algorithms Andrea Richa

slide-33
SLIDE 33

Linearization Framework Table of Results

Schedulers: What happens in one round?

Best Case Scheduler Algorithm chooses a matching Realistic parallelism, but centrally coordinated Randomized Scheduler Takes random maximal matching Worst Case Scheduler An adversary chooses dominating set of actions Very realistic, even if not synchronized All rules [Onus, Richa, Scheideler ’06] Fire all allowed actions; insertion is stronger than deletion Unrealistic, easy to analyze. Antichain [Critical Path, Blumofe, Leiserson ’93] For some fixed serial execution, the next antichain Established, but actually not really parallel

Time Complexity of Topological Algorithms Andrea Richa

slide-34
SLIDE 34

Linearization Framework Table of Results

Algorithm LinAll with best case scheduler

Theorem There exists a scheduler such that for any connected initial graph G0 the algorithm LinAll converges in O(n log n) steps. Proof Define potential

(i,j)∈E |j − i|

Scheduler: choose matching greedily according to potential (“longest and second longest edge on highest degree node”). One matching reduces potential by factor 1 − 1/Θ(n). Round k can happen if n3(1 − 1/cn)k ≥ n − 1; solve for k

Time Complexity of Topological Algorithms Andrea Richa

slide-35
SLIDE 35

Linearization Framework Table of Results

Summary of Linearization Results

Summary algorithm scheduler time work * * Ω(n) Ω(n) LinNgb all O(n) O(n2) LinAll best-case O(n log n) O(n2 log n) LinAll worst-case O(n2 log n) O(n3) LinAll critical-path Θ(n3) Θ(n3) LinMax worst-case Θ(n2) Θ(n2) LinMax critical-path O(n2) O(n2) Open Questions LinMax or LinAll with best-case or randomized scheduler Θ(n)?

Time Complexity of Topological Algorithms Andrea Richa

slide-36
SLIDE 36

Linearization Framework Table of Results

Experimental Results: LinAll, Randomized Scheduler

100 200 300 400 500 600 700 800 900 1000 100 200 300 400 500 600 number of rounds number of nodes 5-local 10-local 20-local Random .1 Random .2 Spiral BBG

Time Complexity of Topological Algorithms Andrea Richa

slide-37
SLIDE 37

Linearization Framework Table of Results

Experimental Results: LinMax, Randomized Scheduler

100 200 300 400 500 600 700 800 900 1000 100 200 300 400 500 600 number of rounds number of nodes 5-local 10-local 20-local Random .1 Random .2 Spiral BBG

Time Complexity of Topological Algorithms Andrea Richa

slide-38
SLIDE 38

Linearization Framework Table of Results

More future work

Can we devise local, distributed algorithms that implement (approximations of) the proposed schedulers?

Time Complexity of Topological Algorithms Andrea Richa

slide-39
SLIDE 39

Linearization Framework Table of Results

Thank you! Questions?

Time Complexity of Topological Algorithms Andrea Richa