Huffman coding – part 2

The huffman coding is mainly used to compress files that are not already compressed already ( the reason why I say this for is because if you are trying to compress a already compressed file then the assignment 5 will add on more header details onto the file for decompressing the compressed file.

This is a follow on from the part 1 of the assignment 5 this is the decompression of the compressed file.

So to start with, I need to read in the header file of the compressed file. For example if I was going to compress the file

hello there

then the compressed file will be


Leave a Reply

Your email address will not be published. Required fields are marked *