Back to Search Start Over

Optimal Computer Search Trees and Variable-Length Alphabetical Codes

Authors :
Alan Tucker
T. C. Hu
Source :
SIAM Journal on Applied Mathematics. 21:514-532
Publication Year :
1971
Publisher :
Society for Industrial & Applied Mathematics (SIAM), 1971.

Abstract

An algorithm is given for constructing an alphabetic binary tree of minimum weighted path length (for short, an optimal alphabetic tree). The algorithm needs $4n^2 + 2n$ operations and $4n$ storage locations, where n is the number of terminal nodes in the tree. A given binary tree corresponds to a computer search procedure, where the given files or letters (represented by terminal nodes) are partitioned into two parts successively until a particular file or letter is finally identified. If the files or letters are listed alphabetically, such as a dictionary, then the binary tree must have, from left to right, the terminal nodes consecutively. Since different letters have different frequencies (weights) of occurring, an alphabetic tree of minimum weighted path length corresponds to a computer search tree with minimum-mean search time. A binary tree also represents a (variable-length) binary code. In an alphabetic binary code, the numerical binary order of the code words corresponds to the alphabetical orde...

Details

ISSN :
1095712X and 00361399
Volume :
21
Database :
OpenAIRE
Journal :
SIAM Journal on Applied Mathematics
Accession number :
edsair.doi...........2dd274ae7ef546956821915c25e6fad3
Full Text :
https://doi.org/10.1137/0121057