Week 5 - Leader Election Flashcards

1
Q

Synchronous Network Model

A

A representation of a network as directed graph with a fixed message alphabet M. Where each node is the graph represents a process. Edges represent channels, that are capable of holding at most a single message for each direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In the synchronous network model, what does each process consist of?

A

Set of states
Set of start states
Message generation function
State transition function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the LCR leader election algorithm?

A

Each process sends its identifier around the ring. When a process receives an identifier:
- if it is greater than its own it passes it on
- if it is less than its own it discards it
- if it is equal to its own it declares itself the leader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the HS leader election algorithm?

A

Each process operates in phases 0, 1, 2… In each phase, l, each process sends out tokens containing its identifier in each direction. They are intended to travel 2^l before returning to their origin. When a process receives an identifier:
- if it is less than its own it discards it
- if is greater than its own it relays it
- if is is the same, then it elects itself the leader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the TimeSlice leader election algorithm?

A

Runs in phases 1, 2, 3… In phase v only identifier v is allowed to circulate. if process i with identifier v exists and round (v-1)n+1 is reached without having previously received
a non-null message, process i elects itself and sends its identifier around the ring.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the communication complexity of leader election algorithms that only permit comparisons between identifiers bounded by?

A

Ω(n logn)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the leader election problem?

A

The leader election problem is for each process in a network to eventually decide whether it is a leader or not, subject to the constraint that exactly one processor decides that it is the leader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly