Overview
Delta Encoding is useful when consecutive values are close, because the differences are often smaller or more repetitive.
Stores changes between neighboring values instead of the values themselves.
Compact metadata for implementation and discovery.
Delta Encoding is useful when consecutive values are close, because the differences are often smaller or more repetitive.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(n)
delta[i] = value[i] - value[i - 1]Stores each value as a change from the previous value.
Show raw values turning into smaller step differences.
Delta Encoding is often paired with Huffman Coding, arithmetic coding, or another entropy coder for the delta values.
What each reference supports for this entry.
Compression textbook support for Delta Encoding's coding model, decoder behavior, and implementation tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Delta encoding stores changes between values instead of repeated runs.
Small deltas are often compacted with variable-length codes.