Q.4.26
Question
One of the numbers through is randomly chosen. You are to try to guess the number chosen by asking questions with “yes-no” answers. Compute the expected number of questions you will need to ask in each of the following two cases:
(a) Your ith question is to be “Is it i?” i = . (b) With each question, you try to eliminate one-half of the remaining numbers, as nearly as possible.
Step-by-Step Solution
Verified- Your th question is to be
- The number of question is
Given in the question that, randomly chosen numbers 1 through 10.
We need to compute the expected number of questions to ask th question is to be " is it ?".
Because of every digit
The expected number of question is .
Given in the question that, randomly chosen numbers 1 through 10.
We need to compute the expected number of questions with each question, you try to eliminate one half of the remaining numbers, as nearly as possible
We need to apply Binary search here,
is number of questions
The number of questions is 3.46