Optimal Prefix-Free Codes for Unequal Letter Costs: Dynamic Programming with the Monge Property
نویسندگان
چکیده
In this paper we discuss a variation of the classical Huffman coding problem: finding optimal prefix-free codes for unequal letter costs. Our problem consists of finding a minimal cost prefix-free code in which the encoding alphabet consists of unequal cost (length) letters, with lengths α and β. The most efficient algorithm known previously required O(n) time to construct such a minimal-cost set of n codewords. In this paper we provide an O(n) time algorithm. Our improvement comes from the use of a more sophisticated modeling of the problem combined with the observation that the problem possesses a “Monge property” and that the SMAWK algorithm on monotone matrices can therefore be applied.
منابع مشابه
SC - 2 00 0 - 05 Optimal Pre x - Free Codes for Unequal Letter Costs : Dynamic Programming with the Monge PropertyProposed Running Head : Pre x Codes for Unequal
In this paper we discuss the problem of nding optimal pre x-free codes for unequal letter costs, a variation of the classical Hu man coding problem. Our problem consists of nding a minimal cost pre x-free code in which the encoding alphabet consists of unequal cost (length) letters, with lengths and . The most e cient algorithm known previously requires O(n2+max( ; )) time to construct such a m...
متن کاملOptimal Pre x - Free Codes for UnequalLetter Costs : Dynamic Programming with the
In this paper we discuss a variation of the classical Huuman coding problem: nding optimal preex-free codes for unequal letter costs. Our problem consists of nding a minimal cost preex-free code in which the encoding alphabet consists of unequal cost (length) letters, with lengths and. The most eecient algorithm known previously required O(n 2+max(;;)) time to construct such a minimal-cost set ...
متن کاملA Dynamic Programming Algorithm for Constructing Optimal Prefix-Free Codes with Unequal Letter Costs
We consider the problem of constructing prefix-free codes of minimum cost when the encoding alphabet contains letters of unequal length. The complexity of this problem has been unclear for thirty years with the only algorithm known for its solution involving a transformation to integer linear programming. In this paper we introduce a new dynamic programming solution to the problem. It optimally...
متن کاملOptimal Pre x-Free Codes for Unequal Letter Costs and Dynamic Programming with the Monge Property
The Monge property emerges, sometimes quite mysteriously, in many optimization problems and usually leads to running time improvements of at least a linear factor. In this paper a novel application of memory reduced dynamic programming combined with a Monge property and the smawk algorithm is given for a variation of the Huuman coding problem: optimal preex-free codes for unequal letter costs. ...
متن کاملA Dynamic Programming Algorithm for Constructing Optimal Refix-Free Codes for Unequal Letter Costs
We consider the problem of constructing prefix-free codes of minimum cost when the encoding alphabet contains letters of unequal length. The complexity of this problem has been unclear for thirty years with the only algorithm known for its solution involving a transformation to integer linear programming. In this paper we introduce a new dynamic programming solution to the problem. It optimally...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- J. Algorithms
دوره 42 شماره
صفحات -
تاریخ انتشار 1998