Encyclopedia > Unary coding

  Article Content

Unary coding

Unary coding is an entropy encoding that represents a number n with n ones followed by a zero. For example 3 is represented as 1110.

Unary coding is optimal for the probability distribution:

<math>P(x) = 2^{-(x+1)}</math>



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Battle Creek, Michigan

... household size is 2.43 and the average family size is 3.04. In the city the population is spread out with 27.2% under the age of 18, 8.7% from 18 to 24, 29.5% from 25 ...

 
 
 
This page was created in 29.1 ms