Abstract
We consider the following variant of Huffman coding in which the costs of the letters, rather than the probabilities of the words, are non-uniform: Given an alphabet of unequal-length letters, find a minimum-average-length prefix-free set of n codewords over the alphabet. We show new structural properties of such codes, leading to an O(n log2 r) time algorithm for finding them. This new algorithm is simpler and faster than the previously best known O(nr min{log n, r}) one due to Perl, Garey, and Even [5].
Partially supported by HK RGC Competitive Research Grant HKUST 181/93E.
Partially supported by NSF grants CCR-8906949 and CCR-9111348.
Preview
Unable to display preview. Download preview PDF.
References
Doris Altenkamp and Kurt Melhorn. Codes: Unequal probabilies, unequal letter costs. Journal of the Association for Computing Machinery, 27(3):412–427, July 1980.
D. A. Huffman. A method for the construction of minimum redundancy codes. In Proc. IRE 40, volume 10, pages 1098–1101], September 1952.
Richard Karp. Minimum-redundancy coding for the discrete noiseless channel. IRE Transactions on Information Theory, January 1961.
Donald E. Knuth. The Art of Computer Programming, Volume III: Sorting and Searching Addison-Wesley, Reading, Mass., 1973.
Y. Perl, M. R. Garey, and S. Even. Efficient generation of optimal prefix code: Equiprobable words using unequal cost letters. Journal of the Association for Computing Machinery, 22(2):202–214, April 1975.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Golin, M.J., Young, N. (1994). Prefix codes: Equiprobable words, unequal letter costs. In: Abiteboul, S., Shamir, E. (eds) Automata, Languages and Programming. ICALP 1994. Lecture Notes in Computer Science, vol 820. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58201-0_102
Download citation
DOI: https://doi.org/10.1007/3-540-58201-0_102
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-58201-4
Online ISBN: 978-3-540-48566-7
eBook Packages: Springer Book Archive