You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6KB

This project is divided in two parts:

First: the source generator
In order to generate the executable file just launch the MAKEFILE

In order to generate a source you have to modify the const.h file which
contain the different parameters of the source generator. BE CAREFUL the
default parameters are good to have a proper source without strange
characters. I advise to just modify the Probability distribution and
the size of the source.

Second: Encoders
In order to generate the executable file just launch the MAKEFILE

In order to use it you can use this format:
For encode with LZW:
executable_file -LZWencode PATH_TO_SOURCE_FILE PATH_TO_OUTPUT_FILE
if the output file doesn't exist it's will be created
For decode with LZW:
executable_file -LZWdecode PATH_TO_SOURCE_FILE PATH_TO_OUTPUT_FILE
if the output file doesn't exist it's will be created
For encode with Huffman:
executable_file -Huffman PATH_TO_SOURCE_FILE

In order to modify the size of the Huffman block you have to modify it
int he file ./Encoders/inc/const.h


Extra information:
Some source are already available:
source5: is a source with 1000 elements and 4 different letters
source_10_10000 is a source with 10 000 elements and 10 differents letters
source_10_1000000 is a source with 1 000 000 elements and 10 differents letters

If you want to see the result of execution of my algorithm you can consult
this following files.