Skip to content

Compression (Huffman)

RΓ©gis Meyssonnier edited this page Apr 12, 2022 · 15 revisions

1. Codage de huffman πŸ€—

Give the Huffman coding only with huffman.cpp

Text : 116848 bits huffman 1096 bits

 soit 99.062% compression

2. Huffman file πŸ‘¨β€πŸ’»

with huffmanbin.cpp

    Compress text.txt in enc.txt

    and decompress enc.txt to dec.txt

You can change the name of the file.

Compress fast file between 10ko and 200ko any type of files !!!!

3. Compression /Decompression library πŸ”’

Use Huffmanusedll.cpp to see an example how to use the dll huffmandll.dll

Change the path in the file for the include od Huffmanlibrary.h or for the pragmalib directive

4. Build the dll πŸ‘

You can use the dll in the repository or

Use HuffmanLibrary.h and HuffmanLibrary.cpp

Data structure

  • 2 Sat
  • Compression
  • Tree

Clone this wiki locally