Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture explains the fast exponentiation algorithm for calculating AB, where B is decomposed in binary form and the calculation involves squaring A multiple times followed by multiplication. The time complexity is O(n³) for AB (mod N) if N has n digits. The recursive version of the algorithm is discussed, along with the properties of prime numbers and the El-Gamal encryption scheme.