Skip to main content
Log in

Optimal disk merge patterns

  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract

Our purpose is to study the optimal way to merge n initially sorted runs, stored on a disk like device, into a unique sorted file. This problem is equivalent to finding a tree with n leaves which minimizes a certain cost function (see Knuth [1]).

We shall study some properties of those optimal trees, in the hope of finding efficient ways for constructing them.

In particular, if all the initial runs have the same length, an algorithm for constructing the best merge pattern is described ; its running time is proportional to n 2 and it requires space proportional to n.

A special case is also analyzed in which the problem is solved in time and space proportional to n, and which provides some insight into the asymptotic behaviour of optimal merge trees.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Reference

  • Knuth, D. E.: The art of computer programming, Vol. 3. Reading (Mass.): Addison Wesley, 1973 (pp. 366–363)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Schlumberger, M., Vuillemin, J. Optimal disk merge patterns. Acta Informatica 3, 25–35 (1973). https://doi.org/10.1007/BF00288649

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00288649

Keywords

Navigation