Run Length Encoding (RLE), Dictionary encoding Flashcards

1
Q

RLE

A

run length encoding is a ​method of lossless compression​ in which repeated values are removed and replaced with ​one occurrence​ of the data followed by the ​number of times​ it should be repeated.

eg: the string AAAAAABBBBBCCC could be represented as A6B5C3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Dictionary Encoding

A

Frequently occurring pieces of data are replaced with an index and compressed data is stored alongside a ​dictionary ​which matches the frequently occurring data to an index. The original data can then be restored using the dictionary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly