Problem
Consider the flooding algorithm in an arbitrary network G = (V, E): (i) Each node acts as both a transmitter and a receiver, and (ii) Each node tries to forward every message to every one of its neighbors except the source node.
I. Formulate the algorithm in pseudo-code starting from a given node.
II. Prove that your algorithm is correct in that it terminates within finite time, and all entities will receive the information held by the initiator.
III. Determine an upper bound (formula) on the number of message transmissions required by the algorithm (Your answer should be expressed in terms of parameters: number n of vertices, number m of edges).