Arithmetic coding and haffman coding

本文探讨了算术编码与哈夫曼编码这两种无损压缩算法的区别。算术编码通过更精确的概率评估来优化编码长度,其效率通常优于哈夫曼编码。文章还讨论了算术编码在计算上的高需求及其专利状况对其应用的影响。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天知道了算术编码,比哈夫曼好的一个无损压缩算法。

 

Equivalently to the Huffman coding, the arithmetical coding tries to evaluate the probability with which certain symbols appear and to optimize the length of the required code. The AC achieves an optimum which exactly corresponds to the theoretical specifications of the information theory. A slight degradation results from inaccuracies, which are caused by correction mechanisms for the interval division.

 

In contrast to this the Huffman coding always produces rounding errors, because its code length is restricted to multiples of a bit. This deviation from the theoretical optimum is much higher in comparison to the arithmetic coding's inaccuracies.

 

The efficiency of an arithmetic code is always better or at least identical to a Huffman code.

 

Several publications available in the internet quantify the advantage of arithmetic coding somehow between 5 and 10%. Mostly they refer to the usage according to the JPEG specification. Concrete comparisons or theoretical models are not mentioned.

 

The high requirements for calculation was the most important disadvantage, especially if taking older computer systems into consideration. Additionally the patent situation had a crucial influence to decisions about the implementation of an arithmetic coding.

 

cabac,用的就是算术编码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值