Overview
Golomb Coding splits a number into a quotient and remainder, making it useful for geometric-like distributions.
Encodes small nonnegative integers compactly when small values are common.
Compact metadata for implementation and discovery.
Golomb Coding splits a number into a quotient and remainder, making it useful for geometric-like distributions.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(1)
q = floor(value / m); r = value mod mSplits an integer into the unary-coded quotient and remainder.
Show integers becoming quotient and remainder code parts.
Golomb Coding operates in O(n) time and O(1) space within the Universal Coding family. Key governing relation: q = floor(value / m); r = value mod m. Often compared with Delta Encoding and Run-Length Encoding.
What each reference supports for this entry.
Original reference for run-length and geometric-distribution coding with Golomb parameters.
Open sourceCompression textbook support for Golomb Coding's coding model, decoder behavior, and implementation tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Both encode positive integers compactly under different assumptions.
Rice coding is Golomb coding with a power-of-two divisor.