项目作者: joaquingx

项目描述 :
Huffman Encoder/Decoder implementation in C++/C++11
高级语言: C++
项目地址: git://github.com/joaquingx/Huffman.git
创建时间: 2017-06-10T17:01:03Z
项目社区:https://github.com/joaquingx/Huffman

开源协议:GNU General Public License v3.0

下载


Huffman Encoding and Decoding

Bugs

An implementation in C++ that use the Huffman Algorithm for compress and decompress data.

How to build

Follow this steps carefully! ( because some paths are hardcoded )

  1. $ git clone https://github.com/joaquingx/Huffman-Encoding-Decoding.git
  2. $ cd Huffman-Encoding-Decoding
  3. $ mkdir build
  4. $ cd build
  5. $ cmake ..
  6. $ make

Usage

  1. Usage: ./Huffman OPTIONS input-file [output-file]
  2. OPTIONS
  3. -e
  4. Encode.
  5. -d
  6. Decode.
  7. -t
  8. Print the Conversion table used.
  9. -b
  10. Print the output in Binary Representation, Tree and Text Enconding.
  11. -h
  12. Print how the tree is enconded.
  13. EXAMPLES
  14. ./Huffman -ctb Text.txt
  15. Encode the file Text.txt to compress.huffman, prints the conversion table
  16. and the binary representation of the output .
  17. ./Huffman -d compress.huffman decompress.bmp
  18. Decode the file compress.huffman to decompress.bmp .
  19. ./Huffman -cp Image.bmp EncodingImage.ll
  20. Encode the file Image.bmp to EncodingImage.ll and shows the progress .