• Keine Ergebnisse gefunden

Exercises marked with a star are not mandatory and solutions to them will not be discussed in the tutorials.

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercises marked with a star are not mandatory and solutions to them will not be discussed in the tutorials."

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

If you have questions regarding the exercises, please ask them on the mailing list.

Follow the hand-in instructions listed on the course website.

Exercises marked with a star are not mandatory and solutions to them will not be discussed in the tutorials.

Exercise 2: Flirting with Synchrony and Asynchrony

Task 1: Growing Balls

In this exercise, we will see how a crucial step of the γ-synchronizer works; specifically, that a desirable partition of the nodes exists.

Denote by B(v, r) the ball of radius r around v, i.e., B(v, r) = {u ∈ V : dist(u, v) ≤ r}. Consider the following partitioning algorithm. Note the difference between intercluster edges and intracluster edges.

Algorithm 1 Cluster construction. ρ ≥ 2 is a given parameter.

1:

while there are unprocessed nodes do

2:

select an arbitrary unprocessed node v;

3:

r := 0;

4:

while |B(v, r + 1)| > ρ|B(v, r)| do

5:

r := r + 1

6:

end while

7:

makeCluster(B(v, r)) // all nodes in B(v, r) are now processed

8:

remove all cluster nodes from the current graph

9:

end while

10:

select intercluster edges

a) Show that Algorithm 1 constructs clusters of radius at most log

ρ

n.

b) Show that Algorithm 1 produces at most ρn intercluster edges.

c) For given cluster radius k ∈ {1, . . . , blog nc}, determine an appropriate choice ρ(k) ≥ 2, proving the precondition of Corollary 2.14!

Hint: As a short-hand, we often don’t write out common terms like n that are assumed to be globally known. Specifically, ρ(k) may also depend on n, as if we had written ρ(k, n). If in doubt, then we weren’t clear enough, so tell us!

Task 2: Showing Dijkstra, and Bellman & Ford the Ropes

a) Show that if the asynchronous Bellman-Ford algorithm from the lecture is executed synchronously, it sends only O(|E|) messages.

b) Use this to construct an asynchronous BFS tree construction algorithm of time com- plexity O(D) that uses O(|E|D) messages and terminates. You may assume that D is known here.

c) Can you give an asynchronous Bellman-Ford-based algorithm that sends O(|E|+nD) messages and runs for O(D

2

) rounds?

Hint: Either answer is feasible, provided it is backed up by appropriate reasoning!

(2)

Task 3*: Liaison with Leslie Lamport

a) Look up what the happened-before relation, Lamport clocks, and vector clocks are.

b) Contemplate their relation to synchronizers and what you’ve learned in the lecture.

c) Discuss your findings in the exercise session!

Referenzen

ÄHNLICHE DOKUMENTE

a certain graph, is shown, and he wants to understand what it means — this corre- sponds to reception, though it involves the understanding of a non-linguistic sign;

Our quantitative findings suggest that migrants prefer a remittance to arrive as cash than as groceries when stakes are high ($400), but not when they are low ($200).. This result

2 In particular we do not allow that all voters cast abstain/negative votes for all candidates. With this requirement we avoid stating that all candidates must be elected in case

This exercise sheet aims to assess your progress and to explicitly work out more details of some of the results proposed in the previous lectures. Then (A/I, q) is a Banach algebra

A deoxyribodipyrimidine photolyase family protein 559 showed highest induction in both origins after the 2 °C UVR treatment, 560 X-ray repair cross-complementing protein 6

I will suggest that such structural peculiarities correspond with a fundamental semantic-pragmatic distinction (Stassen 1997:100ff.): The MC" -type equation serves the

[r]

To match the market stochasticity we introduce the new market-based price probability measure entirely determined by probabilities of random market time-series of the