文件名称:huffman
-
所属分类:
- 标签属性:
- 上传时间:2012-11-04
-
文件大小:1.82kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
根据对二叉树知识的理解,实现对最优二叉树哈夫曼树的构造,遍历,然后实现编码,译码的功能,结果保存到文件中.
输入要进行编码的字符段,统计对字符的出现次数即为权值,根据权值建立哈夫曼树,由哈夫曼树可得到各字符的编码,反过来可得数字译码,保存到文件中
-Based on a binary tree of knowledge of understanding, to achieve the optimal Huffman tree binary tree structure, traverse, and then the realization of encoding, decoding functions, the results saved to file. Enter the characters above coding, statistics The emergence of the number of characters is the right value, in accordance with established weight Huffman tree, from the Huffman tree can be the character encoding, which in turn can be a digital decoder, save to a file
输入要进行编码的字符段,统计对字符的出现次数即为权值,根据权值建立哈夫曼树,由哈夫曼树可得到各字符的编码,反过来可得数字译码,保存到文件中
-Based on a binary tree of knowledge of understanding, to achieve the optimal Huffman tree binary tree structure, traverse, and then the realization of encoding, decoding functions, the results saved to file. Enter the characters above coding, statistics The emergence of the number of characters is the right value, in accordance with established weight Huffman tree, from the Huffman tree can be the character encoding, which in turn can be a digital decoder, save to a file
(系统自动生成,下载前可以参看下载内容)
下载文件列表
哈夫曼编码.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
