Adaptive Huffman coding: Difference between revisions

Content deleted Content added
Formatting
Line 54:
previous_p = parent of p
wt = weight of p
IF (p is an internal node)
Slide p in the tree higher than the leaf nodes of weight wt + 1
wt += 1
p = previous_p
ELSE
Slide p in the tree higher than the internal nodes of weight wt
wt += 1