4 ms·
This is a really good point. I was assuming that the sort was actually a partial sort - returning the top "x" (admittedly - even then isn't linear). However, I
by jwilliams 18y ago
This is a really good point.
I was assuming that the sort was actually a partial sort - returning the top "x" (admittedly - even then isn't linear). However, I was also assuming (n << x), which would almost certainly be the case with a large data set. It's a fairly common approach, but not sure why I automatically assumed it.
If the sort is complete, then yeah, that changes things.