Towards an efficient merging

  • S. Dvořák
  • B. Ďurian
Part of the Lecture Notes in Computer Science book series (LNCS, volume 233)


The recent results for merging developed by the authors are being described. Namely, it is dealt with
  • -a fast stable merging, which works in linear time and in O(N1/2) space (N is the total number of merged items). A new algorithm for such merging is given. The version of it for unstable merging requires just O(1)-space;

  • -a fast stable merging, which works in slightly nonlinear time and with variable workspace for merging. This algorithm is a thorough revision of that of Dudzinski and Dydek. O(1)-space version of this algorithm is discussed, too.

The experimental evaluation of these algorithms proved that they are the fastest in the corresponding classes.


Merging space and time complexity algorithms 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [1]
    D.E. Knuth, The art of computer programming, Vol. III: Sorting and searching, Addison-Wesley, Reading, Mass., 1973.Google Scholar
  2. [2]
    L.T. Pardo, Stable sorting and merging with optimal space and time bounds, SIAM J. Comp. 6(2) (1977) 351–372.Google Scholar
  3. [3]
    K. Duzinski, A. Dydek, On a stable minimum storage merging algorithm, Inf. Proc. Lett. 12(1) (1981) 5–8.Google Scholar
  4. [4]
    M.A. Kronrod, An optimal ordering algorithm without a field of operation. Dokl. Akad. Nauk USSR 186 (1969) 1256–1258.Google Scholar
  5. [5]
    H. Mannila, E. Ukkonen, A simple linear-time algorithm for in-situ merging, Inf. Proc. Lett. 18(1984) 203–208.Google Scholar
  6. [6]
    B. Durian, Stable merging in O(N) memory and nonstable merging in O(1) memory (in Slovak), Informačné systémy, Vol. 14, no. 1 (1985) 67–86.Google Scholar
  7. [7]
    S. Dvořák, B. Ďurian, How to perform stable merging in a sublinear workspace? (to appear).Google Scholar
  8. [8]
    B. Ďurian, S. Dvořák, Making the DD-merging efficient (to appear).Google Scholar
  9. [9]
    B. Ďurian, Quicksort without a stack (in this proceedings).Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1986

Authors and Affiliations

  • S. Dvořák
    • 1
  • B. Ďurian
    • 2
  1. 1.Tesla RožnovRožnov p. Radh.Czechoslovakia
  2. 2.VÚVT ŽilinaŽilinaCzechoslovakia

Personalised recommendations