Question
Calculate the following for the data given below:
i) Entropy
ii) Coding redundancy of Binary code
iii) Coding redundancy of Huffman code
| Symbol: | 1 | 2 | 3 | 4 | 5 | 6 |
| Huffman code: | 0 | 10 | 110 | 1110 | 11110 | 111111 |
| Binary code: | 000 | 001 | 010 | 011 | 100 | 101 |
| Probability: | 0.4 | 0.2 | 0.2 | 0.1 | 0.05 | 0.05 |
[Given, log 0.05= -4.32]
Answer :
Word Count : 256
___ ________ ________ _______ _____ ________.
______ __________ ____ ________ ____ _________ ______ ___.
________ ________ ______ _____ _______ ___.
_____ ____ ________ __________ ________ ___.
___ _____ _________ ___ ____ ____ ________ ________ _____ ____ __________ ___.
______ _________ _________ __________ ________ ________ _____.
______ __________ __________ ______ ___ ___ ______ ________.
_________ _____ ___ ___ __________ __________ ______ _________.
_____ ____ ____ _________ _________ _____ _________ _________ _________.
_________ _______ ______ ____ _________ ______ _________ ____ _____.
__________ ___ _______ __________ ____ ____ _______ __________ _______ ____ _________.
_______ ______ _____ ___ _____ ______ __________ _______ _____.
_________ __________ ___ ___ ____ _________ ________ __________ ____.
__________ _______ __________ __________ ________ ______ _____ ________ _________ _________.
_____ __________ _____ __________ ______ ______.
______ _______ ______ ________ ____ ___ ______.
_______ ____ __________ _________ _______ ________.
________ __________ ____ ____ _____ _______.
_____ ____ ____ ___ _________ _______ ______ ______ ___ ______ _________ __________.
______ ___ _____ _____ _____ _________ ________ _________ _______.
______ __________ ____ _______ __________ ___ ________ ______ _______ ________ ____.
______ _____ _____ _______ _______ ________.
__________ _______ _____ ___ _______ __________ _________ _____ ________ _________ ____ ______.
_________ __________ _______ __________ ___ ______ _______ ______ ______ ______ ______.
_______.
Skip in 10
To calculate the entropy, coding redundancy of binary code, and coding redundancy of Huffman code, we can use the following formulas:
i) Entropy (H):
\[ H = - \sum_{i=1}^{n} p_i \cdot \log_2(p_i) \]
ii) Coding Redundancy of Binary Code (R_binary):
\[ R_{\text{binary}} = \frac{1}{2} \sum_{i=1}^{n} p_i \cdot L_{\text{binary},i} \]
______ __________ ____ ________ ____ _________ ______ ___.
________ ________ ______ _____ _______ ___.
_____ ____ ________ __________ ________ ___.
___ _____ _________ ___ ____ ____ ________ ________ _____ ____ __________ ___.
______ _________ _________ __________ ________ ________ _____.
______ __________ __________ ______ ___ ___ ______ ________.
_________ _____ ___ ___ __________ __________ ______ _________.
_____ ____ ____ _________ _________ _____ _________ _________ _________.
_________ _______ ______ ____ _________ ______ _________ ____ _____.
__________ ___ _______ __________ ____ ____ _______ __________ _______ ____ _________.
_______ ______ _____ ___ _____ ______ __________ _______ _____.
_________ __________ ___ ___ ____ _________ ________ __________ ____.
__________ _______ __________ __________ ________ ______ _____ ________ _________ _________.
_____ __________ _____ __________ ______ ______.
______ _______ ______ ________ ____ ___ ______.
_______ ____ __________ _________ _______ ________.
________ __________ ____ ____ _____ _______.
_____ ____ ____ ___ _________ _______ ______ ______ ___ ______ _________ __________.
______ ___ _____ _____ _____ _________ ________ _________ _______.
______ __________ ____ _______ __________ ___ ________ ______ _______ ________ ____.
______ _____ _____ _______ _______ ________.
__________ _______ _____ ___ _______ __________ _________ _____ ________ _________ ____ ______.
_________ __________ _______ __________ ___ ______ _______ ______ ______ ______ ______.
_______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.