Assume the processes in the networks depicted in Figure 6.21 have unique identities and each process has an integer input. Simulate on both networks a computation of the phase algorithm, computing the set $S=$ $\left\{\left(p, j_p\right): p \in \mathbb{P}\right\}$ and the sum over the inputs.