首页 开发技术 C     /    设计一个哈夫曼编译码系统

设计一个哈夫曼编译码系统

上传者: weixin_43038021 | 上传时间:2024/4/3 4:26:11 | 文件大小:18.06MB | 文件类型:zip
设计一个哈夫曼编译码系统
(1)I:初始化(Initialization)。
从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2)E:编码(Encoding)。
利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3)D:译码(Decoding)。
利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4)P:打印代码文件(Print)。
将文件CodeFile以紧凑格式显示在终端上,每行50个代码。
同时将此字符形式的编码文件写入文件CodePrin中。
(5)T:打印哈夫曼树(Treeprinting)。
将已在中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。
本软件ID:11190049

文件下载

资源详情

[{"title":"(36个子文件18.06MB)设计一个哈夫曼编译码系统","children":[{"title":"hafmtree","children":[{"title":".vs","children":[{"title":"hafmtree","children":[{"title":"v15","children":[{"title":"Browse.VC.db <span style='color:#111;'>5.27MB</span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'>52.00KB</span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"2609194df2948dd2","children":[{"title":"CODE.ipch <span style='color:#111;'>28.31MB</span>","children":null,"spread":false}],"spread":true},{"title":"a60f3c36e1ebefcf","children":[{"title":"MAIN.ipch <span style='color:#111;'>30.13MB</span>","children":null,"spread":false}],"spread":true},{"title":"448d4d9c8ec77849","children":[{"title":"HEAPSORT.ipch <span style='color:#111;'>24.25MB</span>","children":null,"spread":false}],"spread":true},{"title":"d9ec207174212cda","children":[{"title":"HUFF.ipch <span style='color:#111;'>384.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"cabbfdecc4431330","children":[{"title":"COMPARE.ipch <span style='color:#111;'>1.81MB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"hafmtree","children":[{"title":"TreePrint.dat <span style='color:#111;'>444B</span>","children":null,"spread":false},{"title":"TextFile.dat <span style='color:#111;'>23B</span>","children":null,"spread":false},{"title":"ToBeTran.dat <span style='color:#111;'>27B</span>","children":null,"spread":false},{"title":"hafmtree.vcxproj.filters <span style='color:#111;'>1.21KB</span>","children":null,"spread":false},{"title":"hfmTree.dat <span style='color:#111;'>59B</span>","children":null,"spread":false},{"title":"CodePrint.dat <span style='color:#111;'>89B</span>","children":null,"spread":false},{"title":"HEAP.h <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"hafmtree.vcxproj <span style='color:#111;'>5.95KB</span>","children":null,"spread":false},{"title":"HUFF.h <span style='color:#111;'>3.76KB</span>","children":null,"spread":false},{"title":"CODE.h <span style='color:#111;'>306B</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>6.42KB</span>","children":null,"spread":false},{"title":"CodeFile.dat <span style='color:#111;'>110B</span>","children":null,"spread":false},{"title":"hafmtree.vcxproj.user <span style='color:#111;'>165B</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"hafmtree.log <span style='color:#111;'>110B</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>437.34KB</span>","children":null,"spread":false},{"title":"vc141.idb <span style='color:#111;'>155.00KB</span>","children":null,"spread":false},{"title":"vc141.pdb <span style='color:#111;'>452.00KB</span>","children":null,"spread":false},{"title":"hafmtree.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'>620B</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>12.21KB</span>","children":null,"spread":false},{"title":"hafmtree.lastbuildstate <span style='color:#111;'>228B</span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'>688B</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>598B</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>1.24KB</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>2.93KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"hafmtree.sln <span style='color:#111;'>1.40KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"hafmtree.exe <span style='color:#111;'>149.00KB</span>","children":null,"spread":false},{"title":"hafmtree.pdb <span style='color:#111;'>1.35MB</span>","children":null,"spread":false},{"title":"hafmtree.ilk <span style='color:#111;'>1.48MB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"解压打开.txt <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

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