Adaptive Huffman coding: Difference between revisions

Content deleted Content added
Line 53:
==== Function Slide_And_Increment(p) ====
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
wtincrease +=weight of p by 1
p = previous_p
ELSE