<< Chapter < Page | Chapter >> Page > |
The paragraph below contains Lincoln's Gettysburg Address. Ignore special symbols like periods and ignore the distinction between lowercase and uppercase letters. Compute the relative frequency of occurrence for each of the 26 letters of the alphabet. Write a MATLAB program to generate a binary tree for the Huffman code of the Gettysburg Address. When you have generated the code, compute the average code word length
where is the relative frequency for symbol and is the code word length for symbol . Compare with the entropy
and compare to . Interpret your findings.
Notification Switch
Would you like to follow the 'A first course in electrical and computer engineering' conversation and receive update notifications?