Part a
When agent \(x\) gets a message from agent \(y\) then which of the following is TruePart b
When agent \(x\) gets a message from agent \(y\) then what action does \(x\) take if \(x.parent = null\)?Part c
When agent \(x\) gets a message from agent \(y\) then what action does \(x\) take if \(x.parent \neq null\)?Part d
Ifx.num_unacked = 0
then which of the following is
True?
Part e
True or False?If \(x.parent = y\), then \(x\) has received more messages from \(y\) than \(x\) has sent acks to \(y\).
Part f
True or False?If \(x.parent = y\), and \(w\) is different from \(x\) and \(y\), then \(x\) has received more messages from \(w\) than \(x\) has sent acks to \(w\).
Part a
When agent \(x\) gets a message from agent \(y\) then which of the following is TruePart a: Answer
At that point agent \(y\) is on the tree, i.e., \(y.parent \neq null\).This is because if there is a message in an outgoing channel from \(y\) then \(y\) is on the tree.
Part b
When agent \(x\) gets a message from agent \(y\) then what action does \(x\) take if \(x.parent = null\)?Part b: Answer
Agent \(x\) sets \(x.parent = y\) and does not (immediately) send an ack to \(y\) for that message.Part c
When agent \(x\) gets a message from agent \(y\) then what action does \(x\) take if \(x.parent \neq null\)?Part c: Answer
Agent \(x\) sends an ack to \(y\) and leaves \(x.parent\) unchanged.Part d
Ifx.num_unacked = 0
then which of the following is
True?
Part d: Answer
All are True.Part e
True or False?If \(x.parent = y\), then \(x\) has received more messages from \(y\) than \(x\) has sent acks to \(y\).
Part e: Answer
True.\(x\) has received one more message than it has acknowledged.
Part f
True or False?If \(x.parent = y\), and \(w\) is different from \(x\) and \(y\), then \(x\) has received more messages from \(w\) than \(x\) has sent acks to \(w\).
Part f: Answer
False.\(x\) immediately acknowledges messages from agents other than its predecessors.
K. Mani Chandy, Emeritus Simon Ramo Professor, California Institute of Technology