3 ms·
I've never seen a reference text that considers the comparator part of the sorting algorithm. Timsort, quicksort, mergesort, introsort, smoothsort, etc. don't
by KMag 8y ago
I've never seen a reference text that considers the comparator part of the sorting algorithm.
Timsort, quicksort, mergesort, introsort, smoothsort, etc. don't include the comparator as part of the algorithm definition.