English

Optimal Binary Variable-Length Codes with a Bounded Number of 1's per Codeword: Design, Analysis, and Applications

Information Theory 2025-12-03 v3 Data Structures and Algorithms math.IT

Abstract

In this paper, we consider the problem of constructing optimal average-length binary codes under the constraint that each codeword must contain at most DD ones, where DD is a given input parameter. We provide an O(n2D)O(n^2D)-time complexity algorithm for the construction of such codes, where nn is the number of codewords. We also describe several scenarios where the need to design these kinds of codes naturally arises. We also provide a Kraft-like inequality for the existence of (optimal) variable-length binary codes, subject to the above-described constraint on the number of 1's in each codeword.

Keywords

Cite

@article{arxiv.2501.11129,
  title  = {Optimal Binary Variable-Length Codes with a Bounded Number of 1's per Codeword: Design, Analysis, and Applications},
  author = {Roberto Bruno and Roberto De Prisco and Ugo Vaccaro},
  journal= {arXiv preprint arXiv:2501.11129},
  year   = {2025}
}

Comments

Unfortunately, we have to withdraw the claim in Theorem 2, since its proof contains a flaw

R2 v1 2026-06-28T21:10:46.879Z