Question: Consider a ring of n nodes numbered { 0 , 1 , dots, n - 1 } ( but they are not necessarily arranged in

Consider a ring of n nodes numbered {0,1,dots,n-1}(but they are not necessarily
arranged in that order). Each node has two binary variables: the input variable xi and
the output variable yi. Unlike the agreement problem as defined in class, the output
variable yi can be updated any number of times.
The goal is to design an algorithm for dynamic agreement, which we define as follows.
Initially, in round 0, all nodes i have their xi and yi set to 0. Only an external adversary
can update the xi values. At each round, the adversary can choose a subset of the
nodes (possibly the empty subset) and flip their xi values. A distributed algorithm that
updates the yi values according to the following rules is said to solve the (fault free)
dynamic agreement problem on a ring.
Page 2
Dynamic Agreement. If, for some nodes i and j,yiyj at some round r, then, there
must exist, a round y0=y1=y2=cdots=yn-1xic2nyiry0=y1=y2=cdots=yn-1=brEEiyi=1-br+1EEr'r-c3nr'rx0=x1=x2=cdots=xn-1=1-bc1,c2c3r',r such that y0=y1=y2=cdots=yn-1.
Dynamic Validity. If all xi have been 0(resp.,1) for some c2n consecutive rounds,
then, all yi must be0as well (resp.,1as well).
Lazy. Consider a round r such that y0=y1=y2=cdots=yn-1=bat round r, but EEi
such that yi=1-bat round r+1. Then, EEr' such that r-c3nr'r when
x0=x1=x2=cdots=xn-1=1-b.
(a) Design a distributed algorithm to solve the fault free dynamic agreement problem on
a ring with c1,c2, and c3 being reasonably small (ideally constants). Give a precise
description of your algorithm in pseudocode, a theorem statement specifying the
constants, and a proof. This algorithm must beas simple as possible.
Solution: Write your solution here.
Theorem 1. You can slate your theorem in this environment.
Lemma 1. And add any lemmas that you need.
(b) Show that the problem is impossible with two crash failures (chosenby the adver-
sary). Show a precise adversarial strategy.
Solution: write your solution here.
 Consider a ring of n nodes numbered {0,1,dots,n-1}(but they are not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!