zoukankan      html  css  js  c++  java
  • CCS

    Measure of Information

     

    Noiseless Coding

    Noiseless coding is the general term for all schemes that reduce the number of bits required
    for the representation of a source output for perfect recovery. The noiseless coding
    theorem, due to Shannon (1948), states that for perfect reconstruction of a source it

    is possible to use a code with a rate as close to the entropy of the source as we desire,
    but it is not possible to use a code with a rate less than the source entropy. In other
    words, for any€> 0, we can have a code with rate less than H(X) +€,but we cannot
    have a code with rate less than H (X), regardless of the complexity of the encoder and
    the decoder. There exist various algorithms for noiseless source coding; Huffman coding
    and Lempel-Ziv coding are two examples. Here we discuss the Huffman coding
    algorithm.

    Huffman Coding

    In Huffman coding we assign longer codewords to the less probable source outputs and
    shorter codewords to the more probable ones. To do this we start by merging the two
    least probable source outputs to generate a new merged output whose probability is the
    sum of the corresponding probabilities. This process is repeated until only one merged
    output is left. In this way we generate a tree. Starting from the root of the tree and
    assigning O's and 1 's to any two branches emerging from the same node, we generate
    the code. It can be shown that in this way we generate a code with minimum average
    length among the class of prefix-free codes .

    The following example shows how to design a Huffman code.

     

    Reference,

      1. <<Contemporary Communication System using MATLAB>> - John G. Proakis

  • 相关阅读:
    14、python基础
    13、Python入门
    12、运算符、流程控制
    10、Linux(六)
    Windows 分层窗口 桌面上透明 Direct3D
    Windows 进程间通信 共享内存
    Linux 库的使用
    FFmpeg 命令行
    FFmpeg 摄像头采集
    FFmpeg input与output 函数流程
  • 原文地址:https://www.cnblogs.com/zzyzz/p/13835558.html
Copyright © 2011-2022 走看看