Puzzling Asked by Liran Katzir on June 8, 2021
Given a test with ? yes/no questions, a candidate is able to submit multiple solutions. For a given solution, the candidate gets feedback on the number of correct answers. The goal is to recover the answers to all the questions.
What strategy could/should a candidate use to minimize:
There doesn't appear to be a definitive answer to this problem, but a paper of Cantor and Mills implies the following process provides a reasonably strong bound:
Answered by AxiomaticSystem on June 8, 2021
Here's a solution that's likely not optimal, but worth a shot. It requires on average 3N/4 submissions, or N submissions in the worst case. To begin, submit random answers and get the number correct - we'll call this configuration of answers the baseline. Now, go down the list of questions in pairs, and changing your answer for exactly two questions and resubmitting.
On average, 25% of the time, both answers were right originally and your score will go down by 2, and 25% of the time, both were wrong and the score will go up by 2. In both cases, we now know the answers to both questions. The other 50% of the time, you'll have one question right and one wrong with no change in score, so you need to go back to the baseline configuration and change only one answer.
On average, it will take 2 submissions plus the baseline to get the right answer for half the pairs of questions, but only one submission plus the baseline to verify that the other half of pairs is correct already. This gives us an average of 3/4N submissions, since you don't need to worry about the last question (if you don't have a perfect score by then, change the answer). In the worst case, however, we need to change every single answer, resulting in N submissions.
Answered by Nuclear Hoagie on June 8, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP