Data compression

EasyMedium
12345678910111213141516171819
Question 18
Medium

Table 1 shows the Huffman codes for the characters used in the string ALABAMA_ALMANAC.

Calculate how many bits would be saved if the string ALABAMA_ALMANAC was encoded using the Huffman codes shown in Table 1, rather than using standard 8-bit ASCII.

You should show your working.

Table 1

CharacterCharacter frequencyHuffman code
A70
L2100
M2101
B11100
_11101
N11110
C11111
Total15
[3]

Data compression Questions

  1. GCSE
  2. /Computer Science
  3. /Data compression