This is an old version, saved 4 Dec 2026, 15:25 by TechWritereditor. See the current version.

Lempel–Ziv–Welch

Lempel–Ziv–Welch (LZW) is a lossless data compression algorithm, meaning that compressed data can be restored exactly. It is used by many formats and is best known for bitmapped images.[1][2]

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][2] 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 handles repeated patterns well and needs little processing power.[2] The algorithm has been used in formats including GIF, TIFF, PostScript, PDF, the Unix compress program and the V.42bis modem standard.[2]

Patent dispute

CompuServe introduced the GIF format, which uses LZW, in 1987.[4] Many, including CompuServe, mistakenly believed the algorithm was in the public domain.[2] GIF became controversial in 1994, when Unisys began charging fees to license LZW.[4] Unisys required licences from developers of programs that created or displayed GIFs, while initially leaving end users and non-profit software alone.[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. ^ What is LZW and what are the issues surrounding it?. Indiana University Knowledge Base. kb.iu.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