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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
Ring with vertices , simple symmetric random walk from 0. Server is last if every other server is visited before is ever reached. We want ....
Approach
For to be last, the walk must visit both of its neighbors and before . The walk reaches one of the two neighbors first, almost surely, and at that moment has not been visited. F...