Smoothsort Adaptive Heap Sort
Sort in place with a heap-like structure that keeps worst-case O(n log n) time while approaching linear time on nearly sorted input.
5 notes
Sort in place with a heap-like structure that keeps worst-case O(n log n) time while approaching linear time on nearly sorted input.
A heap-based sorting method that adapts to partially ordered input to reduce unnecessary heap operations.
A variant of heapsort using weak heaps with fewer comparisons.
An adaptive in-place comparison sort based on Leonardo heaps.
Build a max-heap in place, then repeatedly extract the maximum to produce a sorted array in O(n log n) worst-case time.