基于ZIP的压缩和解压缩 [英] compression and decompression based on ZIP

查看:124
本文介绍了基于ZIP的压缩和解压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个用C ++编写的用于压缩和解压缩(编码器和解码器模块)的示例程序,并在文本文件和多媒体文件上进行测试

i希望用此代码来证明重要性Kraft不等式,Shannon代码和Huffman代码

,最后我想用任何zip软件解压缩压缩文件

what i am looking for an example program written in C++ for compression and decompression(encoder and decoder modules)and test it on text files and multimedia files
i want with this code to prove the important of Kraft inequality, Shannon codes, and Huffman codes
and at the end i want the compressed file to be decompressed with any zip software

推荐答案

你的问题似乎有点奇怪。你在谈论卡夫不平等,香农&霍夫曼代码,所以你似乎已经具有一般的算法知识,特别是压缩算法。那你为什么不试试呢?



处理.zip压缩格式的唯一来源就是这个库:

SharpZipLib [ ^ ]



它是用C#编写的,不是用C ++编写的。来自那里 [ ^ ],您可以找到适合您需求的东西。



[ ^ ]也可以提供很大的帮助。



祝你好运:)
Your question seems a little weird. You are talking about Kraft inequality, Shannon & Huffman codes, so you seem to already have some knowledge in algorithmics in general, and in compression algorithms specifically. So why don't you just try?

My only source when it comes to dealing with .zip compression format is this library:
SharpZipLib[^]

It is written in C#, though, not in C++. From there[^], you may find something that fits your needs.

That[^] could be of great help, too.

Good luck :)


你可以使用着名的开源7-zip实现不同的算法,包括ZIP:

http://en.wikipedia.org/wiki/7-Zip [ ^ ],

http:// www .7-zip.org / [ ^ ],

http://sourceforge.net/projects/sevenzip [ ^ ],

http://sourceforge.net/projects/sevenzip/files [ ^ ]。



-SA
You can use famous open-source 7-zip which implements different algorithms, including ZIP:
http://en.wikipedia.org/wiki/7-Zip[^],
http://www.7-zip.org/[^],
http://sourceforge.net/projects/sevenzip[^],
http://sourceforge.net/projects/sevenzip/files[^].

—SA


这篇关于基于ZIP的压缩和解压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