Understanding Brent's root finding method

  • Thread starter Thread starter phantomvommand
  • Start date Start date
AI Thread Summary
The discussion centers on the logic behind checking the difference between b-1 and b-2 when bisect_flag is set to False. The main point raised is whether the goal should be to assess the halving of the interval between the best guesses b, suggesting that the focus should be on abs(b - b-1) instead. A reference to Brent's original publication indicates that unnecessary bisections could slow down convergence for well-behaved functions, highlighting the balance between optimizing performance in typical scenarios while managing potential failures in edge cases. The conversation also notes that this topic is more suited for the Programming and Computer Science forum.
phantomvommand
Messages
287
Reaction score
39
TL;DR Summary
I am unsure about the conditions for rejecting the secant or IQI method in favour of bisection
Screenshot 2025-07-13 at 3.31.49 PM.webp


I am unsure about why in the case where bisect_flag == False, we should check b-1 - b-2. Is the objective not to check that we are halving the interval between our best guesses b, so it should be abs(b - b-1), regardless of whether the previous step was a bisection or not?
 
Technology news on Phys.org
phantomvommand said:
I am unsure about why in the case where bisect_flag == False, we should check b-1 - b-2. Is the objective not to check that we are halving the interval between our best guesses b, so it should be abs(b - b-1), regardless of whether the previous step was a bisection or not?

According to p.50 of Brent's original publication (it is available on archive.org): "practical tests show that this [would slow down] convergence for well-behaved functions by performing unnecessary bisections".

Like many practical algorithms this is a compromise between optimizing performance in the majority of situations whilst avoiding poor performance (or even failure) in pathological cases.

Note that this question probably belongs in the Programming and Computer Science forum. I'll get it moved.
 
Last edited:
  • Like
Likes jim mcnamara, Baluncore and berkeman
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Back
Top