Slide 17
Slide 17 text
X
The “socks” problem
You as a student have to do the laundry, then recovert a pair of socks. The naive approach is to pull a
sock out of the clean laundry hamper, then a second sock, compare to find a match, and if it isn’t the
right one, throw that back into the laundry and pull a new sock.
With just 10 different pairs of socks, following this method will take on average 19 pulls merely to
complete the first pair, and 17 more pulls to complete the second.
In total, you can expect to go fishing in the hamper 110 times just to pair 20 socks.