huffman编码

上传者: gjhzmy | 上传时间: 2013-06-12 00:00:00 | 文件大小: 2.87MB | 文件类型: zip
Huffman编码与解码 (选做)(Huffman编码、二叉树) [问题描述]    对一篇英文文章,统计各字符出现的次数,实现Huffman编码,以及对编码结果的解码。 [基本要求] (1) 输出每个字符出现的次数和编码,其中求最小权值要求用堆实现。 (2) 在Huffman编码后,要将编码表和英文文章编码结果保存到文件中,编码结果必须是二进制形式,即0 1的信息用比特位表示,不能用字符’0’和’1’表示。 (3) 提供读编码文件生成原文件的功能。

文件下载

资源详情

[{"title":"( 68 个子文件 2.87MB ) huffman编码","children":[{"title":"7Huffman编码与解码","children":[{"title":"last.cpp <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false},{"title":"70.ncb <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"b.txt <span style='color:#111;'> 66.56KB </span>","children":null,"spread":false},{"title":"3.txt <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"7.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"70.plg <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"70.dsp <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"ddd.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"7.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"last.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"last.plg <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"sheet.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"last.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"last.dsp <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"7","children":[{"title":"7.exe <span style='color:#111;'> 890.77KB </span>","children":null,"spread":false},{"title":"b.txt <span style='color:#111;'> 16.65KB </span>","children":null,"spread":false},{"title":"a1.txt <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"7.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"71.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"a.cpp <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"7.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"7.o <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"License.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"sheet.txt <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"71.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"新建文本文档 (3).txt <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"d.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"a.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"7.dsw <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"71.o <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"71.dsw <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"7.plg <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"7.exe <span style='color:#111;'> 532.05KB </span>","children":null,"spread":false},{"title":"71.obj <span style='color:#111;'> 21.76KB </span>","children":null,"spread":false},{"title":"7.obj <span style='color:#111;'> 156.10KB </span>","children":null,"spread":false},{"title":"7.pdb <span style='color:#111;'> 1.07MB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 108.00KB </span>","children":null,"spread":false},{"title":"71.exe <span style='color:#111;'> 248.05KB </span>","children":null,"spread":false},{"title":"71.pdb <span style='color:#111;'> 1.06MB </span>","children":null,"spread":false}],"spread":false},{"title":"71.dsp <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"71.plg <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"7.dsp <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"71.cpp <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false},{"title":"71.exe <span style='color:#111;'> 890.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"last.dsw <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"d.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"70.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"a.txt <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"7.dsw <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"70.cpp <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"7.plg <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"70.dsw <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"test.obj <span style='color:#111;'> 238.23KB </span>","children":null,"spread":false},{"title":"7(二进制).exe <span style='color:#111;'> 556.06KB </span>","children":null,"spread":false},{"title":"70.exe <span style='color:#111;'> 532.07KB </span>","children":null,"spread":false},{"title":"last.exe <span style='color:#111;'> 556.05KB </span>","children":null,"spread":false},{"title":"last.pdb <span style='color:#111;'> 1.08MB </span>","children":null,"spread":false},{"title":"test.exe <span style='color:#111;'> 532.04KB </span>","children":null,"spread":false},{"title":"70.pdb <span style='color:#111;'> 1.06MB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 116.00KB </span>","children":null,"spread":false},{"title":"7(二进制).obj <span style='color:#111;'> 204.25KB </span>","children":null,"spread":false},{"title":"7(二进制).pdb <span style='color:#111;'> 1.09MB </span>","children":null,"spread":false},{"title":"70.obj <span style='color:#111;'> 155.45KB </span>","children":null,"spread":false},{"title":"last.obj <span style='color:#111;'> 204.11KB </span>","children":null,"spread":false},{"title":"test.pdb <span style='color:#111;'> 1.05MB </span>","children":null,"spread":false}],"spread":false},{"title":"7.dsp <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • pym333 :
    希望可以加上备注,
    2014-04-17

免责申明

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