文件名称:haffumanlast
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.76kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
哈夫曼编码系统
设计任务:
从键盘输入一串电文字符能输出对应的哈夫曼编码。同时,能翻译由哈夫曼编码生成的代码串,输出相应的电文字符串。
设计要求:
(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.
设计任务:
从键盘输入一串电文字符能输出对应的哈夫曼编码。同时,能翻译由哈夫曼编码生成的代码串,输出相应的电文字符串。
设计要求:
(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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.