Huffman Encoding

Please note that the Huffman encoding algorithm can be found on the web.

Huffman Code Example

Table from example in Huffman coding (Wikipedia)

CharFreqCode
space7111
a4010
e4000
f31101
h21010
i21000
m20111
n20010
s21011
t20110
l111001
o100110
p110011
r111000
u100111
x110010

Huffman Tree

This a partial tree of the above character frequencies. Please fill in the remaining nodes.

Note that:

image missing