And here is the Huffman tree. 0.40 -- e 1.00 0.10 -- d 0.20 0.05 -- f 0.10 0.05 -- g 0.60 0.20 -- a 0.40 0.10 -- b 0.20 0.10 -- c