degenerate dynamic huffman tree

Started by
0 comments, last by Rockoon1 16 years, 1 month ago
What is the maximum number of transitions from a leaf to the root in a dynamic huffman tree in the worst case when I call update at most 65,280 times? This text leads me to believe it is 25 since fib(26) = 75,025 is the lowest fibonacci number above 65,280. It would be great if someone could confirm this because 25 fits nice into a single integer and it would make my BitStack implementation a lot simpler than it currently is.
Advertisement
I'm not sure of the terminology you are using.. but I am well versed in huffman encoders.

Your worst-case tree depth is indeed 25.

You might want to check out http://coding.derkeiler.com/Archive/General/comp.theory/2004-09/0431.html

This topic is closed to new replies.

Advertisement