加载中…
It is well-known that, given a probability distribution over characters, in the worst case it takes (\Theta (n \log n)) bits to store a prefix code with minimum expected codeword length. However, in this paper we first show that, for any with (1 / \epsilon = \Oh{\polylog{n}}), it takes bits to store a prefix code with expected codeword length within of the minimum. We then show that, for any constant (c > 1), it takes bits to store a prefix code with expected codeword length at most times the minimum. In both cases, our data structures allow us to encode and decode any character in time.

生成讲解博客的中文版本

生成AI智能校验的中文版本