文件名称:HuffanCoding

  • 所属分类:
  • 压缩解压
  • 资源属性:
  • [Windows] [Visual C] [源码]
  • 上传时间:
  • 2013-06-27
  • 文件大小:
  • 7.89mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 许*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

读取数据,统计所得到的文件中每个字母的权值,创建哈夫曼树,哈夫曼编码。哈夫曼解码,解码后内容写入到指定的文件。

读取数据里面的内容是由英文单词组成。读取文件的时候传入文件存放的路径、读取方式以及读出以后存放的数组,最终可以得到一个存放目标文件内容的数组。

将得到的数组进行字母权值的统计,统计每个字母出现的次数,次数即为每个字母的权值。

将得到的字符数组与权值数组作为创建哈夫曼树的依据,哈夫曼树根据每个字母权值的大小来创建,每个节点,包括权值、父节点、左子、右子和字母本身。

根据哈夫曼树进行编码。形成目标文件的哈夫曼编码,将此编码返回。

根据哈夫曼树得到的数组即为解码数组,解码数组作为解码的结果返回。

写入输出文件,将解码得到的数组、文件的完整路径以及文件的写方式作为参数传入,将数组写入到相应的文件中。

-Read the data, statistical documents obtained weights for each letter, create a Huffman tree, Huffman coding. Huffman decoding, the decoded contents are written to the specified file.

Read the content inside is composed of English words. When the incoming file to read the file storage path, read mode and read out after storage array that can eventually get a storage target file contents of the array.

The resulting array of letter weights statistics, statistical number of occurrences of each letter, the number is the weight of each letter.

The resulting character array with the weights array as the basis for creating Huffman tree, Huffman tree based on the size of the weights of each letter to create, for each node, including weights, parent, left child, right child, and letter itself.

According to Huffman coding. The formation of the target file Huffman coding, this code returns.

According to Huffman decoding the resulting array is an array, the decoder decodes the result is retur
(系统自动生成,下载前可以参看下载内容)

下载文件列表





软件技术课程设计

................\HuffanCoding

................\............\Debug

................\............\.....\HuffanCoding.bsc

................\............\.....\HuffanCoding.ilk

................\............\.....\HuffanCoding.obj

................\............\.....\HuffanCoding.pch

................\............\.....\HuffanCoding.pdb

................\............\.....\HuffanCoding.sbr

................\............\.....\input.txt

................\............\.....\vc60.idb

................\............\.....\vc60.pdb

................\............\HuffanCoding.cpp

................\............\HuffanCoding.dsp

................\............\HuffanCoding.dsw

................\............\HuffanCoding.h

................\............\HuffanCoding.ncb

................\............\HuffanCoding.opt

................\............\HuffanCoding.plg

................\............\input.txt

................\............\output.txt

................\............\Readme.txt

................\参考代码

................\........\哈夫曼编码

................\........\..........\Huffan

................\........\..........\......\Debug

................\........\..........\......\.....\Huffan.exe

................\........\..........\......\.....\Huffan.ilk

................\........\..........\......\.....\Huffan.obj

................\........\..........\......\.....\Huffan.pch

................\........\..........\......\.....\Huffan.pdb

................\........\..........\......\.....\vc60.idb

................\........\..........\......\.....\vc60.pdb

................\........\..........\......\Huffan.c

................\........\..........\......\Huffan.dsp

................\........\..........\......\Huffan.dsw

................\........\..........\......\Huffan.ncb

................\........\..........\......\Huffan.opt

................\........\..........\......\Huffan.plg

................\........\赫夫曼编码与译码

................\........\................\HuffanCoding

................\........\................\............\Debug

................\........\................\............\.....\HuffanCoding.bsc

................\........\................\............\.....\HuffanCoding.exe

................\........\................\............\.....\HuffanCoding.ilk

................\........\................\............\.....\HuffanCoding.obj

................\........\................\............\.....\HuffanCoding.pch

................\........\................\............\.....\HuffanCoding.pdb

................\........\................\............\.....\HuffanCoding.sbr

................\........\................\............\.....\input.txt

................\........\................\............\.....\vc60.idb

................\........\................\............\.....\vc60.pdb

................\........\................\............\HuffanCoding.cpp

................\........\................\............\HuffanCoding.dsp

................\........\................\............\HuffanCoding.dsw

................\........\................\............\HuffanCoding.h

................\........\................\............\HuffanCoding.ncb

................\........\................\............\HuffanCoding.opt

................\........\................\............\HuffanCoding.plg

................\........\................\............\input.txt

................\........\................\............\output.txt

................\........\................\............\Readme.txt

................\参考文档

................\........\哈夫曼编码和译码的设计与实现.doc

................\........\哈夫曼编码算法的实现用C 编写.doc

................\........\哈夫曼编码解码报告.doc

................\........\数据结构实验—哈夫曼树编码.doc

................\软件技术基础课程设计

................\....................\Thumbs.db

................\....................\参考题目.txt

................\....................\数据结构与算法_最小生成树.ppt

................\....................\第一章 绪论.ppt

................\....................\第七章 图(1

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org