Q.4.26

Question

One of the numbers 1 through 10 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 = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. (b) With each question, you try to eliminate one-half of the remaining numbers, as nearly as possible.

Step-by-Step Solution

Verified
Answer
  1. Your i th question is to be 112
  2. The number of question is 3.463.46
1Step 1: Given Information (Part a)

Given in the question that, randomly chosen numbers 1 through 10.

We need to compute the expected number of questions to ask i th question is to be " is it i?".

2Step 2 : Explanation (Part a)

E[X]=1×110+2×110+3×110+4×110+5×110+6×110+7×110+8×110+9×110+10×110

Because P of every digit =110

E[X]=110[1+2+3+4+5+6+7+8+9+10]

=110×10×112

=112

3Step 3: Final Answer (Part a)

The expected number of question is 112.

4Step 4: Given Information (Part b)

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

5Step 5: Explanation (Part a)

We need to apply Binary search here,

2n=11

n is number of questions

n ln 2=ln 11

n=ln 11ln 2

=3.46

6Step 6: Final Answer (Part a)

The number of questions is 3.46