Optimal Prefix Codes with Fewer Distinct Codeword Lengths are Faster to Construct
数据结构与算法
2016-09-30 v4 信息论
math.IT
摘要
A new method for constructing minimum-redundancy binary prefix codes is described. Our method does not explicitly build a Huffman tree; instead it uses a property of optimal prefix codes to compute the codeword lengths corresponding to the input weights. Let be the number of weights and be the number of distinct codeword lengths as produced by the algorithm for the optimum codes. The running time of our algorithm is . Following our previous work in \cite{be}, no algorithm can possibly construct optimal prefix codes in time. When the given weights are presorted our algorithm performs comparisons.
引用
@article{arxiv.cs/0509015,
title = {Optimal Prefix Codes with Fewer Distinct Codeword Lengths are Faster to Construct},
author = {Ahmed Belal and Amr Elmasry},
journal= {arXiv preprint arXiv:cs/0509015},
year = {2016}
}
备注
23 pages, a preliminary version appeared in STACS 2006