京都大学 情報学研究科 知能情報学専攻 2019年2月実施 基礎科目 F2-1
Author
祭音Myyura (co-authored with GPT 5.6 SOL)
Description
Bob chooses a secret four-bit number. Alice proposes a four-bit number, and Bob replies with the number of 1 bits in Alice's proposal that are also 1 in the same positions of the secret. For example, for secret 1110, proposals 1100, 0100, and 1110 receive replies , , and , respectively.
When Alice proposes , let denote Bob's reply. Assume that Bob's secret is uniformly distributed over all four-bit numbers. The entropy of is given as approximately bits. You may use .
- Compute , , , and .
- Compute , , and .
- Prove that every strategy guaranteed to determine Bob's number requires at least three proposals in the worst case.
- The three fixed proposals
1110,1001, and0011always determine the secret. If , , and , find the secret. - Although
1111has the largest response entropy, no optimal strategy uses it: after proposing1111, three additional proposals are still required in the worst case. Explain this apparent paradox using information theory and mutual information.
题目描述
Bob 均匀随机选择一个秘密四位二进制数。Alice 每次提出一个四位数,Bob 只回答所提数字中有多少个 1 与秘密数的 1 处于相同位置。以 记提出 时的回答。
- 计算 、、、。
- 求 、、。
- 证明任何保证确定秘密数的策略,最坏情况至少需要三次提问。
- 已知固定提问
1110、1001、0011总能确定秘密数。在回答依次为 时,求秘密数。 - 解释为何
1111的单次平均信息量最大,却不会出现在优化最坏提问数的最优策略中。
Kai
Let the secret bits be independent variables . If a proposal contains ones, its reply is the sum of the corresponding secret bits and therefore has distribution .
Q.1.1
| Proposal | Reply distribution | Entropy (bits) | |
|---|---|---|---|
0000 | 0 | ||
1000 | 1 | ||
1100 | 2 | ||
1110 | 3 |
Hence
Q.1.2
The variables
depend on disjoint independent bits, so they are independent. Thus
Also and . Once is known, is in one-to-one correspondence with the still-uniform bit . Therefore
Finally,
Q.1.3
Suppose the first proposal contains ones. If its reply is , then exactly
secrets are compatible with that reply. For every , some reply leaves at least six candidates:
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| Largest candidate set | 16 | 8 | 8 | 6 | 6 |
Choose such a worst-case reply. Any second proposal has at most five possible replies, namely . It cannot assign six remaining candidates to six different replies. By the pigeonhole principle, at least two secrets remain indistinguishable after two proposals, even if the second proposal is chosen adaptively. Hence
Q.1.4
Write the secret as . The replies give
The second equation gives ; the third then gives , and the first gives . Thus
Q.1.5
Let be the secret and the -th reply. Since a reply is a deterministic function of and the chosen proposal,
Thus maximizing maximizes the average immediate information gained. It does not minimize the largest branch of the decision tree. Proposal 1111 reveals only the Hamming weight of the secret; in its worst branch, reply leaves all six weight-two secrets and gives no positional information among them.
Information accumulated over several replies obeys the chain rule
Later replies may be redundant with the first one, so their conditional mutual information can be small even when the first marginal entropy is large. An optimal worst-case strategy instead chooses proposals whose joint replies distinguish candidates in balanced, complementary ways. Hence maximum one-step entropy and minimum worst-case number of proposals need not select the same first question.
To verify the worst branch after an initial 1111, condition on reply . There are six weight-two secrets. A next proposal with two ones has a reply-1 branch containing four secrets; a final reply has at most three values on weight-two secrets, so it cannot distinguish all four. A proposal with one or three ones has a three-secret branch in which one bit is fixed and the position of one remaining 1 (or 0) is unknown. Any final proposal splits these three positions into at most two response classes. Proposals with zero or four ones provide no information. Thus two further proposals cannot suffice, whereas three single-bit proposals determine a weight-two secret. An initial 1111 therefore needs four proposals in the worst case.
This conclusion concerns the first proposal. A three-proposal strategy may use 1111 in a later, smaller branch: after 1110 receives reply 0, only 0000 and 0001 remain, and 1111 distinguishes them immediately. On the other branches, the fixed proposals 1001 and 0011 still finish within three proposals.