Study guide: Represent, Compress and Protect Information
Decode 3A2B. Compare keeping that record, sorting its expanded text and keeping only the A count. Explain why a public character code is not a security guarantee.
Ideas to explain in your own words
- Different encodings may use different storage amounts for the same text. Our simplified exercise assigns a constant bytes-per-character value; real Unicode encodings can use variable amounts. Count characters and bytes under the stated rule rather than claiming every character has a universal size.
- Run-length encoding stores a repeated value with its run count. Our format 3A2B means three A symbols followed by two B symbols. It is lossless for these records because decoding restores every value in order. Compression efficiency depends on the input and representation overhead.
- A transformation is lossless for a stated source when the original can be recovered exactly. A lossy transformation discards some information. Keeping only an average loses individual values unless another record preserves them. A smaller representation is not automatically reversible.
- Encoding changes how information is represented so systems can interpret it. Encryption protects confidentiality using cryptographic methods and keys. A public substitution or character code is not automatically secure encryption. Neither protects against every threat, such as an authorized recipient sharing the plaintext.
Useful vocabulary
- encoding
- Rules for representing information.
- lossless
- Reversible without losing the stated original information.
- encryption
- Cryptographic protection of confidentiality using a key.
Watch your reasoning
- Character count and byte count need not be equal.
- Do not sort runs by symbol or add all counts to one symbol.
- A visually similar result is not proof of exact recovery.
- A hidden-looking code is not evidence of a secure cryptographic scheme.
A worked review example
Classroom encoding stores 5 characters at exactly 2 bytes each. Storage excluding all overhead? The supported answer is 10 bytes. Applying the stated rule gives 10 bytes. Multiply the supplied character count by the stated bytes per character. Character count and byte count need not be equal. Different encodings may use different storage amounts for the same text. Calculation: (5*2) = 10. A public character-to-number table maps A→1 and B→2. Under that rule, AB becomes 1, 2 and every reader with the table can decode it. This is representation encoding. A keyed cryptographic mechanism has a different purpose: protecting confidentiality. A role-based rule about who may read the record describes access permission. Merely calling the visible numbers secret supplies no evidence that readers cannot recover the message.
Make a practice plan
- Make a four-row summary, one row for each lesson, with its computing idea and one worked decision.
- Explain one tempting mistake using the actual supplied example.
- Complete the new unit review before consulting its explanations.
- Try the transfer task on paper and compare your evidence against the model response.