Text Compression
CSinSF Summer Institute
When you send text messages to a friend, do you spell every word correctly?
Why do you use these abbreviations? What is the benefit?
Compression: Same Data, Fewer Bits
Activity: Decode this Mystery Text
Activity: Decode this Mystery Text
Pitter_patter_patter_listen_to_the_rain_pitter_patter_
pitter_patter_on_the_window_pane
Activity: Decode this Mystery Text
Activity: Use the Text Compression Widget
Activity: Use the Text Compression Widget
Activity: Develop a heuristic for doing compression
In computer science there is a word for strategies to use when you’re not sure what the exact or best solution to a problem is.
Heuristic
A problem solving approach (typically an algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible.
Activity: Develop a heuristic for doing compression
�
Share-out
Share your heuristic findings...
Wrap-up
What did all groups’ processes for compression have in common?
Vocabulary
Heuristic - a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible.
Lossless Compression - a data compression algorithm that allows the original data to be perfectly reconstructed from the compressed data.
Lossy Compression (or irreversible compression) - a data compression method that uses inexact approximations, discarding some data to represent the content. Most commonly seen in image formats like .jpg.