Abstract
A new sorting algorithm, Double Distributive Partitioning, is introduced and compared against Sedgewick's quicksort. It is shown that the Double Distributive Partitioning algorithm runs, for all practical purposes, inO(n) time for many distributions of keys. Furthermore, the combined number of comparisons, additions, and assignments required to sort by the new method on these distributions is always less than quicksort.
Similar content being viewed by others
References
C. A. R. Hoare,Quicksort (Algorithm 64), CACM 4, no. 7 (1961), p. 321.
R. Sedgewick,Implementing quicksort programs, CACM 21, no. 10 (1978), pp. 847–856.
W. Dobosiewicz,Sorting by distributive partitioning, Info. Proc. Lett. 7, no. 1 (1978), pp. 1–6.
L. Devroye and T. Klincsek,Average time behavior of distributive sorting algorithms, Computing 26, no. 1 (1981), pp. 1–7.
M. T. Noga,Fast Geometric Algorithms, Ph.D. Thesis, Dept. of Comp. Sci., Virginia Polytechnic Institute and State University, Blacksburg, VA 24061 (1984).
H. Meijer and S. G. Akl,The design and analysis of a new hybrid sorting algorithm, Info. Proc. Lett. 10, no. 4–5 (1980), pp. 213–218.
S. Baase,Computer Algorithms: Introduction to Design and Analysis, Addison-Wesley (1978).
R. Loeser,Some performance tests of “quicksort” and descendants, CACM 17, no. 3 (1974), pp. 143–152.
M. van der Nat,A fast sorting algorithm, a hybrid of distributive and merge sorting, Info. Proc. Lett. 10, no. 3 (1980), pp. 163–167.
J. S. Kowalik and Y. B. Yoo,Implementing a distributive sort program, Journal of Information and Optimization Sciences 2, no. 1 (1981), pp. 28–33.
R. C. Singleton,An efficient algorithm for sorting with minimal storage, CACM 12, no. 3 (1969), pp. 185–186.
G. W. Snedecor and W. G. Cochran,Statistical Methods, Iowa State Univ. Press (1967).
D. C. S. Allison and M. T. Noga,Usort: an efficient hybrid of distributive partitioning sorting, BIT 22 (1982), pp. 135–139.
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley (1974).
International Mathematical and Statistics Library, Edition 8, (1980).
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Noga, M.T., Allison, D.C.S. Sorting in linear expected time. BIT 25, 451–465 (1985). https://doi.org/10.1007/BF01935365
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01935365