Constrained Optimal Querying: Huffman Coding and Beyond

Shuyuan Zhang, Jichen Sun, Shengkang Chen
10/8/2022
cs.IT

Official code: MadCreeper/Constrained-Optimal-Querying-Huffman-Coding-and-Beyond (3 stars, TeX, last commit 2022-05-08).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

31TeX, Jupyter NotebookApr 11, 20224 years ago

Similar Papers

Cite this paper

@article{zhang2022constrained,
  title  = {Constrained Optimal Querying: Huffman Coding and Beyond},
  author = {Shuyuan Zhang and Jichen Sun and Shengkang Chen},
  year   = {2022},
  eprint = {2210.04013},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04013}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.04013.svg)](https://codeofpaper.com/paper/2210.04013)

Discussion