1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
jok3333 [9.3K]
4 years ago
7

Drew writes down a number between 1 and 1000. Mary must determine that number by asking "yes/no" questions of Drew. Mary knows t

hat Drew always tells the truth. If Mary uses an optimal strategy, then she will determine the answer at the end of exactly how many questions in the worst case?
Mathematics
1 answer:
frozen [14]4 years ago
4 0

Answer: 10 questions.

Step-by-step explanation:

The optimal aproach would be divide the total range in half, for example, she can ask:

Is the number equal or greater than 500?

if he answers no, now she knows that the numer is in the range 1 to 499

if he says yes, she can know that the number is in the range 500 to 1000.

Now, suppose that the answer is yes.

Now she can ask if the number is equal or greater than 750.

Now we have two possible sets. (500, 749) and (750 , 1000).

Now we can divide those sets again, depending on the answer.

suppose we got the set of (750, 1000)

we can divide it into two sets and so on.

So, we have 999 options and we want to divide it by 2 until we reach to 1., the number of divisions by 2 is the number of times that she asked a question.

999/2^n ≤ 1.

we must find the smaller n that keeps the above inequality true.

999 ≤ 2^n

knowing that 2^10 = 1024.

999/1024 = 1024

So in the worst case, she should ask 10 questions.

You might be interested in
A. Decide whether the given examples illustrate a constant or a variable.
notka56 [123]

Answer:

a constant is a data item whose value cannot change during the program execution just as its name implies that the value is constant a variable is a data item whose value can change during the program's execution . Thus as its name implies the the value can vary

5 0
2 years ago
A line passes through (-7,-5) and (-5,4). Write an equation for the line in point-slope form. Rewrite the equation in standard f
rewona [7]
The equation:
y - y 1 =  ( y2 - y1 ) / ( x2- x1) * ( x - x1 )
y - ( - 5 ) = ( 4 + 5 ) / ( - 5 + 7 ) * ( x - ( - 7 ) )
y + 5 = 9/2 ( x + 7 )
y + 5 = 9/2 x + 63 /2  / * 2
2 y + 10 = 9 x + 63
- 9 x + 2 x = 53
Answer:
C ) y + 5 = 9/2 ( x + 7 ) ;   - 9 x + 2 y = 53
4 0
3 years ago
Read 2 more answers
Describe the dimensions of two different prisms that each have a volume of 2,400 cubic centimeters
taurus [48]
<span>1) 20 cm by 20 cm by 6 cm
2) 40 cm by 30 cm by 2 cm</span>
5 0
4 years ago
Read 2 more answers
What are the measures of interior angle a and exterior angle b?
givi [52]

Answer:

a = 180 - 92 - 27=61

b = 92 + 27= 119

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
HELP with math please
siniylev [52]

How did u upload a pic

5 0
3 years ago
Other questions:
  • Multiplying or dividing two related quantities by the same number is called __________
    5·1 answer
  • Please help me on this equation<br> 9x-71&gt;3(3x-7u)
    7·2 answers
  • A nurses aide recorded the following fluid intakes for a patient on her night shift 250ml 130ml 370 ml. If the patients doctor r
    11·1 answer
  • consider the numbers 3/10 and 4/13 compare the numbers find a rational number between the two given numbers
    8·1 answer
  • You spent z dollars today. Today, you spent 5.5 times as many dollars as you spent yesterday. Which expression correctly shows h
    8·1 answer
  • Compound interest <br> Plz help!!!
    5·1 answer
  • A weather station on the top of a mountain reports that the temperature is currently 0°C and has been falling at a constant rate
    14·1 answer
  • Help please please help
    9·1 answer
  • Write the equation of a line that is perpendicular to x=-6x=−6x, equals, minus, 6 and that passes through the point (-1,-2)(−1,−
    13·2 answers
  • Aditi has $50. 00 in her wallet. She buys a shirt for $12. 00 and also wants to buy some bracelets that are on sale for $0. 60 e
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!