A Variant of Heapsort with Almost Optimal Number of Comparisons
暂无分享,去创建一个
Abstract An algorithm, which asymptotically halves the number of comparisons made by the common Heapsort , is presented and analysed in the worst case. The number of comparisons is shown to be (n+1)(log(n+1)+log log(n+1)+1.82)+O(log n) in the worst case to sort n elements, without using any extra space. Quicksort , which usually is referred to as the fastest in-place sorting method, uses 1.38n log n − O(n) in the average case (see Gonnet (1984)).
[1] Gaston H. Gonnet,et al. Handbook Of Algorithms And Data Structures , 1984 .
[2] Svante Carlsson,et al. Improving worst-case behavior of heaps , 1984, BIT.
[3] Gaston H. Gonnet,et al. Heaps on Heaps , 1982, ICALP.