Binary Exponentiation

There's a total of 1 articles.




Binary Exponentiation

Binary Exponentiation
Given two numbers $a$ and $n$ finding $a^n$ involves doing $n$ multiplications of $a$, however, it’s possible to do this in $log(n)$ operations by using binary exponentiation.
Me
Published on Mon, Jun 1, 2015
Last modified on Sun, Jun 16, 2024
191 words - Page Source