Data Representation Homework 6 Compression
Data Representation Homework 6 Compression
Homework 6: Compression
1. (a) Give two reasons why you might compress photograph files before emailing
them to a friend. [2]
Reason 1.
Reason 2:
(b) Two forms of compression are lossy and lossless. State giving reasons which
would be the most suitable form of compression to use when transmitting:
(ii) A video recording which you have made of the school play. [2]
2. A lossless encoding algorithm used to compress an image converts the file by recording
the colour code, represented here by a letter, followed by the number of pixels of the
same colour, e.g. R4.
(a) Give the result of applying the algorithm to the following data for an image: [2]
G G G G G R R R Y Y Y Y Y Y R R R G G G G
[Total 10 marks]