Lempel–Ziv–Welch

From WikiTech, the free technology encyclopedia

Lossless data compression algorithm (1984)

5 sources from Library of Congress, Stanford University, IEEE Spectrum and 1 more. Checked by ByteExplained editors on 4 December 2026. How we check facts

Lempel–Ziv–Welch (LZW) is a lossless data compression algorithm, meaning that compressed data can be restored exactly. It is used by many file formats.[1]

Contents
  1. History
  2. How it works
  3. Patent dispute
  4. See also
  5. References

History

LZW builds on compression methods that Abraham Lempel and Jacob Ziv published in 1977 and 1978, which became known as LZ77 and LZ78.[3] Terry Welch refined their approach into LZW and described it in "A Technique for High-Performance Data Compression", published in the journal Computer in June 1984.[1] Welch worked for the Sperry Corporation, which was granted US patent 4,558,302 for the method in 1985; Sperry later merged with Burroughs Corporation to form Unisys.[1]

How it works

LZW uses a translation table that maps strings of input characters to codes.[1] It has been used in the GIF and TIFF image formats and in a number of compression programs and hardware devices.[2]

Patent dispute

CompuServe introduced the GIF format, which uses LZW, in 1987.[4] CompuServe's programmers had assumed that the algorithm was in the public domain.[2] GIF became controversial in 1994, when Unisys began charging fees to license LZW.[4] Under Unisys's 1994 plan, software companies selling products that used the GIF format were to pay it 0.45% of the selling price.[2] In 1999 it said that a written licence was needed for all use of LZW software, including free software, and the GNU Project avoided GIF files on its web pages because of the LZW patents.[5] The Unisys patent expired in the United States on 20 June 2003 and in Europe, Japan and Canada in 2004; a related IBM patent expired in the US in 2006.[5]

Ziv received the IEEE Medal of Honor in 2021, and the LZ77 and LZ78 methods remain in use in formats such as ZIP (file format) and Portable Network Graphics.[3]

See also

References

  1. ^ LZW (Lempel-Ziv-Welch) Compression. Library of Congress. loc.gov
  2. ^ LZW Compression & GIF. Stanford University. 2000-06-05. cs.stanford.edu
  3. ^ Remembering Jacob Ziv. IEEE Spectrum. 2023-04-10. spectrum.ieee.org
  4. ^ GIF (Graphics Interchange Format), Version 89a. Library of Congress. loc.gov
  5. ^ Why There Are No GIF Files on GNU Web Pages. Free Software Foundation. gnu.org
Technologies on WikiTech
Data compression
All technologies