Advertisement

Acta Informatica

, Volume 34, Issue 9, pp 687–700 | Cite as

An analysis and implementation of an efficient in-place bucket sort

  • Apostolos Burnetas
  • Daniel Solow
  • Rishi Agarwal

Abstract.

Various methods, such as address-calculation sorts, distribution counting sorts, radix sorts, and bucket sorts, use the values of the numbers being sorted to increase efficiency but do so at the expense of requiring additional storage space. In this paper, a specific implementation of bucket sort is presented whose primary advantanges are that (i) linear average-time performance is achieved with an additional amount of storage equal to any fraction of the number of elements being sorted and (ii) no linked-list data structures are used (all sorting is done with arrays). Analytical and empirical results show the trade-off between the additional storage space used and the improved computational efficiency obtained. Computer simulations show that for lists containing 1,000 to 30,000 uniformly distributed positive integers, the sort developed here is faster than both Quicksort and a standard implementation of bucket sort. Furthermore, the running time increases with size at a slower rate.

Keywords

Positive Integer Data Structure Computer Simulation Empirical Result Slow Rate 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 1997

Authors and Affiliations

  • Apostolos Burnetas
    • 1
  • Daniel Solow
    • 1
  • Rishi Agarwal
    • 1
  1. 1. Department of Operations Research, Case Western Reserve University, Cleveland, OH 44106, USA (e-mail: dxs8@pyrite.som.cwru.edu) US

Personalised recommendations