Asymptotic Analysis of Run-Length Encoding

Abstract

Gallager and Van Voorhis have found optimal prefix-free codes (K) for a random variable K that is geometrically distributed: [K=k] = p(1-p)k for k 0. We determine the asymptotic behavior of the expected length Ex[\#(K)] of these codes as p 0: Ex[\#(K)] = 2 1 p + 2 2 + 2 + f(2 1 p + 2 2) + O(p), where f(z) = 4· 2-21-\z\ - \z\ - 1, and \z\ = z - z is the fractional part of z. The function f(z) is a periodic function (with period 1) that exhibits small oscillations (with magnitude less than 0.005) about an even smaller average value (less than 0.0005).

0

Discussion (0)

Sign in to join the discussion.

Loading comments…