IST238: Algorithms. Project #5.

This project is dedicated to implementation of the Huffman compression algorithm. It will include several parts:
  1. Implement priority queue template class PQueue with the following public methods: Note: you should use the heap structure to implement this class.
  2. Implement the Huffman code to construct the optimal prefix tree. To complete this, you need:
  3. Re-read the file and print the sequence of zeros and ones corresponding to the file contents. The coded version of the text should be written in another file.
  4. Read the newly created "compressed" file and decode it using the prefix tree. Print the text on the screen.