-
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
-
CArcExt_demo
加密、压缩(The Examples of Encrypt and Compression)
- 2021-03-03 08:29:33下载
- 积分:1
-
ANN-Predict
说明: 基于ANN神经网络预测方法,可以较为精确地绘制出预测值与实际值以及误差的曲线(ANN-based neural network prediction method, you can more accurately draw predictive value and the actual value and the error curve)
- 2008-09-13 09:23:59下载
- 积分:1
-
Somp
SOMP算法,该算法主要是应用在压缩传感中的信号恢复算法。(Compressed Sensing)
- 2011-06-16 15:30:55下载
- 积分:1
-
Huffmancoding111123123121
霍夫曼编码的C++实现,含word详细叙述文档,详细注释。(Huffman coding C++ to achieve, including the word detailed description of the documents, detailed notes.)
- 2012-08-13 16:48:36下载
- 积分:1
-
lzw_soft
lzw压缩解压算法源码(The soruce of LZW compression algorithm)
- 2020-06-26 13:00:01下载
- 积分:1
-
zsccompress
说明: 对流数据的压缩,主要针对二进制的数据代码进行各种长度宽度的压缩。(convection data compression, mainly with regard to the binary code of various length width of the compression.)
- 2005-11-17 12:52:02下载
- 积分:1
-
GA-RosenBrock
遗传算法Matlab语言实现,旅行商问题,n个点的排列问题,解空间数量n
(Genetic algorithms in search optimization and machine learning)
- 2016-10-16 20:32:32下载
- 积分:1
-
huffman_matlab
图像压缩的Huffman编码与解码,matlab源代码(Image compression Huffman encoding and decoding, matlab source code)
- 2007-09-07 12:14:55下载
- 积分:1
-
JPEG_LS
连续色调图像无损(近无损)压缩标准Jpeg_Ls源代码(continuous tone image lossless (Near-lossless) compression standard source code Jpeg_Ls)
- 2020-07-09 16:28:58下载
- 积分:1