[英]What is the best encoding if the cost in Huffman tree is 2^len?
最近遇到一個編碼問題,和哈夫曼樹編碼很像:item出現的越多,得到的code越短。
但區別在於:在霍夫曼編碼中,一種類型的項目的所有成本是length_of_code_for_item * frequencyness ,但在我的要求中,成本是2^length_of_code_for_item * frequencyness 。
任何現有的編碼算法?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.