Comment by boothby
6 months ago
It's funny because the opposite is often true as well: if you're having trouble solving a problem quickly, randomize the data and try again.
6 months ago
It's funny because the opposite is often true as well: if you're having trouble solving a problem quickly, randomize the data and try again.
Sometimes these are even the same approach: https://en.wikipedia.org/wiki/Bogosort
Well, even PDQ as one of those new sorting algorithms is a fancy randomized quick sort. I'd say these go well together.