Nordic Journal of Computing Bibliography

J. Katajainen, T. Pasanen, and J. Teuhola. Practical In-Place Mergesort. Nordic Journal of Computing, 3(1):27-40, Spring 1996.
Abstract

Two in-place variants of the classical mergesort algorithm are analysed in detail. The first, straightforward variant performs at most N log2N+O(N) comparisons and 3Nlog2 N+O(N) moves to sort N elements. The second, more advanced variant requires at most Nlog2N+O(N) comparisons and epsilonNlog2N moves, for any fixed epsilon > 0 and any N > N(epsilon). In theory, the second one is superior to advanced versions of heapsort. In practice, due to the overhead in the index manipulation, our fastest in-place mergesort behaves still about 50 per cent slower than the bottom-up heapsort. However, our implementations are practical compared to mergesort algorithms based on in-place merging.

Categories and Subject Descriptors: F.2.2 [Analysis of Algorithms and Problem Complexity]: Nonnumerical Algorithms and Problems

Additional Key Words and Phrases: sorting, mergesort, in-place algorithms

Selected references


Shortcuts:

  • Nordic Journal of Computing homepage
  • Bibliography top level
  • Nordic Journal of Computing Author Index
  • Search the HBP database