C program that encodes input.txt and stores result in output.txt. Decoder stores decoded(original) file in results.txt.
For sake of flexibility and experimentation, the encoding requires as input, the probabilites of each unique symbol present in the input file. It considers these probabilites in order to construct the coding tree and not the actual probabilities of the symbols in the input file.
Prathamesh Mandke - mandkepk97@gmail.com