/Huffman

This is simple realisation of Huffman code for beginners. It's used for lossless data compression.

Primary LanguageC++MIT LicenseMIT

Huffman algorithm

This is simple realisation of Huffman code for beginners. It's used for lossless data compression. GUI has been written with using FLTK (https://www.fltk.org/). It works well for text files if file size is greater than 1000 bytes. The compression reaches 50% for big files.

This histogram shows bad compression for small files:

Alt text

How to start

$ make && ./main

How to compress and decompress files:

Alt text

Youtube video explanations

Watch the video Watch the video Watch the video Watch the video Watch the video Watch the video