计算机科学 > 数据结构与算法
[提交于 2020年9月6日 (v1),最后修订于 2026年1月29日 (此版本, v2)]
标题:Source Coding with Free Bits and the Multi-Way Number Partitioning Problem
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We introduce a new variant of variable-length source coding for sending a source over two parallel channels, one of which is costly and the other free. We give a complete solution to this problem. Next, we relate the problem to the number partitioning problem, which is the task of dividing a given list of numbers into a pre-specified number of subsets such that the sum of the numbers in each subset is as nearly equal as possible. We introduce two new objective functions for this problem and show that an adapted version of the Huffman coding algorithm (with a runtime of $\mathcal{O}(n \log n)$ for input size $n$) produces the optimal solution for one objective function, and a nearly optimal solution for the other objective function.