2016/6/23Election Algorithms1 Introduction to Distributed Algorithm Part Two: Fundamental Algorithm Chapter 7- Election Algorithms Teacher: Chun-Yuan Lin.

Slides:



Advertisements
Similar presentations
Chapter 5: Tree Constructions
Advertisements

Chapter 13 Leader Election. Breaking the symmetry in system Similar to distributed mutual exclusion problems, the first process to enter the CS can be.
Distributed Algorithms – 2g1513
Leader Election Breaking the symmetry in a system.
Distributed Leader Election Algorithms in Synchronous Ring Networks
Two absolute bounds for distributed bit complexity Yefim Dinitz, Noam Solomon, 2007 Presented by: Or Peri & Maya Shuster.
Lecture 8: Asynchronous Network Algorithms
Distributed Computing 1. Lower bound for leader election on a complete graph Shmuel Zaks ©
Token-Dased DMX Algorithms n LeLann’s token ring n Suzuki-Kasami’s broadcast n Raymond’s tree.
Chapter 15 Basic Asynchronous Network Algorithms
Leader Election Let G = (V,E) define the network topology. Each process i has a variable L(i) that defines the leader.  i,j  V  i,j are non-faulty.
Distributed Computing 2. Leader Election – ring network Shmuel Zaks ©
Lecture 7: Synchronous Network Algorithms
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Minimum Spanning Trees
1 Complexity of Network Synchronization Raeda Naamnieh.
1 Distributed Computing Algorithms CSCI Distributed Computing: everything not centralized many processors.
CS 582 / CMPE 481 Distributed Systems
What we will cover…  Distributed Coordination 1-1.
CS 253: Algorithms Chapter 8 Sorting in Linear Time Credit: Dr. George Bebis.
CPSC 668Set 3: Leader Election in Rings1 CPSC 668 Distributed Algorithms and Systems Spring 2008 Prof. Jennifer Welch.
Computer Science Lecture 11, page 1 CS677: Distributed OS Last Class: Clock Synchronization Logical clocks Vector clocks Global state.
Bit Complexity of Breaking and Achieving Symmetry in Chains and Rings.
Leader Election in Rings
The Byzantine Generals Strike Again Danny Dolev. Introduction We’ll build on the LSP presentation. Prove a necessary and sufficient condition on the network.
Election Algorithms and Distributed Processing Section 6.5.
Timing-sync Protocol for Sensor Networks (TPSN) Presenter: Ke Gao Instructor: Yingshu Li.
Distributed Algorithms 2014 Igor Zarivach A Distributed Algorithm for Minimum Weight Spanning Trees By Gallager, Humblet,Spira (GHS)
Distributed Computing 5. Synchronization Shmuel Zaks ©
Lecture #12 Distributed Algorithms (I) CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
Distributed Computing 3. Leader Election – lower bound for ring networks Shmuel Zaks ©
Coordination and Agreement. Topics Distributed Mutual Exclusion Leader Election.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 February 10, 2005 Session 9.
PODC Distributed Computation of the Mode Fabian Kuhn Thomas Locher ETH Zurich, Switzerland Stefan Schmid TU Munich, Germany TexPoint fonts used in.
Teacher: Chun-Yuan Lin
1 Leader Election in Rings. 2 A Ring Network Sense of direction left right.
Leader Election. Leader Election: the idea We study Leader Election in rings.
Minimum Spanning Tree. Given a weighted graph G = (V, E), generate a spanning tree T = (V, E’) such that the sum of the weights of all the edges is minimum.
Lecture #14 Distributed Algorithms (II) CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
Leader Election (if we ignore the failure detection part)
Tree Constructions Distributed Algorithms for Multi-Agent Networks Instructor: K. Sinan YILDIRIM.
LIMITATIONS OF ALGORITHM POWER
1 Review Questions Define n variables, types of shared variables, message-passing, shared-memory system, system topology n program-counter/guarded command.
Hwajung Lee. Let G = (V,E) define the network topology. Each process i has a variable L(i) that defines the leader.   i,j  V  i,j are non-faulty ::
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Spring 2014 Prof. Jennifer Welch CSCE 668 Set 3: Leader Election in Rings 1.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
CIS 825 Review session. P1: Assume that processes are arranged in a ring topology. Consider the following modification of the Lamport’s mutual exclusion.
Minimum Spanning Tree Given a weighted graph G = (V, E), generate a spanning tree T = (V, E’) such that the sum of the weights of all the edges is minimum.
CSCI-455/552 Introduction to High Performance Computing Lecture 21.
CSE 486/586 CSE 486/586 Distributed Systems Leader Election Steve Ko Computer Sciences and Engineering University at Buffalo.
CIS 825 Lecture 8. Leader Election Aim is to elect exactly one node as the leader.
Leader Election Let G = (V,E) define the network topology. Each process i has a variable L(i) that defines the leader.  i,j  V  i,j are non-faulty ::
Coordination and Agreement
Leader Election Chapter 3 Observations Election in the Ring
CS60002: Distributed Systems
Lecture 9: Asynchronous Network Algorithms
Leader Election (if we ignore the failure detection part)
Parallel and Distributed Algorithms
CS60002: Distributed Systems
Leader Election CS60002: Distributed Systems
Outline Distributed Mutual Exclusion Introduction Performance measures
CSE 486/586 Distributed Systems Leader Election
Distributed Computing:
Lecture 8: Synchronous Network Algorithms
Corona Linearization Patrick O’Donnell.
Leader Election Ch. 3, 4.1, 15.1, 15.2 Chien-Liang Fok 4/29/2019
CS60002: Distributed Systems
Distributed Mutual eXclusion
CSE 486/586 Distributed Systems Leader Election
Presentation transcript:

