Question: 5. Given the characters and their frequency in the table below, construct Huffman Code. Calculate average bits per letter (ABL) for both using 4-bits fixed
5. Given the characters and their frequency in the table below, construct Huffman Code. Calculate average bits per letter (ABL) for both using 4-bits fixed code and Huffman Code constructed. Show steps of your construction.
|
| Char |
|
| Frequency |
|
| A |
| 250 | |||
| E |
| 140 | |||
| C |
| 135 | |||
| D |
| 130 | |||
| F |
| 120 | |||
| G |
| 90 | |||
| H |
| 70 | |||
| M |
| 65 | |||
| T |
| 60 | |||
| P |
| 55 | |||
| Q |
| 30 | |||
| R |
| 20 | |||
| X |
| 10 | |||
| Z |
| 5 | |||
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
