Friday, August 12, 2011

How does the modulus operator affect the order of an algorithm??

I am wondering how the modulus operator affects the order of an algorithm. For example, I know that dividing (for say, in a loop) will make the order of an algorithm logn. Is this the same case for the modulus operator??? (I umed so but I am double checking) Any help is appreciated!

No comments:

Post a Comment