Data compression

EasyMedium
12345678910111213141516171819
Question 2
Medium

The string shown in Figure 1 can be encoded using Huffman coding or ASCII. ASCII uses 7 bits to represent each character.

Figure 1

APPALACHIA

Figure 2 shows the Huffman tree created for this string.

A Huffman tree representing the string APPALACHIA

How many bits are saved by using Huffman coding rather than ASCII to represent the string in Figure 1?

You must show your working.

[4]

Data compression Questions

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