• partial_sort(), based historically on heapsort. Thus, it guarantees n∗log(n) complexity in any case. However, in most circumstances, heapsort is slower than quicksort by a factor of two to five. So, if sort() is implemented as quicksort and partial_sort() is implemented
1 See Section 2.2, page 10, for an introduction to and a discussion of complexity.