计算机科学 > 数据结构与算法
[提交于 2008年6月30日]
标题:A Dynamic Programming Approach To Length-Limited Huffman Coding
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The ``state-of-the-art'' in Length Limited Huffman Coding algorithms is the $\Theta(ND)$-time, $\Theta(N)$-space one of Hirschberg and Larmore, where $D\le N$ is the length restriction on the code. This is a very clever, very problem specific, technique. In this note we show that there is a simple Dynamic-Programming (DP) method that solves the problem with the same time and space bounds. The fact that there was an $\Theta(ND)$ time DP algorithm was previously known; it is a straightforward DP with the Monge property (which permits an order of magnitude speedup). It was not interesting, though, because it also required $\Theta(ND)$ space. The main result of this paper is the technique developed for reducing the space. It is quite simple and applicable to many other problems modeled by DPs with the Monge property. We illustrate this with examples from web-proxy design and wireless mobile paging.
提交历史
来自:Mordecai Golin[v1] 2008年6月30日 星期一 14:13:18 UTC