Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

mattyfar

  • 7 months ago

Can someone explain to me 'bisection search' ?

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

    Ok, let's think we have to find a value in the range 1 to 1 million

  2. osanseviero
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 2

    I am going to try that you answer yourself

  3. osanseviero
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 2

    So...how would you try to find this value?

  4. osanseviero
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 2

    toc toc?

  5. mattyfar
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i know its where you guess half way and then see if the answer is lower or higher. I'm just now super clear on how to set it up in python

  6. mattyfar
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    not*

  7. osanseviero
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 2

    You should write a psudo code first x is the value you are searching a is the max range b is the min range c is (a+b)/2 -> midpoint if x>c: the min range will be c now. else: the max range will be c now Something like that :) try working around it

  8. seandisanti
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Don't forget an epsilon value, or you may end up in an infinite loop.

  9. UnkleRhaukus
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    sounds like binary search

  10. ricketybridge
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Are you referring specifically to Newton's method? Because that actually has a rather complicated proof to explain why it converges on the square root. For just how to implement it in Python, review the code from Prof. Guttag's examples: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/lecture-3-problem-solving/MIT6_00SCS11_lec03.pdf

  11. lopus
    • 7 months ago
    Best Response
    You've already chosen the best response.
    Medals 0

    this video can help you: https://www.youtube.com/watch?v=nJ74bEB-UEw

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

    Search OpenStudy
    • 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.