Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re...
by oblio on Monday August 21, 2023 @07:50AM
(#37208222)
True, but make that valid value at least something like 1 million.
It's trivial to start with something that gets human input and someone, somewhere, decides to plug the thing into something else that generates that input.
And we all know that if computers are good at something, it's doing a lot of small things millions of times.
Of course there are valid values below that...
If they were designing to a collection size of N -> ā then they shouldn't have used Insertion Sort either then, because it is O(n²) in the worst case.