Algorithm Spotlight: Euclidean Algorithm

 The Euclidean algorithm is an algorithm for quickly finding the GCD (greatest common divisor) of two numbers and is an extremely important number theory concept. The GCD is used in many applications, like simplifying fractions, modular arithmetic, and also encryption algorithms such as the RSA Encryption Algorithm.


Review: Greatest Common Divisor (GCD)


Approach 1: Division

Finding the GCD of 105 and 72

Image for post
Image for post
Image for post
Image for post


Approach 2: Subtraction

Finding the GCD of 36 and 48

Comments

Popular posts from this blog

Easy Text-to-Speech with Python

Flutter for Single-Page Scrollable Websites with Navigator 2.0

Better File Storage in Oracle Cloud