Overview
LZSS improves on basic LZ77 encoding by emitting a flag that says whether the next item is a literal or a length-distance reference.
Compresses by choosing between literal bytes and LZ77-style back-references.
Compact metadata for implementation and discovery.
LZSS improves on basic LZ77 encoding by emitting a flag that says whether the next item is a literal or a length-distance reference.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
Show encoding repeated substrings as offset-length references on a small dictionary compression example.
LZSS operates in O(log n) time and O(n) space within the Dictionary Compression family. Often compared with Cuckoo Hashing and Hash-DRBG.
What each reference supports for this entry.
Compression textbook support for LZSS's coding model, decoder behavior, and implementation tradeoffs.
Open sourceOriginal LZSS reference for textual substitution, literal/reference decisions, and dictionary phrase replacement.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.