Skip to content

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

Notifications You must be signed in to change notification settings

g101418/HuffmanCoding

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages