An explicit expression for the cost of a class of Huffman trees |
| |
Authors: | F.K. Hwang |
| |
Affiliation: | Bell Laboratories, Murray Hill, NJ 07974, USA |
| |
Abstract: | Let Tn denote a binary tree with n terminal nodes V={υ1,…,υn} and let li denote the path length from the root to υi. Consider a set of nonnegative numbers W={w1,…,wn} and for a permutation π of {1,…,n} to {1,…,n}, associate the weight wi to the node υπ(i). The cost of Tn is defined as C(Tn∣W)=Minπ∑ni=1wilπ(i).A Huffman tree Hn is a binary tree which minimizes C(Tn∣W) over all possible Tn. In this note, we give an explicit expression for C(Hn∣W) when W assumes the form: wi=k for i=1,…,n?m; wi=x for i=n?m+1,…,n. This simplifies and generalizes earlier results in the literature. |
| |
Keywords: | |
本文献已被 ScienceDirect 等数据库收录! |
|