标签: c++ algorithm tree huffman-code
我读了一句话Huffman Tree 10-Input Symbol的频率为1 to 10的{{1}}的高度为5!我做了很多学习,但我不能很清楚,how we calculate the Height of tree!任何的想法?
Huffman Tree
10-Input Symbol
1 to 10
5
how we calculate the Height of tree
答案 0 :(得分:0)
我通常不会看到“高度”这个词,而是“深度”。在任何情况下,它们表示最长代码的位数。实际上,对于您引用的频率,这实际上等于五。