Storage of large amounts of text can require a lot of bytes. Through the use of patterns and dictionaries, text can be compressed into a smaller format to store and transmit and then uncompressed to restore the original format.
- View Offline
- With larger and larger amounts of content,…we need to have ways to store it and transmit it.…The larger it gets the more storage…it takes to manage it,…and more bandwidth is needed to…reduce the amount of time it takes to transmit it.…You can make the storage and transmission…method larger, or you can make the data smaller.…Compression is exactly that.…It allows data to occupy a smaller amount of space,…but at the same time, preserve the original data…through compression protocols…that encode and decode the compressed file.…
When we write text we write the words…that are part of the message.…These words convey the meaning of the sentence.…The computer though doesn't necessarily care…about the meaning of a sentence,…but instead focuses on the encoding…of each character as a piece of data.…So if you look at this text,…it has exactly 1,934 characters, including spaces.…We can look for common combinations…of characters and swap them out…with a unique character.…Since there are thousands of Unicode…characters available, we can swap them with any of these.…
This course is the first in our Computer Science Principles series, designed around the AP Computer Science Principles (CSP) curriculum. It is a great foundation for anyone, at any age, to prepare for careers in technology and computer science. Lessons in this segment cover the building blocks of computing: binary logic, number systems, text and image encoding, compression, and simple communication protocols. Understanding these basics will help you understand the interplay between hardware, software, data, networks, and the people that use them.
- Binary and bits
- Digital communication
- Number systems
- Encoding text
- Compressing text and images