BMO/BMO
2017 British Mathematical Olympiad
10 道题目
British Mathematical OlympiadRound 1Round 2
选择题目
点击题号切换,正文区一次只显示一道题
4. Bobby's booby-trapped safe requires a $3$-digit code to unlock it. Alex has a probe which can test combinations without typing them on the safe. The probe responds *Fail* if no individual digit is correct. Otherwise it responds *Close*, including when all digits are correct. For example, if the correct code is $014$, then the responses to $099$ and $014$ are both *Close*, but the response to $140$ is *Fail*. If Alex is following an optimal strategy, what is the smallest number of attempts needed to guarantee that he knows the correct code, whatever it is?
考场第一眼 / First look
把每个密码看成三元组 $(x_1,x_2,x_3)\in\{0,1,\ldots,9\}^3$。一次探测 $(q_1,q_2,q_3)$ 返回 Fail,恰好表示三个独立排除式 $x_i\ne q_i$ 同时成立;返回 Close 则只表示其中至少一个等式成立。下界应沿着连续 Fail 的合法分支走,因为每次 Fail 在每一位至多排除一个数字。上界则先探测 $000,111,\ldots,888$,把问题缩成至多三个实际出现的数字,再用已知绝不出现的数字作“填充符”,把一次探测变成对某一位的单独是非询问。
最困难的收尾是恰有两个不同数字出现于前九次 Close 结果时;下面的树给出四问内完成的自适应策略。

最困难的收尾是恰有两个不同数字出现于前九次 Close 结果时;下面的树给出四问内完成的自适应策略。