2016/6/23Election Algorithms1 Introduction to Distributed Algorithm Part Two: Fundamental Algorithm Chapter 7- Election Algorithms Teacher: Chun-Yuan Lin

2016/6/23Election Algorithms2 Election Algorithms (1) In this chapter the problem of election, also called leader finding, will be discussed. The election problem was first posed by LeLann (Subsection ). The problem is to start from a configuration where all processes are in the same state, and arrive at a configuration where exactly one process is in state leader and all other processes are in the state lost. An election under the processes must be held if a centralized algorithm is to be executed and there is no a priori candidate to serve as the initiator of this algorithm.

2016/6/23Election Algorithms3 Election Algorithms (2) A large number of results about the election problem exist.

2016/6/23Election Algorithms4 Introduction (1) The process in state leader at the end of the computation is called the leader and is said to be elected by the algorithm.

2016/6/23Election Algorithms5 Introduction (2)

2016/6/23Election Algorithms6 Assumptions Made in this Chapter (1) The election problem has been studied in this chapter under assumptions that we now review

2016/6/23Election Algorithms7 Assumptions Made in this Chapter (2)

2016/6/23Election Algorithms8 Elections and Waves Election with the tree algorithm (find smallest identity) Election with the phase algorithm Election with Finn's algorithm

2016/6/23Election Algorithms9 (leave to root) (root to leave)

2016/6/23Election Algorithms10 Ring Networks (1) In this section some election algorithms for unidirectional rings are considered. The election problem was first posed for the context of ring networks by LeLann (message complexity O(N 2 ) ). This solution was improved by Chang and Roberts (worst case complexity O(N 2 ), average case complexity O(NlogN)). Hirschberg-Sinclair algorithm required channels to be bidirectional (worst case complexity O(NlogN)).

2016/6/23Election Algorithms11 Ring Networks (2) Petersen and Dolev, Klawe, and Rodeh independently proposed all O(NlogN) solution for the unidirectional ring. A worst case lower bound of 0.34N log N messages for bidirectional rings was proved by Bodlaender. Pachl, Korach, and Rotem proved lower bounds of Ω(NlogN) for the average case complexity, both for bidirectional and unidirectional rings.

2016/6/23Election Algorithms12 The Algorithms of LeLann and of Chang and Roberts (1) The Algorithms of LeLann unidirectional rings (more than one initiator) (some are not initiator) (receive all tok)

2016/6/23Election Algorithms13 The Algorithms of LeLann and of Chang and Roberts (2) The Algorithms of Chang and Roberts

2016/6/23Election Algorithms14 unidirectional rings (only pass better tok)

2016/6/23Election Algorithms15 The Peterson/Dolev-Klawe-Rodeh Algorithm

2016/6/23Election Algorithms16 unidirectional rings (until only one active) (not, send again)

2016/6/23Election Algorithms17 A Lower-bound Result (1) The result is due to Pachl, Korach, and Rotem and is obtained under the following assumptions.

2016/6/23Election Algorithms18 A Lower-bound Result (2)

2016/6/23Election Algorithms19 Arbitrary Networks

2016/6/23Election Algorithms20 Extinction and a Fast Algorithm (1)

2016/6/23Election Algorithms21 Extinction and a Fast Algorithm (2) (only one wave)

2016/6/23Election Algorithms22 The Gallager-Humblet-Spira Algorithm (1)

2016/6/23Election Algorithms23 The Gallager-Humblet-Spira Algorithm (2)

2016/6/23Election Algorithms24 Global Description of the GHS Algorithm (1)

2016/6/23Election Algorithms25 Global Description of the GHS Algorithm (2)

2016/6/23Election Algorithms26 Global Description of the GHS Algorithm (3)

2016/6/23Election Algorithms27 Detailed Description of the GHS Algorithm (1)

2016/6/23Election Algorithms28 Detailed Description of the GHS Algorithm (2)

2016/6/23Election Algorithms29 Detailed Description of the GHS Algorithm (3)

2016/6/23Election Algorithms30 The Korach-Kutten-Nloran Algorithm

2016/6/23Election Algorithms31

2016/6/23Election Algorithms32 Applications of the KKM Algorithm