Note on Gossiping on Star Graphs

Note on Gossiping on Star Graphs

A star graph is among the worst possible configurations for gossip. Assume an nn node star graph with the central node as the update origin. With jโˆˆ[1,n)j \in \Big[1, n) nodes updated, the probability the central node gossips to a non-updated node is (nโˆ’j)/n(n - j)/n.

๐€๐ฎ๐ญ๐ก๐จ๐ซโ€™๐ฌ ๐๐จ๐ญ๐ž!\textbf{Author's Note!} โ€” This is a follow up to my 3B1B Summer of Math submission. You can read that in full here.

If youโ€™ve taken a course on probability, you may have noticed a resembelence to the coupon collectorโ€™s problem. The expected number of rounds to complete the gossip process (Rg)\Big(R_g) is ๐‘’๐‘ฅ๐‘Ž๐‘๐‘ก๐‘™๐‘ฆ ๐‘กh๐‘’ ๐‘ ๐‘Ž๐‘š๐‘’\textit{exactly the same} as the solution to this well-studied problem:

E(Rg)=nHn=nโˆ‘k=1n1kโ‰ˆn(log(n)+0.5772+1/2n) E\Big(R_g) = nH_n = n\sum_{k=1}^{n}\frac{1}{k} \approx n \Big(\log\Big(n) + 0.5772 + 1/2n)

The expectation of RgR_g doesnโ€™t give any insight into the worst-case performance of the algorithm. Instead, we can approximate the right tail of the distribution by studying a single peripheral nodeโ€™s state after tt rounds.

๐‘ƒ๐‘Ÿ(๐‘›๐‘œ๐‘ก ๐‘ข๐‘๐‘‘๐‘Ž๐‘ก๐‘’๐‘‘)=(1โˆ’1/n)tโ‰คeโˆ’t/n๐‘ข๐‘ ๐‘’ ๐‘“๐‘Ž๐‘๐‘ก: (1โˆ’1/n)kโ‰คeโˆ’k/n=eโˆ’(nlog(n)+cn)/nset: t=nlog(n)+cn=1/nec\begin{equation} \begin{align} \textit{Pr}(\textit{not updated}) & = & (1 - 1/n)^t \\ & \leq & e^{-t/n} \quad & \textit{use fact: } \big(1 - 1/n)^k \leq e^{-k/n} \\ & = & e^{-(n\log\Big(n) + cn)/n} \ \qquad & \text{set: } t = n\log\Big(n) + cn \\ & = & 1/ne^{c} \end{align} \end{equation}

For a single node, the probability it has not been updated by the central node in nlog(n)+cnn\log\Big(n) + cn rounds is 1/nec1/ne^{c}. Finally, we union bound over all nโˆ’1n-1 peripheral nodes and find the probability that Rgโ‰ฅnlog(n)+cnโ‰ˆn/neโˆ’c=eโˆ’cR_g \geq n\log\Big(n) + cn \approx n/ne^{-c} = e^{-c}.