Quantcast
Channel: Theory
Viewing all articles
Browse latest Browse all 98

How Not To Shuffle - The Knuth Fisher-Yates Algorithm

$
0
0

Sometimes simple algorithms are just wrong. In this case shuffling an array looks like a foolproof task, but the obvious doesn't always work and the correct algorithm is just a tiny change away. Find out about why it doesn't work and the correct way to shuffle.


Viewing all articles
Browse latest Browse all 98

Trending Articles