Wave Algorithms Flashcards

1
Q

What are the fallacies of distributed computing? (Description)

A

Assertions describing false assumptions.

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

List the 8 fallacies of distributed computing

A
  1. Network is reliable
  2. Network Latency is zero
  3. Bandwidth is infinite
  4. Network is secure
  5. Topology doesn’t change
  6. One administrator
  7. Transport cost is zero
  8. Network is homogenous
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 2 assumptions made throughout?

A
  1. System is asynchronous
  2. Process identity is unique
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A process is abstracted as a ____ of _____

A

Sequence of Events

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

If event A has precedence over event B, how do we write it?

A

a < b

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

What is a meaningless system?

A

Each process executes at least one event and no event is related to another.

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

Describe a simple wave algorithm

A

P broadcasts M; decides after every process has acknowledged M to P.

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

When is a wave algorithm centralised?

A

If there must be exactly one initiator per execution.

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

Describe a Tree Algorithm’s principles

A
  • A process waits until it receives a <tok> from all but its silent neighbour</tok>
  • The process sends a <tok> to it's silent neighbour</tok>
  • If process receives <tok> from SN, it decides.</tok>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is an echo algorithm centralised or decentralised?

A

Centralised.

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

What are the principles of an echo algorithm?

A
  • Initiator sends token to all its neighbours
  • When a non-initiator FIRST receives a token, it:
    1. Notes down token sender as father.
    2. Sends token to all neighbours except father
    3. After receiving token from all neighbours, it sends a token to father.
  • When initiator receives token from all neighbours, it decides.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly