Algorithms

Square Root

One solution strategy: Maintain a value above that is greater then sqrt(n) and a value below that is less then sqrt(n). Successively shrink the distance (above - below) to converge to sqrt(n).


 
 

[Prev][TOC][Next]


CS1104 Main Page
Last Updated 01/05/2000
© J.A.N. Lee, 2000