I have an old Olympiad question on informatics.
There are 31 boxes. In each box there is one number. We know the number if and only if we open the box. We want to calculate the minimum number of boxes that must be opened to find one number that is not lower than the numbers of its neighbor boxes. The first and last boxes have one neighbor (boxes are not a ring). All other boxes have two neighbors.
I see a strange answer and it is 11. Any details or ideas are very appreciated.
If I understand right the problem (it's not very clear), I think it can be done with less than 11.
Hint/sketch:
Lets say that a box is apt if its value is greater or equal than that of its neighbours. We want to find an apt box. This is analogous to finding a local maximum of a discrete sequence
Starting from the chain $(x_{1} \cdots x_{31})$, uncover $x_{16}$ and $x_{17}$. Assume (worst case) $x_{16} \ge x_{17}$ Then we restrict our chain to $(x_{1} \cdots \overline{x_{16}})$, as it must contain one apt box. (the overlined elements correspond to the known ones). Then uncover $x_{8},x_{9}$ If $x_8 \ge x_9$ we retain $(x_{1} \cdots \overline{x_{8}})$, else we retain $( \overline{x_{9}} \cdots \overline{x_{16}})$. Etc.