文件名称:0203
-
所属分类:
- 标签属性:
- 上传时间:2014-05-26
-
文件大小:1.64kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
利用赫夫曼树的编码思想,构造一个完整的赫夫曼编码系统。
要求如下:
①从键盘读入字符集大小n,以及n个字符和n个权值,建立赫夫曼树,然后对赫夫曼树进行编码,输出结果。
②使用上述字符集创建一个任意的明文,对该明文进行编码,输出该明文的电文序列。
③利用上述创建的编码集合,输入任意的电文序列,输出该电文的明文。-Use Huffman coding tree thinking, construct a complete Huffman coding system.
Requirements are as follows:
① reading character set size n, and n and n characters from the keyboard weights, Huffman tree, and the tree Huffman encoded output.
② the character set used to create an arbitrary plaintext, the plaintext is encoded output sequence of the plaintext message.
③ collection created by the encoding above, enter any text sequence, the output of the plaintext message.
要求如下:
①从键盘读入字符集大小n,以及n个字符和n个权值,建立赫夫曼树,然后对赫夫曼树进行编码,输出结果。
②使用上述字符集创建一个任意的明文,对该明文进行编码,输出该明文的电文序列。
③利用上述创建的编码集合,输入任意的电文序列,输出该电文的明文。-Use Huffman coding tree thinking, construct a complete Huffman coding system.
Requirements are as follows:
① reading character set size n, and n and n characters from the keyboard weights, Huffman tree, and the tree Huffman encoded output.
② the character set used to create an arbitrary plaintext, the plaintext is encoded output sequence of the plaintext message.
③ collection created by the encoding above, enter any text sequence, the output of the plaintext message.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
0203.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.