05-25-2017 10:48 AM - edited 05-25-2017 10:49 AM
@kashiruvana wrote:
Ooh, I like that. That's a good solution. (If I could mark it, I would!)
There are quite a few suggestions above, so we don't really know what you are replying to.
Of course you can also make my solution "all blue" (the orange square root is somewhat a blemish:)). I am sure there are even better, more faster converging integer square roots, just try it. 😄
05-26-2017 11:40 AM
@altenbach wrote:
@kashiruvana wrote:
Ooh, I like that. That's a good solution. (If I could mark it, I would!)
There are quite a few suggestions above, so we don't really know what you are replying to.
Of course you can also make my solution "all blue" (the orange square root is somewhat a blemish:)). I am sure there are even better, more faster converging integer square roots, just try it. 😄
Other than this being "all blue," are there any advantages to this approach:
Over this one:
All I see is that as NumElements increases, the processing time will increase with the while loop while the time of the selection will be relatively constant.
05-26-2017 01:25 PM
I would go with my q&r solution (the one with the sqrt). Easier to read than using all these compare and select nodes. Performance does not matter here.