Binary search on doubles

Revision en1, by NoPX, 2015-09-18 11:54:29

Let's say I have boundaries left and right, which are doubles and I want to do binary search. How long should I iterate to be sure that given error isn't too big.

For example, in the last contest there was a problem http://codeforces.com/contest/579/problem/E

I saw some codes and authors use 100, 200 etc iterations

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English NoPX 2015-09-18 11:54:29 346 Initial revision (published)