EEE358S Fundamentals of Communications Engineering Emmanuel - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

EEE358S Fundamentals of Communications Engineering Emmanuel

Description:

EEE358S Fundamentals of Communications Engineering Emmanuel O Bejide ebejide_at_ebe.uct.ac.za http://www.uct.ac.za/depts/staff/rebejide/ Department of Electrical Engineering – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 10
Provided by: webUctAc
Category:

less

Transcript and Presenter's Notes

Title: EEE358S Fundamentals of Communications Engineering Emmanuel


1
EEE358SFundamentals of Communications Engineering
Emmanuel O Bejide ebejide_at_ebe.uct.ac.za http//www
.uct.ac.za/depts/staff/rebejide/ Department of
Electrical Engineering University of Cape Town
2
Source Coding
  • Source coding is a process by which data that is
    generated by a discrete source is represented
    efficiently.
  • The knowledge of the statistics of the source is
    required in order to develop an efficient source
    code.
  • In particular, we may assign short code-word to
    frequent source symbols and long codewords to
    rare source symbols.
  • Such a source code is referred to as
    variable-length code.

3
Source Coding
4
Source Coding
  • Consider a souce that has an alphabet of K
    different symbols such that sk is the kth symbol
    in the alphabet.
  • Also let sk occur with probability pk and let the
    binary codeword assigned to sk by the encoder
    have length measured in bits.
  • The average codeword length of the source encoder
    is defined as

5
Source Coding
  • represents the average number of bits per
    source symbol used in the source encoding
    process.
  • If denotes the minimum possible codeword
    length, the coding efficiency of the source
    encoder is defined as

6
Source Coding
  • With , then .
  • The source encoder is said to be efficient when
    approaches unity.
  • Source coding Theorem
  • Given a discrete memoryless source of entropy
    H(s), the average code-word length for
    any source encoding is bounded as

7
Example of Source Coding(Huffman Coding).
  • The Huffman code is a source code whose averahe
    wordlenght approaches the fundamental limit set
    by the source entropy H(s).
  • Huffman code uses the statistics of the source to
    generate a binary sequence that represents the
    source symbols.

8
Example of Source Coding(Huffman Coding).
  • The Huffman Algorithm proceeds as follows
  • The source symbols is listed in order of
    decreasing probability. The two source symbols
    with the lowest probability are assigned a 0 and
    a 1 (Splitting) .
  • The two source symbols are regarded as being
    combined into a new source symbol with
    probability equal tot eh sum of the two original
    probabilities. The probability of the new symbol
    is placed in the list in accordance with its
    value.
  • The procedure is repeated until we are left with
    a final list of source statistics of only two for
    which a 0 and a 1 is assigned.
  • The code for each original source symbol is found
    by working back and tracing the sequence of 0s
    and 1s assigned to that symbol as well as its
    successors.

9
Example of Source Coding(Huffman Coding).
  • Exercise
  • The five symbol from a source and their
    probabilities are shown in the table below. By
    using the Huffman algorithm, find the source code
    for these symbols and detrmine the average
    code-word length and the entropy of the source.
Write a Comment
User Comments (0)
About PowerShow.com