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.
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss