in reply to [Study]: Searching for square roots

If you didn't try to invent a new algo (binary search with squaring) but sticked to ol' Newton (n=middle(n,x/n)) then your problem won't exist.
  • Comment on Re: [Study]: Searching for square roots

Replies are listed 'Best First'.
Re^2: [Study]: Searching for square roots
by pemungkah (Priest) on Nov 15, 2006 at 21:26 UTC
    Right, but his point was that he wanted to try something, which is an attitude to be encouraged. Maybe it's not effective, or better, or useful, but it's exploring to find out how to do something in a different way, and understanding how to use the tools to do it.

    If you're comfortable with thinking about a problem in multiple ways, you can learn when to use one versus another. If you only know how to do iterative solutions, recursive ones look strange and challenging (or vice versa, for those whose first language was LISP).