An efficient algorithm for constructing nearly optimal prefix codesDownload PDFOpen Website

Published: 1980, Last Modified: 15 Jul 2023IEEE Trans. Inf. Theory 1980Readers: Everyone
Abstract: A new algorithm is presented for constructing nearly optimal prefix codes in the case of unequal letter costs and unequal probabilities. A bound on the maximal deviation from the optimum is derived and numerical examples are given. The algorithm has running time <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">O(t \cdot n)</tex> , where <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">t</tex> is the number of letters and <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">n</tex> is the number of probabilities.
0 Replies

Loading