Binary Lzw vs ASCII lzw with arabic langauge [英] Binary Lzw vs ASCII lzw with arabic langauge

查看:120
本文介绍了Binary Lzw vs ASCII lzw with arabic langauge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有



i我的毕业设计有问题

阿拉伯语言压缩/减压< br $>


i做了一些压缩算法我在这里发现它输出的是压缩文本的二进制数组,我一直在想我可以使用lzw二进制压缩来最大化我的输出。



因为ASCII不支持阿拉伯语言



我应该如何实现binaray lzw



我之前使用的算法是在这个链接中





[ ^ ]



i得到了一个好的输出,但我想要更理想的输出,所以我可以使用lzw二进制?



你是否有足够的资源在java中实现它。



谢谢

hey all

i have a problem with my graduation project
its arabic language compression/decompression

i have done some compression algorithm i found it up here which output's a binary array to the compressed text , i've been thinking can i use lzw binary compression to maximize my output .

because arabic language is not supported by ASCII

and how should i implement binaray lzw

the algorithm that i have used before is in this link


[^]

i got a good output but i want more desirable output , so can i use lzw binary ?

and do u have a good resource to implement it in java .

thanks

推荐答案

这不是一个正确提出的问题。更确切地说,这没有问题。



压缩与语言无关。但是,压缩比确实取决于数据的内容。您只能比较相同大小的数据块(以字节为单位)。如果压缩块,压缩数据的大小将不同。那不完全自然吗?您如何看待为什么压缩是可能的?因为压缩算法在数据中找到一些冗余并试图优化冗余数据的呈现。想象一下,您的所有数据都包含二进制数据。然后压缩数据应该说:80亿个1位。然后想象数据是随机的比特序列。然后,压缩比平均可以略低于1,具有良好的算法和大集,因为少量冗余只能随机出现。这不合逻辑吗?



如果您阅读有关数据压缩的文章,也许您可​​以更好地理解它: http://en.wikipedia.org/wiki/Data_compression [ ^ ]。



-SA
This is not a correctly posed question. More exactly, there is no a problem with that.

Compression has nothing to do with languages. However, compression ratio does depend on the content of the data. You can only compare blocks of data of the same size in bytes. If you compress the block, the size of compressed data will be different. Isn't that totally natural? How do you think why compression is possible at all? Because the compression algorithm find some redundancy in data and tries to optimize the presentation of redundant data. Imagine that you all your data consists of binary ones. Then the compressed data should just say: "80 billions of 1 bits". And then imagine that the data is the random sequence of bits. Then the compression ratio, on average, could be slightly lower then 1, with the good algorithm and big sets, because minor amount of redundancy can only come at random. Isn't that logical?

Perhaps you could better understand it if you read about data compression: http://en.wikipedia.org/wiki/Data_compression[^].

—SA


这篇关于Binary Lzw vs ASCII lzw with arabic langauge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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