This code provides an implementation of a Huffman encoder in C++. The program takes an input file and encodes its contents using the Huffman coding technique to produce an encoded binary file. The program supports two modes of operation: native threads and Fastflow.
First of all put text files in txt/
For running the parallel version:
make
./encoder "text.txt" "number of threads" "mode (0: native threads, 1: FF)"
You can also run the sequential version
./sequential_encoder "text.txt"
The output will be in the form of text_encoded.bin inside bin/.
It's also possible to decode the file. The file should be in bin/
./decoder "text_encoded.bin"
The output will be in the form of text_decoded.txt inside dec/.