Lossless compression Flashcards
Run Length Encoding (RLE)
Rather than recording every pixel in a sequence, it records its value and the number of times it repeats.
Dictionary-based compression techniques
Compression algorithm searches through the text to find suitable entries in its own dictionary and translates the message accordingly.
“Do unto others as you would have others do unto you” can be compressed as?
1 2 3 4 5 6 7 3 8 2 5 or in binary using 33 bits, this compares to 51 characters or 51 bytes - a reduction of 92%.
What is compressed text stored with? And thus is dictionary- based compression worth it?
A dictionary (table of entries and binary numbers/characters), but with a longer body of text to be compressed, a dictionary becomes quite insignificant in size compared with the original and the original message can still be.