Overview
Rice coding is a Golomb coding variant that is fast to encode and decode when values follow a geometric-like distribution.
Encodes nonnegative integers using quotient-remainder codes with a power-of-two divisor.
Compact metadata for implementation and discovery.
Rice coding is a Golomb coding variant that is fast to encode and decode when values follow a geometric-like distribution.
Quick facts
Runtime and memory behavior at a glance.
Best
O(log n)
Average
O(log n)
Worst
O(log n)
Space
O(1)
q = floor(n / 2^k), r = n mod 2^kSplits an integer into a unary quotient and k-bit remainder.
Show symbols being transformed into codes and reconstructed by the decoder state.
Rice Coding should be used with the assumptions and tradeoffs of universal Integer Coding in mind.
What each reference supports for this entry.
Compression reference for Rice Coding Golomb/Rice integer coding and quotient-remainder representations.
Good next jumps from the relationship graph, ranked for useful discovery.
Both are variable-length integer coding methods.
Rice coding specializes Golomb coding to power-of-two parameters.