Re:FreeBSD spends 7% of its boot time running a bubblesort o...
by CaptainNegative on Friday May 19, 2023 @12:05PM
(#36003537)
Not to mention that QuickSort isn't a single algorithm but rather a class of algorithms (as the choice of pivot is left unspecified), and there are methods to choose the pivot that give O(n log n) worst case or O(n log n) expected running time (e.g. median of medians or soft heaps for the former, random choice for the latter).
[ Parent
| on HN ]
There are no comments on this comment yet.