
Example "abracadabra"
The following example demonstrates the development of the Huffman tree in the course of coding a text with 11 symbols ("abracadabra"). To describe the relevant data structures, the development of the code table is shown using the format as introduced before.
Initially a code tree will be assumed only consisting of the control character NYA (Not Yet Available). In parallel a table will be established containing all symbols that are not yet a part of the tree. In this example these are all 256 characters belonging to an ASCII or ANSI code.
< ^ >
|