Samplesort: A Sampling Approach to Minimal Storage Tree Sorting

  • Authors:
  • W. D. Frazer;A. C. McKellar

  • Affiliations:
  • IBM Corporation, Department of Electrical Engineering, Princeton University, Princeton, N.J and IBM Corporation, Thomas J. Watson Research Center, Yorktown Heights, New York;Polytechnic Institute of Brooklyn, Brooklyn, N.Y and Princeton University, Department of Electrical Engineering, Princeton, New Jersey

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1970

Quantified Score

Hi-index 0.06

Visualization

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.”