The Noodle Connection Puzzle: Expected Number of Loops
The Setup
You start with 100 noodles, each with 2 loose ends—so a total of 200 ends.
You then repeatedly grab two free ends at random and tie them together. You do this blindly and continue until no free ends remain. By the end, you’ll have formed several closed loops of various lengths.
The Question
What is the expected number of loops you’ll have when all 200 ends have been tied?
Key Insight: Random Pairings and Cycles
This problem is equivalent to the problem of forming a random pairing of 200 elements (the ends). Each such pairing corresponds to a decomposition of a set of 100 edges (or 200 nodes) into disjoint cycles.
Each tied pair reduces the number of free ends by 2, and eventually all 200 ends are paired.
This process results in a random pairing of the 200 endpoints into 100 edges, and the resulting structure can be seen as a collection of cycles (loops of connected noodle segments).
Known Result
This is a classic result in combinatorics: the expected number of loops (cycles) formed when randomly pairing 2n endpoints is:
For , the expected number of loops is:
But this is only approximate. The exact expression is:
Final Answer
So on average, you will end up with about 5.88 loops after all the ends are tied.