Data storage and compression (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

Consider a file containing a series of numbers: 2, 4, 8, 16, 32, 64. Calculate the compression ratio if the file is compressed using a method that represents the numbers as follows: "2 4 8 16 32 64; 2; 2; 2; 2; 2". Explain why this compression method achieves a higher compression ratio than simply storing the original numbers.

2.

Explain the trade-off between lossless and lossy data compression. In what situations would you choose one method over the other?

3.

Describe two different methods of data compression. For each method, explain the principle behind it and give an example of a file format that uses that method.