English

Generalizations of Length Limited Huffman Coding for Hierarchical Memory Settings

Data Structures and Algorithms 2021-10-22 v3 Information Theory math.IT

Abstract

In this paper, we study the problem of designing prefix-free encoding schemes having minimum average code length that can be decoded efficiently under a decode cost model that captures memory hierarchy induced cost functions. We also study a special case of this problem that is closely related to the length limited Huffman coding (LLHC) problem; we call this the {\em soft-length limited Huffman coding} problem. In this version, there is a penalty associated with each of the nn characters of the alphabet whose encodings exceed a specified bound DD(n\leq n), where the penalty increases linearly with the length of the encoding beyond DD. The goal of the problem is to find a prefix-free encoding having minimum average code length and total penalty within a pre-specified bound P{\cal P}. This generalizes the LLHC problem. We present an algorithm to solve this problem that runs in time O(nD)O( nD ). We study a further generalization in which the penalty function and the objective function can both be arbitrary monotonically non-decreasing functions of the codeword length. We provide dynamic programming based exact and PTAS algorithms for this setting.

Keywords

Cite

@article{arxiv.2010.05005,
  title  = {Generalizations of Length Limited Huffman Coding for Hierarchical Memory Settings},
  author = {Shashwat Banchhor and Rishikesh Gajjala and Yogish Sabharwal and Sandeep Sen},
  journal= {arXiv preprint arXiv:2010.05005},
  year   = {2021}
}

Comments

19 pages, 5 figures

R2 v1 2026-06-23T19:14:10.556Z