Upper Bound on the Complexity of Solving Renaming Ami Paz, Technion - - PowerPoint PPT Presentation

upper bound on the complexity of
SMART_READER_LITE
LIVE PREVIEW

Upper Bound on the Complexity of Solving Renaming Ami Paz, Technion - - PowerPoint PPT Presentation

Upper Bound on the Complexity of Solving Renaming Ami Paz, Technion Joint work with: Hagit Attiya, Technion Armando Castaeda, Technion Maurice Herlihy, Brown PODC 2013 Best Student Paper Award Introduction 2 The Model ... p 1 p 2 p 3 p n


slide-1
SLIDE 1

Ami Paz, Technion

Upper Bound on the Complexity of Solving Renaming

Joint work with: Hagit Attiya, Technion Armando Castañeda, Technion Maurice Herlihy, Brown

PODC 2013 Best Student Paper Award

slide-2
SLIDE 2

Introduction

2

slide-3
SLIDE 3

The Model

3

 n asynchronous processes.  At most n–1 processes can crash.  Wait-free algorithms: each nonfaulty process produces an output.  Full information.

Atomic Read/Write

...

p1 p2 p3 pn

slide-4
SLIDE 4

Iterated Atomic Snapshot

4

 Execution induced by a sequence of blocks:

 Write together;  Read together.

 Fresh copy of the memory every time.  Implemented in 𝑃 𝑜2 overhead [Borowsky and Gafni 97].

slide-5
SLIDE 5

Comparison Based Algorithms

5

 Processes only compare their identifiers.  Execution by P1, P2, P3 looks like execution by P1, P2, P4 .

p3 p1 p1 p2 p3 p1 p1 p2 p4 p4

slide-6
SLIDE 6

M-Renaming

6

[Attiya et al. 90]

n processes

With identifiers Outputs: 1,…,M Unique values

5 8 2

Processes are only allowed to compare their identifiers

slide-7
SLIDE 7

Weak Symmetry Breaking (WSB)

7

[Gafni et al. 06]

n processes

With identifiers Outputs: 0/1 If all output: not all the same

1 1

Processes are only allowed to compare their identifiers

slide-8
SLIDE 8

M-Renaming Bounds

8

1,...,n n+1,...,2n-2 M: 2n-1,...

[Attiya et al. 90] [Attiya et al. 90] Several Papers

1,...,n n+1,...,2n-2 2n-1,...

WSB WSB

slide-9
SLIDE 9

M-Renaming Bounds

9

1,...,n n+1,... M: 2n-1,... 2n-2

Prime Power Non Prime Power

?

WSB

1,...,n n+1,... 2n-1,... 2n-2

WSB

[Castañeda and Rajsbaum 10]: Lower bounds are wrong.

n

slide-10
SLIDE 10

Renaming Bounds

10

[Castañeda and Rajsbaum 10]: Lower bounds are wrong.

 Existential proof.  No bounds on steps complexity.

slide-11
SLIDE 11

Our Results

11

 n-process algorithm for WSB and (2𝑜 − 2)-renaming,

when n is not a prime power.

 Bounded step complexity: 𝑃(𝑜𝑟+5),

where q is the largest prime power dividing n.

slide-12
SLIDE 12

Topology & Distributed Computing

12

slide-13
SLIDE 13

Simplexes

13

 Sets of objects.  Represented as convex hulls of points.

𝑦 𝑦, 𝑧 𝑦, 𝑧, 𝑨 𝑦, 𝑧, 𝑨, 𝑥

slide-14
SLIDE 14

Simplicial Complexes

14

 “Gluings” of simplexes.  Some complexes are called subdivisions of others.

slide-15
SLIDE 15

Topology & Distributed Computing

15

[Borowsky and Gafni 93]; [Herlihy and Shavit 93,99]; [Saks and Zaharoglou 93,00]; [Herlihy and Rajsbaum 94,00].

 Simplicial complexes represent states of the system.

y z x a z x

slide-16
SLIDE 16

Topology & Distributed Computing

16

[Borowsky and Gafni 93]; [Herlihy and Shavit 93,99]; [Saks and Zaharoglou 93,00]; [Herlihy and Rajsbaum 94,00].

 Simplicial complexes represent states of the system.  Colored.

(x, y, z) (x, a, z)

slide-17
SLIDE 17

Topology & Distributed Computing

17

 An execution.

x x,y x,y x,y

slide-18
SLIDE 18

Topology & Distributed Computing

18

 An execution.  All 1-step interleaving.

x x,y x,y x,y x,y y x x,y x,y y

slide-19
SLIDE 19

Subdivision Implies Algorithm

19

 Simplicial approximation: processes converge on a simplex.

slide-20
SLIDE 20

Subdivision Implies Algorithm

20

 Execution:

slide-21
SLIDE 21

Subdivision Implies Algorithm

21

 Execution:

slide-22
SLIDE 22

Subdivision Implies Algorithm

22

 Execution:

slide-23
SLIDE 23

Subdivision Implies Algorithm

23

 Execution:

