Which Server Receives a Gossip Token Last Around a Ring

Last updated: November 29, 2026

Quick Overview

A gossip token starts at server 0 on a ring of n servers and does a random walk, moving to each neighbor with probability 1/2 at every step. Which server is most likely to be the last one the token reaches?

Meta
Statistics & Math
Quantitative Researcher
Meta
November 29, 2026
Quantitative Researcher
Onsite
Statistics & Math
Hard

0

0

0 solved


A gossip token starts at server 0 on a ring of n servers and does a random walk, moving to each neighbor with probability 1/2 at every step. Which server is most likely to be the last one the token reaches?

A striking random walk result used in hard Meta quant-style interviews, framed around gossip protocols in distributed infrastructure. The interviewer looks for a reduction to gambler's ruin and the surprise that every other server is equally likely to be last.

What the Interviewer Expects
  • Note that to be last, server k's two neighbors must both be visited before k
  • Condition on the first time the walk reaches a neighbor of k
  • Reduce to gambler's ruin over the long arc of length n - 1
  • Get probability 1/(n-1) for every k other than 0
  • Confirm by simulation
Key Topics to Cover
Random walks
Gambler's ruin
Cover time
Symmetry
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What is the expected time to visit every server (cover time)?
  • Does the result hold on a line segment?
  • What changes with a biased walk?
  • Why does this matter for gossip-based dissemination?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Ring with vertices 0,1,…,n−10, 1, \dots, n-1, simple symmetric random walk from 0. Server k≠0k \ne 0 is last if every other server is visited before kk is ever reached. We want P(k is last)P(k \text{ is last})....

Approach

For kk to be last, the walk must visit both of its neighbors k−1k-1 and k+1k+1 before kk. The walk reaches one of the two neighbors first, almost surely, and at that moment kk has not been visited. F...


Submit Your Answer
Markdown supported