Samplesort: A Sampling Approach to Minimal Storage Tree Sorting
- 1 July 1970
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 17 (3) , 496-507
- https://doi.org/10.1145/321592.321600
Abstract
The methods currently in use and previously proposed for the choice of a root in minimal storage tree sorting are in reality methods for making inefficient statistical estimates of the median of the sequence to be sorted. By making efficient use of the information in a random sample chosen during input of the sequence to be sorted, significant improvements over ordinary minimal storage tree sorting can be made. A procedure is proposed which is a generalization of minimal storage tree sorting and which has the following three properties: (a) There is a significant improvement (over ordinary minimal storage tree sorting) in the expected number of comparisons required to sort the input sequence. (b) The procedure is statistically insensitive to bias in the input sequence. (c) The expected number of comparisons required by the procedure approaches (slowly) the information-theoretic lower bound on the number of comparisons required. The procedure is, therefore, “asymptotically optimal.”Keywords
This publication has 8 references indexed in Scilit:
- Some Theorems on SortingSIAM Journal on Applied Mathematics, 1969
- An empirical study of minimal storage sortingCommunications of the ACM, 1963
- Sorting on computersCommunications of the ACM, 1963
- QuicksortThe Computer Journal, 1962
- Some Combinatorial Properties of Certain Trees With Applications to Searching and SortingJournal of the ACM, 1962
- Trees, Forests and RearrangingThe Computer Journal, 1960
- A high-speed sorting procedureCommunications of the ACM, 1960
- A high-speed sorting procedureCommunications of the ACM, 1959