Question 17

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

On the specification

17.1
3.3 Fundamentals of data representation
17.2
3.3 Fundamentals of data representation
17.3
3.3 Fundamentals of data representation
Question text

17 1 box . State two reasons why data are compressed. [2 marks] 1 2 17.2 Figure 2 shows a string. Figure 2 MISSISSIPPI One method for compressing data is run length encoding (RLE). When using RLE, the data in Figure 2 become: 1M 1I 2S 1I 2S 1I 2P 1I Explain why RLE is not a suitable method for compressing the data in Figure 2. [2 marks] 17.3 box Another method for compressing data is Huffman coding. In Huffman coding, the codes for the characters can be created based on their position in a tree. Figure 3 shows a Huffman code for each different character in the string in Figure 2. Figure 3 Character Binary code M 100 I 0 S 11 P 101 Complete the Huffman tree below to show the position of the characters I, S and P using the codes from Figure 3. [1 mark]