Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 409 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 409 Bytes

HuffmanCoding

利用哈夫曼编码,实现了对文档的压缩和解压

使用方式

编译

gcc -o compressor huffman_compressor.c
gcc -o decompressor huffman_decompressor.c

压缩

./compressor ./usconstitution.txt

会生成压缩文件:usconstitution.txt.compress

解压

./decompressor ./usconstitution.txt.compress us.txt