-
200430481
赫夫曼编译码器:
用哈夫曼编码进行通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼码的编/译码系统。
[基本要求]一个完整的系统应具有以下功能:
(1)I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2)E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3)D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4)P:印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。
(5)T:印哈夫曼树(Tree printing)。将已在内存中的哈夫曼树以直观的方式(树或凹入表形式)显示出,同时将此字符形式的哈夫曼树写入文件TreePrint中。()
- 2021-03-06 09:19:30下载
- 积分:1
-
WinRar密码破译
破解WinRAR解密文件,适用Windows平台系统(Cracking WinRAR Decrypted Files)
- 2020-06-19 16:00:02下载
- 积分:1
-
Script Unpack Frimware Echolink Open Vu 9
Script Unpack Frimware Echolink Open Vu 9
- 2019-02-27 16:26:51下载
- 积分:1
-
jpeg_decoder_play
基于tinyjpeg的jpeg解压缩程序,可解码jpeg数据为YUV分量数据(Based Solutions tinyjpeg jpeg compression program, you can decode jpeg data to YUV component data)
- 2015-08-20 16:23:30下载
- 积分:1
-
pso
粒子群优化算法 改进粒子群优化算法的典型例子 易懂易学(Particle swarm optimization algorithm A typical example of improved particle swarm optimization algorithm is easy to understand)
- 2020-11-13 15:19:43下载
- 积分:1
-
ArithmeticCompression
arithmetic compression
- 2018-11-08 16:53:04下载
- 积分:1
-
Huffman
用C++的模板类实现的霍夫曼树及其编码过程,可视地展示霍夫曼树的结构。(Huffman tree and its encoding process to achieve C++ template class, visual display of the structure of the Huffman tree.)
- 2012-06-26 14:52:57下载
- 积分:1
-
AutoBackUp
自动把文件压缩发送 到邮箱,压缩包含MSDE数据库填写你的邮箱,和你的文件路径放到计划任务里,每天就能自动干活(Automatically compress files to send to the mailbox, compression contains the MSDE to fill in your email, your file path into the scheduled task on a daily basis will be able to automatically work)
- 2016-02-15 02:39:04下载
- 积分:1
-
gczh
工程之间的转换 主要针对 05 和08
希望对大家有帮助(Projects aimed at the conversion between 05 and 08
We want to help)
- 2010-02-24 10:51:27下载
- 积分:1
-
PAPER1
1一种剪切波域的稀疏分量分析方法.pdf(1.A sparse component analysis of shear wave field
)
- 2014-05-09 20:58:08下载
- 积分:1