Abstract
The standard Tree Selection Sort is an efficient sorting algorithm but requires extra storage for n-1 pointers and n items. The goal of this paper is to not only reduce the extra storage of Tree Selection Sort to n bits, but also keep the number of comparisons at nlogn+O(n). The improved algorithm makes at most 3n data movements. The empirical results show that the improved algorithm is efficient. In some cases, say moving one item requires at least 3 assignment operations, the algorithm is the fastest on average among known fast algorithms.
This work was partially done while the author served in Shanghai Jiaotong University, China, and partially supported by the National Natural Science Foundation of China grant
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
J.W.J. Williams, Algorithm 232, Heapsort 3, Comm.ACM, 7, 1964, pp. 347–348.
R.W. Floyd, Algorithm 245, Treesort 3, Comm.ACM, 1964, p. 701.
C.A.R. Hoare, Algorithm 63,64 and 65, Comm.ACM, 4(7), 1961,pp. 321–322.
E.H. Friend, Sorting on electronic computers, JACM 3(2), 1956, pp. 34–168.
D.E. Knuth, “The Art of Computer Programming Vol.3: Sorting and Searching”, Addison-Wesley, Reading, MA, 1973
I. Wegener, The worst case complexity of McDiarmid and Reed’s variant of Bottom-Up heapsort is less than nlogn+1.1n, information and computation, 97, 1992, pp. 86–96.
C.J.H. McDiarmid and B.A. Reed, Building heaps fast, J. Algorithms 10, pp. 352–369.
S. Carlsson, A variant of heapsort with almost optimal number of comparisons, Inform. Process. Lett. 24, pp. 247–250.
G.H. Gonnet and J.I. Munro, Heaps on heaps, Proc. 9th ICALP, Aarhus, Denmark, July 12–16, 1982,pp. 282–291.
R.D. Dutton, Weak-heap sort, BIT 33, 1993,pp. 372–381.
J.C. Chen, Proportion split sort, Nordic Journal of Computing 3(1996), pp. 271–279.
J.C. Chen, Proportion extend sort, SIAM Journal on Computing, Vol. 31, No. 1, 2001, pp. 323–330.
A. LaMarca and R.E. Lader, The influence of Caches on the performance of sorting, J. Algorithms 31, 1999, pp. 66–104.
R. Sedgewick, Implementing quicksort programs. Communications of the ACM, 21(10), pp. 847–857, October, 1978.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Chen, J. (2002). An Improvement on Tree Selection Sort. In: Mount, D.M., Stein, C. (eds) Algorithm Engineering and Experiments. ALENEX 2002. Lecture Notes in Computer Science, vol 2409. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45643-0_15
Download citation
DOI: https://doi.org/10.1007/3-540-45643-0_15
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43977-6
Online ISBN: 978-3-540-45643-8
eBook Packages: Springer Book Archive