Implemented the H Tree having look up ratio of standard data set matching with the ones published in the research paper releated to its implementation.
Also optimised the lookup operation in the implementation by balancing the Huffman Tree formed while encoding a given file.
- Initially makes the Hash Map of characters in the file to be encoded mapped with their frequencies.
- Creates a balanced Huffman tree from the frequencies and encodes the file. Also creates a H Tree.
- Decodes the file using H Tree.
Clone the repository
#Build the project
make main_encode_unbalanced.c
#Run the program with the file to be encoded
Run ./a.out filename