Skip to content
Learnearn.uk » KS3 Algorithms Unit » Compression Algorithms

Compression Algorithms

Introduction

Why do we need compression?

Today’s modern smartphones have huge amount of storage, so why do we need compression? Let’s find out.

Question 1a

An iPhone camera has a resolution of 12 Megapixels and each pixel requires 3 bytes to store the image. How big would would an uncompressed image be?

Hint: Mega = million

Answer

Question 1b

If an iPhone has a storage capacity of 32 Gigabytes, how many images could you store on it before you ran out of space?

Hint: Giga = Billion

That means that without compression you would run out of space before you even took a thousand selfies….

Question 1c

Now image recording videos – A normal video would record 24 frames per second. Assuming your iPhone recorded at 4K resolution (3840×2160 pixels). How long could you record for before running out of space?

As you can see without compression your phone wouldn’t be very useful.

 

Run Length Encoding

Activity

Learning Log

Resources