Year 9 Text Compression


Previous


Next

Compression is vitally important for transferring and storing information on computers. In this section we will be examining one type of compression related to how computers store text.

LEARN THE FUNDAMENTALS OF TEXT COMPRESSION

Task 3.1

Poi E Text Compression

Click on the image to open the task.

In the first task we are simply going to remove all the repeating characters or phrases in order to see how much of the content we don't need to store on the computer.

Task 3.2 

Encoding using Dictionaries

Click on the image to open the task.

You now need to encode the poem using the key provided.

Task 3.3

Decode the Message

Click on the image to open the task.

The text in this document has been compressed by a dictionary. You will need to uncompress it step by step.

This is a link to the code.org site

https://studio.code.org/s/text-compression/lessons/1/levels/2

TEXT COMPRESSION ASSESSMENT  

Complete using the online tool and show us your results

FURTHER RESOURCES

More Text Compression Widget

https://studio.code.org/s/text-compression/stage/1/puzzle/2

Extra for Experts

How much can you compress the story of the three pigs? Use the "Write you own" on the Text compression widget and see how low you can go!

Once upon a time, long, long ago, three little pigs set out to make their fortunes. The first little pig wasn’t very clever, and decided to build his house out of straw, because it was cheap. The second little pig wasn’t very clever either, and decided to build his house out of sticks, for the “natural” look that was so very much in fashion, even in those days. The third little pig was much smarter than his two brothers, and bought a load of bricks in a nearby town, with which to construct a sturdy but comfortable country home. 

Not long after his housewarming party, the first little pig was curled up in a chair reading a book, when there came a knock at the door. It was the big bad wolf, naturally.

“Little pig, little pig, let me come in!” cried the wolf. 

“Not by the hair on my chinny-chin-chin!” squealed the first little pig. 

“Then I’ll huff, and I’ll puff, and I’ll blow your house down!” roared the wolf, and he did huff, and he did puff, and the house soon collapsed. The first little pig ran as fast as he could to the house of sticks, and was soon safe inside. But it wasn’t long before the wolf came calling again. 

“Little pig, little pig, let me come in!” cried the wolf. 

“Not by the hair on my chinny-chin-chin!” squealed the second little pig. “Then I’ll huff, and I’ll puff, and I’ll blow your house down!” roared the wolf, and he did huff, and he did puff, and the house was soon so much firewood. The two terrified little pigs ran all the way to their brother’s brick house, but the wolf was hot on their heels, and soon he was on the doorstep. 

“Little pig, little pig, let me come in!” cried the wolf. 

“Not by the hair on my chinny-chin-chin!” squealed the third little pig. 

“Then I’ll huff, and I’ll puff, and I’ll blow your house down!” roared the wolf, and he huffed, and he puffed, and he huffed some more, but of course, the house was built of brick, and the wolf was soon out of breath. Then he had an idea. The chimney! He clambered up a handy oak tree onto the roof, only to find that there was no chimney, because the third little pig, being conscious of the environment, had installed electric heating. In his frustration, the wolf slipped and fell off the roof, breaking his left leg, and severely injuring his pride. As he limped away, the pigs laughed, and remarked how much more sensible it was to live in the city, where the only wolves were in the zoo. And so that is what they did, and of course they all lived happily ever after. 

NZ CURRICULUM

Digital Technologies | Progress Outcomes

COMPUTATIONAL THINKING FOR DIGITAL TECHNOLOGIES

At the end of this topic students will have had the opportunity to cover;