huffman树 文件压缩 c语言

上传者: oubaoguo929292 | 上传时间: 2021-06-13 22:57:46 | 文件大小: 327KB | 文件类型: RAR
用优先队列构造huffman树,然后压缩编码,由8个字符串的huffman编码转换成unsinged char,保存到压缩文件,从而实现压缩. 要对文件进行解压缩,要将编码的huffman树保存到 压缩文件,否则就没有解码信息了. 要在压缩文件中保存前序遍历与中序遍历,才能构造出树的原型。 然后根据编码信息,与树进行匹配,得到原字符。

文件下载

资源详情

[{"title":"( 52 个子文件 327KB ) huffman树 文件压缩 c语言","children":[{"title":"huffman","children":[{"title":"com_and_decompress_h.h <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"huffman.dsw <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"HASH_H.H <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"Defend.h <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"decompress.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"main.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"defend.obj <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"hash.obj <span style='color:#111;'> 17.19KB </span>","children":null,"spread":false},{"title":"huffman.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"huffman.obj <span style='color:#111;'> 9.34KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"compress.obj <span style='color:#111;'> 10.52KB </span>","children":null,"spread":false},{"title":"huffman.exe <span style='color:#111;'> 236.05KB </span>","children":null,"spread":false},{"title":"priority_queue.obj <span style='color:#111;'> 13.97KB </span>","children":null,"spread":false},{"title":"priority_queue.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"item.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"huffman.ilk <span style='color:#111;'> 263.14KB </span>","children":null,"spread":false},{"title":"item.obj <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"huffman.pdb <span style='color:#111;'> 569.00KB </span>","children":null,"spread":false},{"title":"huffman.pch <span style='color:#111;'> 245.93KB </span>","children":null,"spread":false},{"title":"defend.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"huffman.bsc <span style='color:#111;'> 145.00KB </span>","children":null,"spread":false},{"title":"hash.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"compress.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"decompress.obj <span style='color:#111;'> 12.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"huffman.c <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"huffman.ncb <span style='color:#111;'> 89.00KB </span>","children":null,"spread":false},{"title":"huffman.opt <span style='color:#111;'> 58.50KB </span>","children":null,"spread":false},{"title":"out.txt <span style='color:#111;'> 25.82KB </span>","children":null,"spread":false},{"title":"HASH_OPENING_ADDRESS_H.H <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"COMPRESS_H.H <span style='color:#111;'> 304B </span>","children":null,"spread":false},{"title":"a.txt <span style='color:#111;'> 74.28KB </span>","children":null,"spread":false},{"title":"huffman.dsp <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"huffman.h <span style='color:#111;'> 587B </span>","children":null,"spread":false},{"title":"huffman.plg <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"HASH_Element_H.h <span style='color:#111;'> 197B </span>","children":null,"spread":false},{"title":"Item.h <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"decompress.c <span style='color:#111;'> 11.48KB </span>","children":null,"spread":false},{"title":"DECOMPRESS_H.H <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"defend.c <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"a.txt.bak <span style='color:#111;'> 222.84KB </span>","children":null,"spread":false},{"title":"item.c <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"HEAP_H.H <span style='color:#111;'> 683B </span>","children":null,"spread":false},{"title":"compress.c <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"encode_file.txt <span style='color:#111;'> 25.67KB </span>","children":null,"spread":false},{"title":"hash.c <span style='color:#111;'> 9.44KB </span>","children":null,"spread":false},{"title":"COM_DECOM_PRESS_H.h <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"b.txt <span style='color:#111;'> 74.28KB </span>","children":null,"spread":false},{"title":"priority_queue.c <span style='color:#111;'> 6.03KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 171B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • yinguoyan1985 :
    很好的源码,谢谢分享
    2014-03-12
  • ilotusr :
    程序有注释,很完整,学习数据结构时可参考,谢谢分享。
    2014-02-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明