文件名称:6
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(1) 从终端读入字符集大小为n(即字符的个数),逐一输入n个字符和相应的n个权值(即字符出现的频度),建立哈夫曼树,将它存于文件 hfmtree 中。并将建立好的哈夫曼树以树或凹入法形式输出 对每个字符进行编码并且输出。
(2) 利用已建好的哈夫曼编码文件 hfmtree ,对键盘输入的正文进行译码。输出字符正文,再输出该文的二进制码。
-(1) read from the terminal into the character set of size n (ie the number of characters), each input n characters and the corresponding n-weight (ie, the frequency of characters appear), establishing a Huffman tree, it would be kept hfmtree in the document. Will establish a good Huffman tree to tree or indentation law form output for each character is encoded and output. (2) the use of Huffman coding has been completed document hfmtree, the body of the keyboard input for decoding. Output characters in the body, and then outputs the binary code in the text.
(2) 利用已建好的哈夫曼编码文件 hfmtree ,对键盘输入的正文进行译码。输出字符正文,再输出该文的二进制码。
-(1) read from the terminal into the character set of size n (ie the number of characters), each input n characters and the corresponding n-weight (ie, the frequency of characters appear), establishing a Huffman tree, it would be kept hfmtree in the document. Will establish a good Huffman tree to tree or indentation law form output for each character is encoded and output. (2) the use of Huffman coding has been completed document hfmtree, the body of the keyboard input for decoding. Output characters in the body, and then outputs the binary code in the text.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
6.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.