Unary coding is an entropy encoding that represents a natural number, "n", with "n" − 1 zeros followed by a one.
Unary coding is an entropy encoding that represents a natural number, "n", with "n" − 1 ones followed by a zero. Some representations use "n" − 1 zeros followed by a one.