Optimal prefix codes with fewer distinct codeword lengths are faster to construct

From MaRDI portal
Publication:2272991

DOI10.1016/J.IC.2019.104436zbMATH Open1430.68096arXivcs/0509015OpenAlexW2963622137WikidataQ127441902 ScholiaQ127441902MaRDI QIDQ2272991FDOQ2272991


Authors: Ahmed A. Belal, Amr Elmasry Edit this on Wikidata


Publication date: 17 September 2019

Published in: Information and Computation (Search for Journal in Brave)

Abstract: A new method for constructing minimum-redundancy binary prefix codes is described. Our method does not explicitly build a Huffman tree; instead it uses a property of optimal prefix codes to compute the codeword lengths corresponding to the input weights. Let n be the number of weights and k be the number of distinct codeword lengths as produced by the algorithm for the optimum codes. The running time of our algorithm is O(kcdotn). Following our previous work in cite{be}, no algorithm can possibly construct optimal prefix codes in o(kcdotn) time. When the given weights are presorted our algorithm performs O(9kcdotlog2kn) comparisons.


Full work available at URL: https://arxiv.org/abs/cs/0509015




Recommendations




Cites Work


Cited In (5)





This page was built for publication: Optimal prefix codes with fewer distinct codeword lengths are faster to construct

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2272991)