- w3school W3School学习资料 从基础的HTML到XHTML
- Hackers.and.Painters 《黑客与画家:硅谷创业之父paul graham文集》是硅谷创业之父paul graham 的文集
- Java_game_russia-Block 俄罗方块课程设计 一个网络俄罗斯方块的游戏
- MATLAB_GUI_Design 学习matlab GUI编程非常好的参考资料
- 时间触发嵌入式系统设计模式英文版 本书主要内容包括: 针对使用一个或多个微控制器的嵌入式应用
- Acoustics Toolbox 声学工具箱(双语版) Acoustics Toolbox(声学工具箱)及其中的标准算例是 Michael B. Porter 近40 年来的心血凝聚
文件名称:huffmantree
-
所属分类:
- 标签属性:
- 上传时间:2013-06-26
-
文件大小:3.42kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
利用哈夫曼编码进行信息通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼编/译码系统。
基本要求:一个完整的系统应具有以下功能:
(1)初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,(选做:并将它存于文件hfmTree中)。并显示出每个字符的编码。
(2)编码(Encoding)。利用已建好的哈夫曼树(选做:如不在内存,则从文件htmTree中读入),对输入的字符串文本(选做:对文件ToBeTran中的正文)进行编码,(选做:然后将结果存入文件CodeFile中。)并显示在屏幕上。
(3)译码(Decoding)。利用已建好的哈夫曼树将输入的代码进行译码(选做:将文件CodeFile中的代码进行译码,结果存入文件TextFile中。),并显示在屏幕上。
(4)打印哈夫曼树(Tree Printing)。将已在内存中的哈夫曼树以直观的方式显示在屏幕上。
-Huffman coding information and communication can greatly improve the channel utilization, reduced transmission time, reducing transmission costs. However, this requires the sending end through a coding system for pre-treatment data encoding, the receiver will decode the data transmitted (recovery). For duplex channel (ie, two-way transmission of information channels), each side needs a complete encoder/decoder system. Test for such information transceiver station to write a Huffman encoding/decoding system.
Basic requirements: a complete system should have the following features:
(1) initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, (Optional: and it is stored in the file hfmTree in). And shows the coding of each character.
(2) encoding (Encoding). Has been built using the Huffman tree (Optional: if not in memory, reads from the file htmTree), the input string literal (Optional: The text of t
基本要求:一个完整的系统应具有以下功能:
(1)初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,(选做:并将它存于文件hfmTree中)。并显示出每个字符的编码。
(2)编码(Encoding)。利用已建好的哈夫曼树(选做:如不在内存,则从文件htmTree中读入),对输入的字符串文本(选做:对文件ToBeTran中的正文)进行编码,(选做:然后将结果存入文件CodeFile中。)并显示在屏幕上。
(3)译码(Decoding)。利用已建好的哈夫曼树将输入的代码进行译码(选做:将文件CodeFile中的代码进行译码,结果存入文件TextFile中。),并显示在屏幕上。
(4)打印哈夫曼树(Tree Printing)。将已在内存中的哈夫曼树以直观的方式显示在屏幕上。
-Huffman coding information and communication can greatly improve the channel utilization, reduced transmission time, reducing transmission costs. However, this requires the sending end through a coding system for pre-treatment data encoding, the receiver will decode the data transmitted (recovery). For duplex channel (ie, two-way transmission of information channels), each side needs a complete encoder/decoder system. Test for such information transceiver station to write a Huffman encoding/decoding system.
Basic requirements: a complete system should have the following features:
(1) initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, (Optional: and it is stored in the file hfmTree in). And shows the coding of each character.
(2) encoding (Encoding). Has been built using the Huffman tree (Optional: if not in memory, reads from the file htmTree), the input string literal (Optional: The text of t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
哈夫曼编码(完)/
哈夫曼编码(完)/abc.txt
哈夫曼编码(完)/哈夫曼编码(完).TXT
哈夫曼编码(完)/abc.txt
哈夫曼编码(完)/哈夫曼编码(完).TXT
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
