Question 9

AQA Computer Science June 2024 Paper 2 (8525/2)GCSE5 marks

On the specification

9.1
3.3 Fundamentals of data representation
9.2
3.3 Fundamentals of data representation
Question text

9.1 Figure 7 contains a Huffman tree. box Figure 7 The Huffman tree in Figure 7 was used to encode a string, which resulted in the following bit pattern: 0001011001 State the string that this bit pattern represents. [2 marks] 9.2 Table 1 shows the Huffman codes for the characters used in the string box HESELLSSEASHELLASHES Table 1 Character Character Huffman code frequency S 6 11 E 5 10 L 4 00 H 3 011 A 2 010 20 Calculate how many bits would be saved if the string HESELLSSEASHELLASHES was encoded using the Huffman codes shown in Table 1, rather than using ASCII. You should show your working. [3 marks] Number of bits saved 5