haffumanlast

所属分类:数据结构
开发工具:Visual C++
文件大小:2KB
下载次数:4
上传日期:2012-10-22 21:20:51
上 传 者heilunya
说明:  哈夫曼编码系统 设计任务:   从键盘输入一串电文字符能输出对应的哈夫曼编码。同时,能翻译由哈夫曼编码生成的代码串,输出相应的电文字符串。 设计要求:   (1)从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树及哈夫曼编码。   (2)利用已经建好的哈夫曼树,对输入的字符串进行编码,输出编码序列。   (3)利用已建好的哈夫曼树对输入的二进制编码进行译码,并输出结果。
(Huffman coding system design tasks: from the keyboard to enter a string of the message characters can output corresponding Huffman coding. Meanwhile, we can translate the code generated by Huffman coding string, output the corresponding message string. Design requirements: (1) read from the terminal into the character set of size n and n characters and n weights establish Huffman tree and Huffman coding. (2) the use of the Huffman tree, has already been built to the input character string, and outputting the encoded sequence. (3) the use of built Huffman tree to decoding binary encoding of the input and output the results.)

文件列表:
haffumanlast.cpp (4737, 2011-12-25)

近期下载者

相关文件


收藏者