Thanks to visit codestin.com
Credit goes to www.scribd.com

100% found this document useful (1 vote)
93 views2 pages

T7 Homework 7

The document discusses data compression techniques including lossy and lossless compression and how they apply to different file types such as text, images, and video. It also discusses Run Length Encoding as a compression algorithm and how reducing image resolution and color depth can decrease file size but result in lower quality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
93 views2 pages

T7 Homework 7

The document discusses data compression techniques including lossy and lossless compression and how they apply to different file types such as text, images, and video. It also discusses Run Length Encoding as a compression algorithm and how reducing image resolution and color depth can decrease file size but result in lower quality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Homework 7 Data compression

Unit 1 Data representation

Name:............................................................................. Class:................... Mark:................

1. (a) Give two reasons why you might compress photographic files
before emailing them.

Reason 1. Compressing the file before sending them over the Internet can reduce the
amount of time it takes by a considerable margin.

Reason 2: Some email platforms have a set limit for the file size that can be sent in
which case if you want to send an image then compression will be necessary.

(b) Two forms of compression are lossy and lossless.


Explain the most suitable form of compression to use when transmitting:
(i) a draft manuscript for a book.
For text files such as a draft of a book, there is a fixed ASCII code representing each
individual character, then the file format has to be lossless, since any loss of data
would prevent correct identification of individual ASCII characters.

(ii) A video recording which you have made of the school play.
A video recording would be compressed through lossy as you can deliver a
perceptibly "better" looking file using a lossy code faster, than you could if the file was
lossless.

2. A music production company needs to save music at the highest quality possible. They
would like to make use of compression if possible.
Explain how compression can help the music production company.
Compression can help the music production company as it can increase the quality but
also allow the music to become a smaller file and can be easily transmitted over
numerous networks.

1
Homework 7 Data compression
Unit 1 Data representation

3. An algorithm called Run Length Encoding is used to compress an image. It 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:

G G G G G R R R Y Y Y Y Y Y R R R G G G G

G5 R3 Y6 R3 G4

(b) Is this lossy or lossless compression?


Explain your answer:
It is lossless compression because it does not lose any of its original data as it just finds
groups of repeating data.

4. Describe the effect of reducing the resolution and colour depth of an image.
Reducing the resolution and the colour depth of an image leads to a smaller file size; however,
the data removed will be permanently lost. In addition to this, the resolution would be unclear
and at a worse quality.

[Total 15 marks]

You might also like