The text I chose to compress:A_tutor_who_tooted_the_flute_Tried_to_tutor_two_tooters_to_toot_Said_the_two_to_their_tutor,"Isit_harder_to_toot_Or_to_tutor_two_tooters_to_toot?"
The dictionary: toot to two tur★ _☆ ers☇ the
Compression Numbers:Compressed text size: 66 bytesDictionary size: 41 bytesTotal: 107 bytesOriginal text size: 148 bytesCompression: 27.7%
Process:1) Looked for parts of word that repeated (i.e. "th" in "the", "that", "those", etc)2) Looked for phrases that repeated (used symbols already in dictionary, if possible)3) Looked for words that repeated (using symbols in dictionary, if possible)
Challenges students may encounter include:Deciding when it is worth compressing as some compressions will reduce the compression rateFinding the patterns and realizing that they can use the symbols as part of the word/phrase they are compressing
I will encourage students to use trial and error and to continue to look at the compression numbers to see what is of value to compress. Also will remind the students to consider the dictionary size since it is part of the file size!
My students had some fun with this one with each of them trying to get better compression than the others. I have two sections and the intersection rivalry was fun. Of course keeping it from getting out of hand is always an issue but for a single event it was more fun and motivation than anything.