What algorithm did Windows XP use to choose your initial user picture?

26 points by hoistbypetard


Gaelan

So to work through this, looping through some lettered items.

And so on.

Really clever!

LesleyLai

This is a good visualization of reservoir sampling: https://samwho.dev/reservoir-sampling

dpercy

In SQL you might assign each item a random value then take the top K (and it should do a constant space scan, maintaining a heap of K best elements). It seems like physically that ends up being very similar! Each new element has some chance to evict a previous element, and that gets less likely as you go (as the expected best-seen scores increase).

If they’re so similar I wonder what advantages/disadvantages each approach has.