in reply to RE (tilly) 3: Fisher-Yates Shuffle
in thread Fisher-Yates Shuffle
:-(
I may be good at math, but I have not been doing math for a number of years, and after a while you start to get stupid. Like I was above.
Everything that I said is true, except that the average number of collisions is actually 1/n + 1/n + ... + 1/n, and not 1+1/2+1/3+...+1/n.
Rather important detail that. :-(
So read the math, it is kind of fun except for that rather basic mistake. Then go looking up the hat-check problem.
(/me feels like an idiot...)
Which makes that branch make even less sense incidentally.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Silly Tilly :-(
by tilly (Archbishop) on Aug 30, 2000 at 14:45 UTC | |
by Adam (Vicar) on Aug 30, 2000 at 20:45 UTC | |
by tilly (Archbishop) on Aug 30, 2000 at 21:09 UTC |