Why do files get smaller when zipped?
Show answer & explanation
Answer: Patterns are replaced with codes
Colors are reduced — Wrong. Zip is lossless compression—works on any file type, not just images. It finds repeated byte patterns and represents them with shorter codes.
Patterns are replaced with codes ✓ — Correct! Zip uses lossless compression algorithms (like DEFLATE). They find repeated patterns and replace with shorter references. Example: 'AAAAAAA' becomes '7A'. Huffman coding assigns shorter codes to frequent characters. Dictionary-based methods reference previous occurrences. Unzipping reconstructs original data perfectly. Already-compressed files (JPG, MP4) zip poorly—no redundancy left!
Resolution is lowered — Wrong. Zip doesn't change resolution—that's lossy image compression. Zip is lossless, finding patterns to encode more efficiently without data loss.
More Technology questions
- Why can Cloudflare's lava-lamp camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- If a phone game shuffle and a physical noise source both look messy, what makes only one useful for security against someone who knows the code?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?
- Why does the Ferrari 296 cabin sound duct take sound before exhaust treatment?
- Why do sound engineers tune engine orders instead of just making a Ferrari-like exhaust louder?
