• Aucun résultat trouvé

TD5 ALGORES Leader Election

N/A
N/A
Protected

Academic year: 2022

Partager "TD5 ALGORES Leader Election"

Copied!
1
0
0

Texte intégral

(1)

Exercise 1: Trees

• Propose a leader election algorithm for rooted trees (the leader should be the node with the maximal identifier in the tree). Discuss the complexity of the proposed solution.

• Propose a leader election algorithm for general trees (not rooted). Discuss the complexity of the proposed solution.

Exercise 2: Rings

• Is the leader election possible on rings where all nodes have the same indentifier but one ? Justify your response.

• Assume now that two nodes have the same indentifier which is different from all the other’s identifies that are identical. Is election possible in this case ?

Exercise 3: Hirshberg-Sinclair

1. Recall the Hirshberg-Sinclair leader election algorithm.

2. Propose an execution of the algorithm for a ring of size 10 where identifiers are ordered in a decreasing order.

3. Propose an execution of the algorithm for a ring of size 10 where identifiers are ordered in an increasing order.

4. When a node decides that it lost the election ? 5. When a node decides that it is the leader ?

6. What would be complexity in number of messages of the HS algorithm.

Exercise 4: Grids

Propose a leader election algorithm for grids (mesh of size n*m). Compute the complexity of the proposed algorithm.

Exercise 5: Applications Leader Election

Assume a leader election algorithm exists. Let denote A this algorithm.

• Propose an algorithm for ring coloring using the output of A.

• Propose a naming algorithm using the output of A.

TD5 ALGORES

Leader Election

Références

Documents relatifs

The Local Minima Finding (LMF) Algorithm uses the same principle as the previously presented MinFind algorithm to determine if a node is a local minimum or not, with the exception

During this process the value of the leader (root) will be routed. If two spanning trees meet each other then the tree routing the value of the better value will continue its

One of the interesting techniques for leader election is used in the WBS (Wait Before Starting) algorithm, in which each node in the network will wait for a time corresponding to

“regarded as separate units”. This means that a composition of processes can be seen as one process only in counting the size of the network. A symmetric network is a network

Assuming no chirality, a swarm of robots is able to deterministi- cally agree on the same leader if and only if there exists a radius ρ such that W (ρ) is a 0-symmetric

Besides, the method is tailor-made for finding only the average number of rounds required by the algorithm: the second moment (and a fortiori all other moments), and the

However, we can study a variation of Franklin’s algorithm, where the survivors draw new random numbers in each round.. This is an algorithm of the type studied in Section 1, with Y

Indeed, if we start with a circular list of n + 1 numbers and eliminate the player with the largest number, then the remaining n numbers form a linear list, and the peaks in this