1.3.1 (a) + (b)Compression

0.0(0)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

Lossy vs Lossless, RLE + Dictionary Based-Compression

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

What is compression?

the process used to reduce the file size (reduces storage space required to store the file)

2
New cards

Why is compression important when sharing files over networks/the internet?

larger files = longer to transfer

3
New cards

What is lossy compression?

the process of reducing file size while also removing unnecessary data

4
New cards

What is lossless compression?

the process of reducing file w/o losing any data

5
New cards

Where is lossy compression used?

  • images - JPEG

  • audio files - MP3

6
New cards

Where is lossless compression used?

  • high resolution images - PNG

  • text documents - ZIP

7
New cards

From what type of compression can the original file be recovered?

lossless compression

8
New cards

What is run length encoding (RLE)?

lossless compression - repeated data values with:

  • a single value

  • the number of occurrences

e.g.

OG data: AAARRRRRRWWWW

Compressed data: 3A6R4W

9
New cards

What are advantages of run length encoding (RLE)?

  • simple & efficient - for data w/ repeated values

  • lossless - og data can be reconstructed

  • fast & easy to implement - algorithms easy to execute

10
New cards

What are disadvantages of run length encoding (RLE)?

  • inefficient for data w/ few repeated values

  • limited application - only effective for certain types of data (e.g. B&W images,simple graphic files)

11
New cards

What is Dictionary Based Compression?

replaces repeated patterns of data with shorter codes from a dynamically built dictionary

e.g. OG data: ABABACABAC

dictionary: AB=1; AC=2;

compressed data: 11212

12
New cards

What are advantages of Dictionary Based compression?

  • efficient for larger data sets - effective compression

  • scalable - better for complex data (than RLE) w/ varied repetitions

  • widely used in formats like ZIP & PNG

13
New cards

What are disadvantages of Dictionary Based compression?

  • requires more processing power - building & managing dictionary is more computationally intensive

  • ineffective for very small files - dictionary may not reduce file size enough to offset dictionary’s own storage