Overview
LZMA searches for repeated sequences in a large dictionary and encodes match decisions with adaptive probability models.
Compresses data with LZ-style matches and range-coded probability models.
Compact metadata for implementation and discovery.
LZMA searches for repeated sequences in a large dictionary and encodes match decisions with adaptive probability models.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n log n)
Worst
O(n log n)
Space
O(window)
copy(length, distance)Represents repeated bytes by length and distance into the dictionary.
Show symbols being transformed into codes and reconstructed by the decoder state.
LZMA should be used with the assumptions and tradeoffs of dictionary Compression in mind.
What each reference supports for this entry.
Official SDK documentation for LZMA dictionary compression, range coding, and implementation details.
Open sourceCompression reference for LZMA LZ-style dictionary compression and range-coding context.
Good next jumps from the relationship graph, ranked for useful discovery.
LZMA builds on dictionary match ideas in the LZ family.
Both are general-purpose compressors with different speed and ratio tradeoffs.