• Keine Ergebnisse gefunden

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

N/A
N/A
Protected

Academic year: 2021

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

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.

Please hand in your solutions by sending them to Ben at bwiederh@mpi-inf.mpg.de or directly in the lecture. Do not send them to the public mailing list.

The due date is listed on the website. Due time is the start of the next lecture.

Exercise 2: Flirting with Synchrony and Asynchrony

Task 1: Growing Balls

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.

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 k ∈ {1, . . . , dlog ne}, determine an appropriate choice ρ(k), 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 potential causality, 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

☛ As long as you are a minor (less than 18 years old) and have an Aufenthaltserlaubnis acording to the new residence right regulations (§ 25a Aufenthaltsgesetz), your parents and

aU bie an if)r ©ebnrtäljauS. So fear ed möglid), bafc in fpäterer $eit, alö Sacob ®rimm in ben Sagen feinet Sllterä öon §anau aus nadj feinem ©eburtäfjaufe gefragt tturbe, er

(4) wenn Sie Widerspruch gegen die Verarbeitung gemäß Art. 1 DSGVO eingelegt haben und noch nicht feststeht, ob die berechtigten Gründe des Verant-

Sie bestätigen, diese Vereinbarung gelesen zu haben und allen ihren Bedingungen zuzustimmen. Mit der Nutzung der mobilen Anwendung oder ihrer Dienste stimmen Sie der Vereinbarung

Bach, Carl Philipp Emanuel C Bach, Johann Christoph C Bach, Johann Sebastian B Bach, Wilhelm Friedemann C. Balakirev, Mily

Anhand von Hörverstehensübungen lernen Ihre Schüler, sich richtig am Telefon zu melden, Informationen zu erfragen, eine Nachricht zu hinterlassen sowie Namen und Telefonnummer

[r]

Hier sieht Ian Mulvany das große Problem, dass diese Daten eigentlich verloren sind für die Forschung und für die Community, wenn der Wissenschaftler die