Whats the point of using priority queues while writing huffman encoding.
Printable View
Whats the point of using priority queues while writing huffman encoding.
It just helps you to construct the tree in the proper order, which is from the bottom up, putting the lowest probability symbols in first.