Guessing game on a binary string
Source: KoMaL A860
November 11, 2023
combinatoricskomal
Problem Statement
A 0-1 sequence of length is given. Alice can pick a member from the sequence, and reveal it (its place and its value) to Bob. Find the largest number for which Bob can always pick members of the sequence, and guess all their values correctly.Alice and Bob can discuss a strategy before the game with the aim of maximizing the number of correct guesses of Bob. The only information Bob has is the length of the sequence and the member of the sequence picked by Alice.