⌨️ap computer science principles review

LZW compression algorithm

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

LZW compression algorithm is a lossless data compression method that replaces repeated sequences of characters with shorter codes. It is commonly used in file formats like GIF and TIFF.

"LZW compression algorithm" also found in:

LZW compression algorithm Definition - AP Computer Science Principles Key Term | Fiveable