Expected triangles among eight coin-flip links
Eight nodes sit in a network. For each pair of nodes you flip a fair coin: heads draws a link between them, tails leaves them unlinked. A triangle is a set of 3 nodes that are all pairwise linked.
On average, how many triangles appear among the 8 nodes?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Expected triangles in a random friendship networkExpected triangles among ten random collaboratorsExpected mutual-follow triangles among seven usersExpected triangles among five random teammatesHow many rising steps in a shuffled list?
All questions →