Content deleted Content added
optimally efficient '''only''' for constrained integer-size codes... |
rv. That's not quite the right way of putting it. I'll try to rephrase. |
||
Line 5:
:<math>\operatorname{P}(n) = 2^{-n}\,</math>
for <math>n=1,2,3,...</math>. It is in fact optimal for any [[geometric distribution]]
:<math>\operatorname{P}(n) = (k-1)k^{-n}\,</math>
Line 16 ⟶ 14:
for <math>n=1,2,3,...</math>.
A modified unary encoding is used in [[UTF-8]]. Unary codes are also used in split-index schemes like the [[Golomb Rice code]]. Unary coding is [[Prefix-free code|prefix-free]], and can be uniquely decoded.
|