Open dpsanders opened 9 years ago
Why do we need this? Won't it make it slower?
No, it will make it faster if it can guarantee that there is no root in one of the two intervals. It will only be slightly slower if it then goes on to bisect both of those intervals.
When trying to bisect an interval, check which is the direction in which the interval is longest, and only bisect in that direction.