English

Generalized Universal Coding of Integers

Information Theory 2022-04-18 v1 math.IT

Abstract

Universal coding of integers~(UCI) is a class of variable-length code, such that the ratio of the expected codeword length to max{1,H(P)}\max\{1,H(P)\} is within a constant factor, where H(P)H(P) is the Shannon entropy of the decreasing probability distribution PP. However, if we consider the ratio of the expected codeword length to H(P)H(P), the ratio tends to infinity by using UCI, when H(P)H(P) tends to zero. To solve this issue, this paper introduces a class of codes, termed generalized universal coding of integers~(GUCI), such that the ratio of the expected codeword length to H(P)H(P) is within a constant factor KK. First, the definition of GUCI is proposed and the coding structure of GUCI is introduced. Next, we propose a class of GUCI C\mathcal{C} to achieve the expansion factor KC=2K_{\mathcal{C}}=2 and show that the optimal GUCI is in the range 1KC21\leq K_{\mathcal{C}}^{*}\leq 2. Then, by comparing UCI and GUCI, we show that when the entropy is very large or P(0)P(0) is not large, there are also cases where the average codeword length of GUCI is shorter. Finally, the asymptotically optimal GUCI is presented.

Keywords

Cite

@article{arxiv.2204.07398,
  title  = {Generalized Universal Coding of Integers},
  author = {Wei Yan and Sian-Jheng Lin and Yunghsiang S. Han},
  journal= {arXiv preprint arXiv:2204.07398},
  year   = {2022}
}
R2 v1 2026-06-24T10:49:03.182Z