文件名称:HuaffmanTree
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2014-12-12
- 文件大小:
- 704kb
- 下载次数:
- 0次
- 提 供 者:
- 屈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
数据结构 哈夫曼编/译码器
功能:
1.初始化:输入一串字符(正文),计算不同字符 (包括空格)的数目以及每种字符出现的频率(以该种字符出现的次数作为其出现频率),根据权值建立哈夫曼树,输出每一种字符的哈夫曼编码。
2.编码:利用求出的哈夫曼编码,对该正文(字符串)进行编码,并输出。
3.译码:对于得到的一串编码,利用已求得的哈夫曼编码进行译码,将译出的正文输出。
输出哈夫曼树形态:以树的形式输出哈夫曼树。-Data structure Huffman encoding/decoding
Function:
1. Initialization: input a string of characters (the body), calculate the number of distinct characters, including Spaces) as well as the frequency of each character (in the number of occurrences of this kind of character as its frequency), according to the weight to build the Huffman tree, output each kind of Huffman encoding of the characters.
2. Coding: the calculated Huffman encoding, to encode the text (string), and output.
3. Decoding: to get a bunch of code, using Huffman coding has been obtained to decode, to translate the text output.
Output: Huffman tree form output in the form of tree Huffman tree.
功能:
1.初始化:输入一串字符(正文),计算不同字符 (包括空格)的数目以及每种字符出现的频率(以该种字符出现的次数作为其出现频率),根据权值建立哈夫曼树,输出每一种字符的哈夫曼编码。
2.编码:利用求出的哈夫曼编码,对该正文(字符串)进行编码,并输出。
3.译码:对于得到的一串编码,利用已求得的哈夫曼编码进行译码,将译出的正文输出。
输出哈夫曼树形态:以树的形式输出哈夫曼树。-Data structure Huffman encoding/decoding
Function:
1. Initialization: input a string of characters (the body), calculate the number of distinct characters, including Spaces) as well as the frequency of each character (in the number of occurrences of this kind of character as its frequency), according to the weight to build the Huffman tree, output each kind of Huffman encoding of the characters.
2. Coding: the calculated Huffman encoding, to encode the text (string), and output.
3. Decoding: to get a bunch of code, using Huffman coding has been obtained to decode, to translate the text output.
Output: Huffman tree form output in the form of tree Huffman tree.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
HuaffmanTree
............\Debug
............\.....\Huaffman.exe
............\.....\Huaffman.ilk
............\.....\Huaffman.pdb
............\HuaffmanTree
............\HuaffmanTree.ncb
............\HuaffmanTree.sln
............\HuaffmanTree.suo
............\............\Debug
............\............\.....\BAT00007F441215144.bat
............\............\.....\BuildLog.htm
............\............\.....\Huaffman.exe.embed.manifest
............\............\.....\Huaffman.exe.embed.manifest.res
............\............\.....\Huaffman.exe.intermediate.manifest
............\............\.....\HuaffmanTree.obj
............\............\.....\HuaffmanTreeNode.obj
............\............\.....\mt.dep
............\............\.....\vc90.idb
............\............\.....\vc90.pdb
............\............\HuaffmanTree.cpp
............\............\HuaffmanTree.vcproj
............\............\HuaffmanTree.vcproj.306-21.Administrator.user
............\............\HuaffmanTree.vcproj.tianjiqx-PC.tianjiqx.user
............\............\HuaffmanTreeNode.cpp