Whats the point of using priority queues while writing huffman encoding.
This is a discussion on Priority queues within the C++ Programming forums, part of the General Programming Boards category; Whats the point of using priority queues while writing huffman encoding....
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.