Download presentation
Presentation is loading. Please wait.
Published byFelicity Blake Modified over 9 years ago
1
Distributed Computing 3. Leader Election – lower bound for ring networks Shmuel Zaks zaks@cs.technion.ac.il ©
2
Theorem: For every algorithm A for maximum finding in unidirectional rings, and every set I of n identities, PKR
3
Unidirectional ring Same messages in every execution
4
1 3 5 4 ring (4, 1, 3, 5 ) (1, 3, 5, 4 ) (3, 5, 4, 1 ) (5, 4, 1, 3 )
5
messages (4 ) (4,1 ) (4, 1, 3 ) 1 3 5 4
6
Sequence Prefix of a sequence Concatenation of sequences subsequence of if s.t. C(S) = all cyclic permutations of S |C(s)| = length (s)
7
{ (4, 1, 3, 5 ), (1, 3, 5, 4 ), (3, 5, 4, 1 ), (5, 4, 1, 3 ) } s = (4, 1, 3, 5 ) C(s) = length (s) = 4 (4,1,3) is a prefix of s (1,3) is a subsequence of s 1 3 5 4
8
In every execution of a maximum finding algorithm A, at least one processor must see its own value In a ring labeled s, at least one message in C(s) is sent by A (4 ) (4,1 ) (4,1,3 ) 1 3 5 4 (4,1,3,5 )
9
– set of all finite sequences of distinct integers For
10
E does not have to be a finite set. Note: though we wrote Why?
11
s = (4, 1, 3, 5 ) 1 3 5 4 E={(4,5),(3,5),(5,4,1),(3),(6,2),(5,4) } N(s,E) = 4 N 1 (s,E) = 1 N 2 (s,E) = 2 N 3 (s,E) = 1 N k (s,E) = 0 for k ≥ 4
12
Definition: A setis exhaustive if it has the following two properties: Prefix property: if then for every prefix s of u. Cyclic permutation property:
13
is exhaustive: Prefix property: if then for every prefix s of u. Cyclic permutation property: Example: the set
14
1 3 5 4 E contains also the following: (4), (4,1),(4,1,3), (1), (3), (5),(5,4),(5,4,1),(5,4,1,3) E is the set of messages sent by the Chang & Roberts’ algorithm!
15
Lemma: Let such that is a prefix of and, and let A be a maximum finding algorithm. If in the execution of A on ring a message is sent, then in the execution of A on ring a message is sent. st u u
16
Theorem: For every maximum finding algorithm A for unidirectional rings, there exists an exhaustive set E(A), such that, for every ring s, A sends at least N(s,E(A)) messages on s. Proof: Let
17
1. E(A) is exhaustive 1a. Prefix property
18
1. E(A) is exhaustive 1b. Cyclic permutation property
19
2. At least N(s,E(A)) messages sent by A on s
21
Theorem: For every maximum finding algorithm A for unidirectional rings, and a set of n identities I, we have:
24
Theorem: In a unidirectional ring whose size n is unknown, the Chang & Roberts algorithm has an optimal message complexity of Exercise: What if n is known? What if synchronous?
25
References J. E. Burns, A formal model for message passing systems, TR-91, Indiana University, September 1980.
26
References E. Chang and R. Roberts, An improved algorithm for decentralized extrema-finding in circular configurations of processes, Communications of the ACM}, 22, 5, 1979, pp. 281-283.
27
References J. Pachl, E. Korach and D. Rotem Lower bounds for distributed maximum- finding algorithm. Journal of Association for Computing Machinery, Vol. 31, No. 4, Oct. 1984, pp. 905-918
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.