• Keine Ergebnisse gefunden

Throughout this sheet, we will take G = (V, E) to be a directed path of length n + 1. That is, V = [n + 1], and E = {(i, i + 1) | i ∈ [n]}. The load of buffer i during round t is denoted by L

N/A
N/A
Protected

Academic year: 2021

Aktie "Throughout this sheet, we will take G = (V, E) to be a directed path of length n + 1. That is, V = [n + 1], and E = {(i, i + 1) | i ∈ [n]}. The load of buffer i during round t is denoted by L"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Homework 1

Algorithms on Directed Graphs, Winter 2018/9 Due: 11.1.2018 by 16:00

Throughout this sheet, we will take G = (V, E) to be a directed path of length n + 1. That is, V = [n + 1], and E = {(i, i + 1) | i ∈ [n]}. The load of buffer i during round t is denoted by L

t

(i). For a subset I ⊆ [n] we write L

t

(I) = P

i∈I

L

t

(t). An adversary A is a sequence a

1

, a

2

, . . . where each a

t

∈ [n] is the location of the packet injection in round t. All packets must be delivered to node n + 1.

Exercise 1. Consider the greedy forwarding algorithm: for each time t and i ∈ [n], buffer i forwards a packet if and only if L

t

(i) > 0.

(a) Prove that for any adversary A and for each round t, the total number of packets in the network satisfies L

t

([n]) ≤ n.

(b) Show that there exists an adversary A (i.e. an injection pattern) and buffer i for which L

t

(i) = n.

Hint: For part (a) argue by induction on i that the number of packets in [i]

satisfies L

t

([i]) ≤ i.

Exercise 2. Consider the following centralized for algorithm: in each round t all non-empty buffers i ≥ a

t

simultaneously forward (recall that a

t

is the location of A’s injection in round t). Prove that for all i ∈ [n] and t ∈ N we have L

t

(i) ≤ 2.

Recall the Odd-Even Downhill (OED) forwarding protocol, defined as follows: For each t ∈ N and i ∈ [n], buffer i forwards in round t if and only if one of the following conditions hold:

• L

t

(i) > L

t

(i + 1)

• L

t

(i) = L

t

(i + 1) and L

t

(i) is odd.

Exercise 3. Prove that for any adversary A, OED forwarding maintains L

t

([i]) ≤ i for all i ∈ [n] and all rounds t. In particular, the total number of packets stored in all buffers of the network is at most n.

Exercise 4. Suppose each buffer in the network is modeled as a last-in, first out (LIFO) queue (or stack). The height of a packet in a buffer is one plus the number of packets below it in the buffer. (Thus, if a buffer i with load

1

(2)

L

t

(i) forwards a packet, the unique packet at height h = L

t

(i) is the one which is forwarded.) Suppose that in some round t a packet P is at height h(t) in some buffer i. Prove that for all s ≥ t the height h(s) of P in round s satisfies

h(s) ≤

( h(t) if h(t) is even h(t) + 1 if h(t) is odd.

Hint: Note that for LIFO queues, the height of a packet P only changes when the packet is forwarded.

2

Referenzen

ÄHNLICHE DOKUMENTE

While female foreign workers denounced their ‘Aryan’ tormentors to the higher authorities for harassing them sexually, ‘Aryan’ women who had sexual or friendly relations with

merkbar. Immer wieder betonten die auslän- dischen Besucher auch, wie sehr sie es begrüßen, daß die Reste der Trakehner Zucht im Bundes- gebiet erhalten werden konnten. Colombo, der

The idea behind the algorithm FastCut(G) is to include the repetitions into the algo- rithm instead of simply repeating Karger’s Contract(G) algorithm as a whole.. This makes

However, Eroded zones of erosion are surfaces attacked by different classes and categories of erosion that are classified in accordance with appropriate methods of erosion

Die auf Grund von Naturgefahr und Standortstyp festgelegten Anforderungsprofile gelten nicht nur für einen Einzelbestand, sondern können auch auf grössere Flächen mit vergleichba-

Figg10-11: L’attuale canale alimentatore principale del cono alluvionale dell’Arroyo del Medio reincide i vecchi depositi di conoide, lasciando superfici terrazzate (anche

Si riassumo in tabella 2 i risultati delle indagini effettuate, includendo anche il valore della pendenza (i 0 ) del tratto di torrente prima della sistemazione, la larghezza media

Wie beim Steinschlag führt die Akkumulation zu einer Auflast, welche als Begleiteinwirkung zu berücksichtigen ist.. Ein dadurch behinderter Wasserabfluss führt zu einer