Skip to content

Course home

Data compression

Data compression

EasyMedium
12345678910111213
Question 12

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]
Markscheme

Data compression Questions

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

37 exam-style questions on AQA GCSE Computer Science Data compression. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank