开发者

longest huffman codeword

开发者 https://www.devze.com 2023-01-21 15:02 出处:网络
I\'m not quite sure how to determine what the longest possible codeword is under Huffman encoding for a specific set of frequencies?

I'm not quite sure how to determine what the longest possible codeword is under Huffman encoding for a specific set of frequencies?

Any idea开发者_JS百科s?


For a specific set of frequencies? Generate your tree, then see how tall it is... If you're talking about in general, then it's something like N - 1.


Abu-Mostafa and McEliece provide an answer in terms of the probability of the least frequent symbol. The paper also has references to related work on similar questions.

http://tmo.jpl.nasa.gov/progress_report/42-110/110N.PDF

0

精彩评论

暂无评论...
验证码 换一张
取 消