CSC325 · 2080 · 5 marks
Suppose that a message contains alphabet frequencies as given below and find Huffman codes for each alphabet. | Symbol | Frequency | |--------|-----------| | a | 30 | | b | 20 | | c | 25 | | d | 15 | | e | 35 |
Suppose that a message contains alphabet frequencies as given below and find Huffman codes for each alphabet.
| Symbol | Frequency |
|---|---|
| a | 30 |
| b | 20 |
| c | 25 |
| d | 15 |
| e | 35 |
[5]
Design and Analysis of AlgorithmsChapter 4: Greedy AlgorithmsHuffman CodingNumerical: Huffman coding