Huffman Encoder & Decoder.
Encoder.cpp converts input.txt to context_adaptive_huffman_code.hbs(ASCII to binary). Decoder.cpp converts binary file to output.txt which is original file(input.txt).
How to test.
- Create any input_X.txt files and compile encoder.cpp. It will create context_adaptive_Huffman_table.hbs & context_adaptive_Huffman_code.hbs
- Compile decoder.cpp, and it will create output.txt.
- You can check whether input_X.txt and output_X.txt are same or not.
by Akgop/ Kwangwoon Univ.