arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.04013cs.ITmath.IT
收藏

约束最优查询:Huffman编码及其他

Constrained Optimal Querying: Huffman Coding and Beyond

Shuyuan Zhang, Jichen Sun, Shengkang Chen

摘要:

众所周知,霍夫曼编码在某些决策问题中是有用的,这些决策问题涉及最小化(自由选择的)查询的平均数量以确定未知的随机变量。然而,在查询更受约束的问题中,原始的霍夫曼编码不再起作用。在本文中,我们提出了一个通用的模型来描述这些问题和两个编码方案:一个是基于霍夫曼,另一个称为GBSC(贪婪二进制分离编码)。我们证明了GBSC的最优性,通过归纳二进制决策树,告诉我们,GBSC是至少一样好的香农编码。然后,我们比较了基于这两个代码的两个算法,通过测试他们与两个问题:DNA检测和1-player战舰,并发现这两个都是体面的近似算法,与基于霍夫曼的算法给出了一个预期的长度的1.1倍,真正的最优DNA检测问题,和GBSC产生的平均查询次数的1.4倍,理论上的最优1-player战舰。

英文摘要:

Huffman coding is well known to be useful in certain decision problems involving minimizing the average number of (freely chosen) queries to determine an unknown random variable. However, in problems where the queries are more constrained, the original Huffman coding no longer works. In this paper, we proposed a general model to describe such problems and two code schemes: one is Huffman-based, and the other called GBSC (Greedy Binary Separation Coding). We proved the optimality of GBSC by induction on a binary decision tree, telling us that GBSC is at least as good as Shannon coding. We then compared the two algorithms based on these two codes, by testing them with two problems: DNA detection and 1-player Battleship, and found both to be decent approximating algorithms, with Huffman-based algorithm giving an expected length 1.1 times the true optimal in DNA detection problem, and GBSC yielding an average number of queries 1.4 times the theoretical optimal in 1-player Battleship.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