Home
Scholarly Works
Mu-balancing M-way Search Trees
Journal article

Mu-balancing M-way Search Trees

Abstract

A recent paper by Stout and Warren describes an asymptotically optimal algorithm (using 𝛉(N) time and constant space) for the balancing of binary search trees on N vertices. This paper shows how to extend their algorithm to balance M-way search trees, M ⩾ 2, using O(MN) time and O(M) temporary work space (consisting essentially of one node of the tree). The time bound (at least) is asymptotically optimal in cases of practical interest. When the M-way tree is stored on disc as the directory of an indexed sequential file, the algorithm uses at most 6N disc accesses (for large M) and requires that at most three nodes of the tree be simultaneously available in main memory. Various options for implementation of the algorithm are discussed, which allow the user to influence certain characteristics of the final balanced tree; in particular, to balance using MU < M − 1 keys per node.

Authors

Smyth WF

Journal

The Computer Journal, Vol. 34, No. 5, pp. 406–414

Publisher

Oxford University Press (OUP)

Publication Date

May 1, 1991

DOI

10.1093/comjnl/34.5.406

ISSN

0010-4620

Labels

View published work (Non-McMaster Users)

Contact the Experts team