美文网首页
Entropy and data compression ——

Entropy and data compression ——

作者: 刘东利2020 | 来源:发表于2023-08-07 07:37 被阅读0次

信息熵还和(无损)数据压缩有关:

For example, it quantififies the limit of much (lossless) compression of data can be achieved, a problem in information theory known as source coding.

具体来说:

Entropy can be interpreted as the average length of the shortest encoding of a sequenceof random events, which here are repeated draws (with replacement) of colored marbles from anurn. (Top) With equal probability of each color, the shortest binary recording assigns a two-digitbinary string code to each event. The entropy is the average number of bits per event of a typical sequence: 2 bits. (Bottom) When some colors are more likely than others, the more probable onescan be recorded as shorter binary strings to save space. This gives a shorter entropy: 1.75 bits.

计算一下两个概率分布也可以看出,第一个案例的信息熵就是2,第二个就是1.75。

尤其是针对第二个案例:

This is an example of a prefifix code, which can be uniquely decoded even if the the codewords are concatenated one after another, since no codeword is a prefifix of another.

如果也采用了和第一个案例的相同编码,那么信息熵没有变,但是平均编码变长了,成为了2位:

In other words, this code would introduce redundancy.

相关文章

  • hdu1053:Entropy(map,pq,哈夫曼树)

    Problem Description An entropy encoder is a data encoding...

  • 降维

    10.1 Motivation 10.1.1 Motivation one: Data Compression 如...

  • 14. Dimensionality Reduction

    Dimensionality Reduction Motivation I: Data compression R...

  • 应用VQ的说话人识别系统|Matlab实现

    VQ(矢量量化) 参考文献 http://www.data-compression.com/vq.shtml 语音...

  • 降维(一)

    动机一:压缩数据(Data Compression) 现假设有如下数据集,横坐标为特征变量x1,其单位为厘米(cm...

  • 熵(entropy)

    統計學的熵(entropy) 其他文章連結:Cross entropy1Cross entropy2Cross e...

  • 多样性计算

    Reps 包括gini, shannon.entropy, metric.entropy, simpson, d5...

  • Win10优化

    关闭Memory Compression 方法一 Memory Compression是微软检测并缓解物理内存(R...

  • Entropy

    Entropy(熵) 一个信息源发出多种信号,如果某个信号概率大,那么它后面出现的机会也大,不确定性会小。反之就会...

  • Entropy

    It was about two months ago when I realized that entrop...

网友评论

      本文标题:Entropy and data compression ——

      本文链接:https://www.haomeiwen.com/subject/cscipdtx.html