slide-24
SLIDE 24

Subdivision Implies Algorithm

24

 Execution:

slide-25
SLIDE 25

Subdivision Implies Algorithm

25

 Execution:

slide-26
SLIDE 26

Outputs

26

 Each vertex has double coloring:

 Process id  Output value

slide-27
SLIDE 27

Subdivision Implies Algorithm

27

 Simplicial approximation

1 1 1 1 1

slide-28
SLIDE 28

Chromatic Subdivisions

28

 Chromatic subdivision: can assign a process to each vertex.  An algorithm is induced by a specific subdivision:

 Standard chromatic subdivision.

Simplex S Standard Subdivision Std(S) Second subdivision: Std2(S) StdK(S)

...

slide-29
SLIDE 29

Topological Notions

29

 Simplicial complex  Subdivision  Chromatic Subdivision  Standard chromatic Subdivision

slide-30
SLIDE 30

Topology & Distributed Computing

30

Chromatic Subdivision Distributed Algorithm

slide-31
SLIDE 31

From Subdivision to Algorithm

31

Chromatic Subdivision Standard Chromatic Subdivision Distributed Algorithm

simulated ← 0 Write(initialStatei) to Ri while true do r ← Scan (R0,...,Rn−1) if r contains all then return simulated simulated ← 1 Execute Local A (r) if A returns v then return the same value v Write ( r) to R …

slide-32
SLIDE 32

Colored Simplicial Approximation

32

[Herlihy and Shavit 99]

 Colored simplicial approximation theorem:

any chromatic subdivided simplex can be “approximated” by a standard chromatic subdivision stdK(S)…

 …for large enough K.

 Yields no bound on K.

Chromatic Subdivision Standard Chromatic Subdivision

slide-33
SLIDE 33

Subdivision Implies Algorithm

33

 We count subdivisions, to get the step complexity.

Standard Chromatic Subdivision Distributed Algorithm

slide-34
SLIDE 34

Solving WSB

Properties of the desired solution

34

slide-35
SLIDE 35

Recall: WSB

35

[Gafni et al. 06]

n Processes

With identifiers Outputs: 0/1 If all output: not all the same

1 1

Processes are only allowed to compare their identifiers

slide-36
SLIDE 36

Binary Outputs

36

 All output values are binary.

1 1 1 1 1 1

slide-37
SLIDE 37

Monochromatic Simplexes

37

 Represent executions

with a single

  • utput.

 Forbidden!

slide-38
SLIDE 38

Comparison Based Algorithms

38

 Processes only compare their values.  Execution by P1, P2, P3 looks like execution by P1, P2, P4 .  Topology: implies symmetry on the boundary.

p3 p1 p1 p2 p3 p1 p1 p2 p4 p4

slide-39
SLIDE 39

Who is Bigger?

39

slide-40
SLIDE 40

Symmetric Output Coloring

40

slide-41
SLIDE 41

Three Steps to Solution

41

slide-42
SLIDE 42

Our Goal

42

Construct a subdivided simplex & coloring, s.t.:

 Symmetric coloring on the boundry.  Without monochromatic simplexes.  Standerd chromatic subdivision.

slide-43
SLIDE 43

Three Step Plan

43

 Step 1: find a symmetric subdivision

with only good monochromatic simplexes.

 Step 2: eliminate mono. simplexes,

while preserving symmetry.

 Step 3: get a mapping from standard subdivision,

yielding a WSB coloring and algorithm.

slide-44
SLIDE 44

Step One: Symmetric Boundary

44

slide-45
SLIDE 45

 Start by creating a symmetric boundary.  Each i-face is subdivided and colored:  Create 𝑙𝑗 0-mono. simplexes,

for some integer 𝑙𝑗.

 Number of i-faces = 𝑜

𝑗 .

  • 1. Create Boundary

45

slide-46
SLIDE 46

 Add internal 0-mono. simplex.  More 0-mono. simplexes are created.  Total number of mono.:

1 + 𝑜 𝑗 𝑙𝑗

𝑜−1 𝑗=1

  • 1. Fill in the Interior

46

slide-47
SLIDE 47

 Each 𝑙𝑗 has a sign.  We want:

1 + 𝑜 𝑗 𝑙𝑗 = 0

𝑜−1 𝑗=1

  • 1. Counting Mono. Simplexes

47

slide-48
SLIDE 48

 We want: 1 + 𝑜

𝑗 𝑙𝑗 = 0.

 Subdivide boundaries simultaneously.  𝑃(1) subdivisions.

  • 1. Creating the Boundary

48

slide-49
SLIDE 49

Step Two: Eliminating Mono. Simplexes

49

slide-50
SLIDE 50

Eliminating Monochromatic Simplexes

50

 Use subdivisions to eliminate monochromatic simplexes.  While preserving symmetry on the boundary.

 Adjacent case.

slide-51
SLIDE 51

Eliminating Monochromatic Simplexes

51

 Use subdivisions to eliminate monochromatic simplexes.

 Non Adjacent case.

slide-52
SLIDE 52

