Data compression

From WikiTech, the free technology encyclopedia

Encoding data so it takes up less space

4 sources from Encyclopaedia Britannica, EBSCO Research Starters, IEEE Spectrum and 1 more. Checked by ByteExplained editors on 5 December 2026. How we check facts

Data compression is the reduction of the amount of data needed to store or transmit information, usually by encoding it in a more efficient way.[1] Smaller files take up less storage and move across networks more quickly.[2]

Contents
  1. Lossless and lossy compression
  2. History
  3. Importance
  4. See also
  5. References

Lossless and lossy compression

Lossless compression makes files smaller while allowing the original data to be restored exactly.[3] It suits work where every detail matters, and formats such as Portable Network Graphics and GIF use it.[2] Most lossless methods work by finding repeated patterns in a file and replacing them with shorter codes.[2]

Lossy compression permanently discards the parts of the data that people are least likely to notice, so the result is not a perfect copy of the original.[3] Well-known lossy formats include JPEG for images and MP3 for audio.[3] Lossy files can be very small, but they lose quality each time they are edited and saved again.[2]

History

The idea is older than computers. Morse code gave the shortest signals to the most common letters, an early form of compression.[1]

While a graduate student at the Massachusetts Institute of Technology, David A. Huffman wrote a term paper describing what became known as Huffman coding.[4] The method gives the shortest codes to the most frequent patterns, but it needs two passes through a file.[3] Huffman codes went on to be used in fax machines, modems, computer networks and high-definition television.[4]

In 1977 Jacob Ziv and Abraham Lempel published an algorithm, now called LZ77, that could compress data in a single pass by replacing repeated sequences with short pointers to earlier copies.[3] A refinement, LZ78, followed in 1978, and a later variant by Terry Welch, Lempel–Ziv–Welch, became especially widespread.[3] Lempel–Ziv methods underpin the Unix compress program, Gzip and the GIF and TIFF image formats.[3]

Importance

Compression became more important as the Internet grew, because early connections over slow telephone lines made large image, audio and video files hard to transfer.[2] The theoretical limit that compression methods aim for is set by the information theory of Claude Shannon.[3]

See also

References

  1. ^ Data compression. Encyclopaedia Britannica. 2026-09-11. britannica.com
  2. ^ Data compression. EBSCO Research Starters. ebsco.com
  3. ^ From WinZips to Cat GIFs, Jacob Ziv's Algorithms Have Powered Decades of Compression. IEEE Spectrum. 2021-04-21. spectrum.ieee.org
  4. ^ David A. Huffman memorial press release. University of California, Santa Cruz. 1999-10-14. www1.ucsc.edu
Technologies on WikiTech
Data storage
Mathematics of computing
All technologies