1975/03/01 by Robert G. Gallager, D. van Voorhis · 2 citations
Computer Science · Biochemistry, Genetics and Molecular Biology · #Algorithms and Data Compression #DNA and Biological Computing #Error Correcting Code Techniques
paper · doi:10.1109/tit.1975.1055357
openalex publication_date 1975/03/01 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/29
LetP(i)= (1 - θ)θibe a probability assignment on the set of nonnegative integers where\thetais an arbitrary real number,0 < θ < 1. We show that an optimal binary source code for this probability assignment is constructed as follows. Letlbe the integer satisfyingθl + θl+1 ≤ 1 < θl + θl-1and represent each nonnegative integeriasi = lj + rwhenj = \lfloor i/l \rfloor, the integer part ofi/l, andr = [i] mod l. Encodejby a unary code (i.e.,jzeros followed by a single one), and encoderby a Huffman code, using codewords of length\lfloor log2 l \rfloor, forr < 2\lfloor log l+1 \rfloor - l, and length\lfloor log2 l \rfloor + 1otherwise. An optimal code for the nonnegative integers is the concatenation of those two codes.