文件名称:LZW
介绍说明--下载内容均来自于网络,请自行研究使用
LZW压缩与解压
修改LZW压缩和解压的程序,完成下述要求:
1. 每完成xkbytes的文本压缩/解压,重新初始化码本(code table)。此过程可以看作是码本对文本内容的自适应调整过程,每编码部分文本后,码本重新初始化并根据后续文本内容生成,可以获得更好的压缩率。
2. 测试给出的文本文件,需要测试的x取值范围{10, 20, 30, 40, 50},并对比五种取值的压缩/解压效果(包括压缩率和压缩时间等)。程序参数需添加x,例如调用“Compress text 30”
-LZW compression and decompression
Modifying LZW compression and decompression procedures, complete the following requirements:
1 each completed xkbytes text compression/decompression, re-initialize the codebook (code table). This procedure can be seen as the contents of the text code of the adaptive adjustment process, each part of the text code, the code re-initialized and the subsequent text based content generation, can get a better compression ratio.
(2) test gives a text file, you need to test the range of x {10, 20, 30, 40, 50}, and compare the values of the five kinds of compression/decompression effects (including compression ratio and compression time, etc.). Program parameters need to add x, such as calling "Compress text 30"
修改LZW压缩和解压的程序,完成下述要求:
1. 每完成xkbytes的文本压缩/解压,重新初始化码本(code table)。此过程可以看作是码本对文本内容的自适应调整过程,每编码部分文本后,码本重新初始化并根据后续文本内容生成,可以获得更好的压缩率。
2. 测试给出的文本文件,需要测试的x取值范围{10, 20, 30, 40, 50},并对比五种取值的压缩/解压效果(包括压缩率和压缩时间等)。程序参数需添加x,例如调用“Compress text 30”
-LZW compression and decompression
Modifying LZW compression and decompression procedures, complete the following requirements:
1 each completed xkbytes text compression/decompression, re-initialize the codebook (code table). This procedure can be seen as the contents of the text code of the adaptive adjustment process, each part of the text code, the code re-initialized and the subsequent text based content generation, can get a better compression ratio.
(2) test gives a text file, you need to test the range of x {10, 20, 30, 40, 50}, and compare the values of the five kinds of compression/decompression effects (including compression ratio and compression time, etc.). Program parameters need to add x, such as calling "Compress text 30"
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DOC
...\实验七.docx
...\实验七.pdf
EXE
...\Compress.exe
...\Decompress.exe
...\text100k
...\text200k
SRC
...\Compress
...\........\chash.h
...\........\Compress.cpp
...\........\sonode.h
...\........\sortedChain.h
...\........\xcept.h
...\Decompress
...\..........\chash.h
...\..........\Decompress.cpp
...\..........\sonode.h
...\..........\sortedChain.h
...\..........\xcept.h