arXiv:2610.01563cs.ITOct 2026

Manuscript Offprint

arXiv:2610.01563

Optimal Universal Coding of Integers

Wei Yan, Yunghsiang S. Han, Leqian Zheng

Abstract

Universal coding of integers (UCI) provides binary codewords for positive integers such that, for every non-increasing source distribution PP, the average codeword length stays within KK times max⁡{1,H(P)}\max\{1, H(P)\}. The smallest constant KK is called the minimum expansion factor of UCI C\mathcal{C}, denoted CC∗C_{\mathcal{C}}^{*}. The optimal minimum expansion factor C∗=inf⁡{CC∗}C^{*} = \inf\{C_{\mathcal{C}}^{*}\} is the minimum expansion factor corresponding to the optimal UCI. The optimal minimum expansion factor is currently known to lie in the range 2≤C∗≤2.03862 \le C^{*} \le 2.0386. In this paper, we construct a family of one-point plus uniform-tail distributions and prove that, for every universal code, the worst-case ratio is attained by a distribution in this family, so that the family is least favorable for the UCI problem. We further establish an inequality, called the UCI inequality, which plays the same role for UCI as the Kraft inequality does for prefix codes: for any real number BB, it decides whether BB lies below or above C∗C^{*}. Through the UCI inequality, we obtain an equivalent definition of C∗C^{*}. By numerical computation, we determine C∗=2.000124757036101⋯C^{*} = 2.000124757036101 \cdots, the first fifteen decimal digits being certified. Once C∗C^{*} is known, we can theoretically construct the optimal UCI.

Index Terms

Universal coding of integers, optimal codes, source coding

References (32)