Algorithm 673
- 1 June 1989
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Mathematical Software
- Vol. 15 (2) , 158-167
- https://doi.org/10.1145/63522.214390
Abstract
We present a Pascal implementation of the one-pass algorithm for constructing dynamic Huffman codes that is described and analyzed in a companion paper. The program runs in real time; that is, the processing time for each letter of the message is proportional to the length of its codeword. The number of bits used to encode a message of t letters is less than t bits more than that used by the well-known two-pass algorithm. This is best possible for any one-pass Huffman scheme. In practice, it uses fewer bits than all other Huffman schemes. The algorithm has applications in file compression and network transmission.Keywords
This publication has 2 references indexed in Scilit:
- Design and analysis of dynamic Huffman codesJournal of the ACM, 1987
- Dynamic huffman codingJournal of Algorithms, 1985