149
v1v2v3 (latest)

Twenty (simple) questions

Abstract

A basic combinatorial interpretation of Shannon's entropy function is via the "20 questions" game. This cooperative game is played by two players, Alice and Bob: Alice picks a distribution π\pi over the numbers {1,,n}\{1,\ldots,n\}, and announces it to Bob. She then chooses a number xx according to π\pi, and Bob attempts to identify xx using as few Yes/No queries as possible, on average. An optimal strategy for the "20 questions" game is given by a Huffman code for π\pi: Bob's questions reveal the codeword for xx bit by bit. This strategy finds xx using fewer than H(π)+1H(\pi)+1 questions on average. However, the questions asked by Bob could be arbitrary. In this paper, we investigate the following question: Are there restricted sets of questions that match the performance of Huffman codes, either exactly or approximately? Our first main result shows that for every distribution π\pi, Bob has a strategy that uses only questions of the form "x<cx < c?" and "x=cx = c?", and uncovers xx using at most H(π)+1H(\pi)+1 questions on average, matching the performance of Huffman codes in this sense. We also give a natural set of O(rn1/r)O(rn^{1/r}) questions that achieve a performance of at most H(π)+rH(\pi)+r, and show that Ω(rn1/r)\Omega(rn^{1/r}) questions are required to achieve such a guarantee. Our second main result gives a set Q\mathcal{Q} of 1.25n+o(n)1.25^{n+o(n)} questions such that for every distribution π\pi, Bob can implement an optimal strategy for π\pi using only questions from Q\mathcal{Q}. We also show that 1.25no(n)1.25^{n-o(n)} questions are needed, for infinitely many nn. If we allow a small slack of rr over the optimal strategy, then roughly (rn)Θ(1/r)(rn)^{\Theta(1/r)} questions are necessary and sufficient.

View on arXiv
Comments on this paper