Question
Construct the Huffman code tree for the set of frequencies in the table below:
| Character | Frequency |
| A | 5 |
| B | 1 |
| C | 6 |
| D | 3 |
| E | 4 |
Answer :
Word Count : 209
____ _____ ________ _____ _______ ______.
____ ____ ________ ________ _____.
_____ _____ ____ _________ _____ __________.
______ _____ ___ _________ ___ ____ __________ ___ ________ ___ ______.
_________ ______ _____ ________ _________ __________ ____ ____ _________.
_________ ____ ____ ______ __________ _________ ___.
_________ _________ __________ __________ ____ ________ ________.
_____ ______ _____ _________ _______ _______ _________ _____ ______.
_________ _________ ______ _____ _____ ____ ________ ___.
_____ ___ ___ ______ ______.
______ __________ _____ ____ ________ ________ ______ ____.
______ ________ __________ ____ ___ __________ _______.
_________ _______ ____ ___ ___ __________.
________ ___ ______ ____ __________ _________ _____ _____ ________ ________.
________ ______ ____ _______ ______ _____ ______ ______ _____.
__________ _______ ____ ________ _______ ________ __________ ___ ___.
______ __________ ________ ____ ________.
_________ ________ ________ ____ _________ _____ __________ ___ __________ _________.
Skip in 10
The frequencies are A=5, B=1, C=6, D=3, and E=4. First arrange them in increasing order: B(1), D(3), E(4), A(5), C(6). The two smallest are B(1) and D(3), so they are combined to form a node BD with weight 1+3=4. Now the set becomes BD(4), E(4), A(5), C(6). The two smallest are BD(4) and E(4), so they are combined to form a node BDE with weight
________ ___ _____ _________ ________ ___ __________.____ _____ ________ _____ _______ ______.
____ ____ ________ ________ _____.
_____ _____ ____ _________ _____ __________.
______ _____ ___ _________ ___ ____ __________ ___ ________ ___ ______.
_________ ______ _____ ________ _________ __________ ____ ____ _________.
_________ ____ ____ ______ __________ _________ ___.
_________ _________ __________ __________ ____ ________ ________.
_____ ______ _____ _________ _______ _______ _________ _____ ______.
_________ _________ ______ _____ _____ ____ ________ ___.
_____ ___ ___ ______ ______.
______ __________ _____ ____ ________ ________ ______ ____.
______ ________ __________ ____ ___ __________ _______.
_________ _______ ____ ___ ___ __________.
________ ___ ______ ____ __________ _________ _____ _____ ________ ________.
________ ______ ____ _______ ______ _____ ______ ______ _____.
__________ _______ ____ ________ _______ ________ __________ ___ ___.
______ __________ ________ ____ ________.
_________ ________ ________ ____ _________ _____ __________ ___ __________ _________.
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.