3 ms·
Yes? That is what I described - I left the swapping part as an exercise to the reader (since it is already described in the article submission). It seems to be
by Tichy 17y ago
Yes? That is what I described - I left the swapping part as an exercise to the reader (since it is already described in the article submission). It seems to be the only logical way (I have not tried to think of another way, though - but none has been mentioned yet on HN, either).
- scott_s 17y agoThey didn't "slap their name on it." Other people refer to it as their algorithm because they came up with it first. It's obvious to you that someone would want an algorithm for a random shuffle of a sequence. It wasn't obvious at the time.
- Tichy 17y agoWhat I was trying to say is that the algorithm is the obvious consequence of wanting to assign a sequence to random places in an array. I wanted it because I was programming a game. I think the same must have happened to many people. Anyway, no biggie - of course the world doesn't end because now the algorithm has a name.
- scott_s 17y agoAnd what you're missing is that they realized people might want to randomly shuffle a sequence before there was obvious applications for it.