Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

ronronald97

  • 2 years ago

Lecture 3: Problem solving. When professor Guttag talked about bisection search at about 41 minutes. He said the number of guesses of the square root of 12345 is 26. And then he said something about the size of the search space, which is roughly 12345 divided 0.01 square. and the answer is 26.89.... Can someone explain this formula to me? because I can't get the answer. Is it 12345/(0.01**2) or (12345/0.01)**2?

  • This Question is Open
  1. MakaiMcClintock
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    The formula is not the important point, rather the concept that bisection search can make programs much faster is. :)

  2. Weltgeist
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    the maximum (and probably approximate) number of guesses is log base 2 of the search field which makes sense intuitively if you think about what log2 is:-)

  3. guillo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    The value obtained by teacher results from log base 2 of (12345 / (0.01 ** 2)) import math aa = ( 12345 / (0.01 ** 2) ) bb = math.log(aa,2) print (bb)

  4. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.