Eliminating Monochromatic Simplexes

52

 We can use subdivisions to eliminate monochromatic

simplexes.

 Similar constructions

for longer paths.

 𝑃(ℓ) subdivisions

for ℓ-length path.

slide-53
SLIDE 53

Odd Paths

53

 Eliminate odd length paths?

 Impossible!

 We can eliminate only simplexes

  • f even distance.
slide-54
SLIDE 54

Signs

54

 Give each maximal simplex a sign.  Can eliminate only opposite signs.  Count monochromatic simplexes

by their sign.

 This is an invariant.

slide-55
SLIDE 55
  • 2. Create Path

55

 Choose mono. simplexes of opposite signs.  Find a connecting path.

slide-56
SLIDE 56
  • 2. Eliminate

56

 Choose mono. simplexes of opposite signs.  Find a connecting path  Eliminate.

slide-57
SLIDE 57
  • 2. Longer Paths

57

 Path between simplexes of opposite signs.  The longer the path, more subdivisions are needed.

slide-58
SLIDE 58
  • 2. Longer Paths

58

 Path between simplexes of opposite signs.  The longer the path, more subdivisions are needed.  Solution:

 Break into short paths.  Many n-length paths, subdivided simultaneously in 𝑃 𝑜 .

slide-59
SLIDE 59
  • 2. Eliminate Paths

59

 Match all simplexes in pairs.  Eliminate pairs.  Cannot be done simultaneously.

slide-60
SLIDE 60
  • 2. Number of paths

60

 Number of paths:

 Half the number of mono. simplexes:

1 2 1 + 𝑜 𝑗 𝑙𝑗

𝑜−1 𝑗=1

∈ 𝑃 𝑜𝑟+2

 q is the largest prime power

dividing n.

slide-61
SLIDE 61
  • 2. Number of Subdivisions

61

 The “expensive” part:

 A simplex shared by many paths

is subdivided many times.  𝑃 𝑜𝑟+3 subdivisions.

slide-62
SLIDE 62

Step Three: The Output Map

62

slide-63
SLIDE 63

Cone Subdivision

63

Simplex S Second cone subdivision L-cone subdivision ... Cone subdivision

slide-64
SLIDE 64

Cone Subdivision

64

Simplex S Cone subdivision Second cone subdivision L-cone subdivision ...

slide-65
SLIDE 65

Constructing Subdivisions

65

  • 1. Pick simplexes and an integer L.
  • 2. L-cone (in parallel) these simplexes.
  • 3. Extend to all simplexes.
slide-66
SLIDE 66
  • 3. Cone Subdivisions

66

 We use cone subdivisions.  How to derive an algorithm?

simulated ← 0 Write(initialStatei) to Ri while true do r ← Scan (R0,...,Rn−1) if r contains all then return simulated simulated ← 1 Execute Local A (r) if A returns v then return the same value v Write ( r) to R …

?

slide-67
SLIDE 67

Cone Subdivisions

67

 Use cone subdivisions,

than map standard subdivision to them.

 Without using simplicial approximation!

slide-68
SLIDE 68
  • 3. Mapping

68

 Solution:

 Map standard chromatic subdivisions to cone subdivisions.  “Pull back” coloring accordingly.

slide-69
SLIDE 69
  • 3. Mapping

69

 Properties:

 Map simplexes to simplexes.  Preserve process identifiers.  Preserve the structure of the subdivision.

slide-70
SLIDE 70
  • 3. Mapping

70

 From a standard chromatic subdivision,

we derive an algorithm.

simulated ← 0 Write(initialStatei) to Ri while true do r ← Scan (R0,...,Rn−1) if r contains all then return simulated simulated ← 1 Execute Local A (r) if A returns v then return the same value v Write ( r) to R …

slide-71
SLIDE 71

Wrap Up

71

 Step 1: symmetric subdivision,

with 0 mono. simplexes by sign.

 𝑃(1) subdivisions.

 Step 2: eliminate mono. simplexes,

while preserving symmetry.

 𝑃(𝑜𝑟+3) subdivisions.

 Step 3: mapping from standard subdivision.

 No subdivisions.

slide-72
SLIDE 72

Main Results

72

 Upper bound on the complexity

  • f solving WSB and (2n-2)-renaming.

 Not just existence.

 Explicit mapping of standard chromatic subdivision

to cone subdivision.

 “We do not discuss Lebesgue numbers in a polite company”

[M. P . Herlihy].

 Improved path-elimination procedure.

 Do not depend on the length of the path.

slide-73
SLIDE 73

Open Questions

73

 Non-intersecting matching paths.  Intuitive WSB algorithm.  (2n-3)-renaming and below.  Colored computability theorem with bounds.

?

M: 2n-1,... n-Non

Prime Power

1,...,n n+1,...,2n-3 2n-1,... 2n-2

WSB

simulated ← 0 Write(initialStatei) to Ri while true do r ← Scan (R0,...,Rn−1) if r contains all then return simulated simulated ← 1 Execute Local A (r) if A returns v then return the same value v Write ( r) to R …