(20 points) Both parts of this problem deal with applying the ECHO distributed algorithm to the network below. Note that any terminating execution of this algorithm will result in the sending of 14 messages -- 2 per edge. Also, recall that any terminating execution of this algorithm constructs a spanning tree for the graph that underlies the network.
0---1---2
| | |
3---4---5
- Show that the spanning tree below may be constructed by the algorithm, if vertex 0 is the initiator. Specifically, give an order of the 14 messages such that sending of the messages in the given order will guarantee that the spanning tree below will be constructed.
0---1---2
|
3---4---5
- Show that any spanning tree for the network may be constructed, if vertex 0 is the initiator. Specifically, show that for any spanning tree, there is an order of the 14 messages such that sending of the messages in the given order will guarantee that the spanning tree will be constructed. Half credit will be given for specifying a correct order (of all 14 messages); for the other half you will need to say why the order will yield the specified spanning tree.