Euklides algorithm is one of the most ancient algorithms in mathematics used to calculate GCD (Greatest Common Divisor), or FPB (Large Fellowship Factor), of two integers. GCD is the largest number that divides both numbers without leaving any residue. This algorithm is named after ancient Greek mathematicians, Euclid, who introduced him in his book. Elements Around the 3rd century B.C.
In addition to being known for its simplicity, it's highly efficient and still used in modern applications such as cryptography and computation. This article will discuss the definition of GCD, step-step explanation of the Euklides algorithm, and its applications in modern context.
GCD of two integers aaa and bbb are the largest integers that can divide those two numbers without leaving any residue. For example, GCD from 48 and 18 is 6, because 6 is the largest number that divides 48 and 18.
Formal, if aaa and bbb are two positive integers, then GCD (a, b) text {GCD} (a, b) GCD (a, b) is the biggest integer of ddd (a, b) such as that: d dhadd Aqd mid a quad text {and} quad d bd bd dhadb
That is, ddd split aaa and bbb with no leftovers.
Euklides algorithm works by using the basic properties of GCD: if aaa and bbb are two integers, then GCD (a, b) = GCD (b, r) text {GCD} (a, b) = text {GCD} (b) GCD (a, b) = GCD (b, r), where rrr is left by abbb. By using this trait, the algorithm continues to reduce numbers until one of them becomes zero, and the GCD is another number left.
Let's calculate GCD of 48 and 18 using Euklides algorithm:
This algorithm requires only a few simple steps to find GCD, even for relatively large numbers. His high independence is one of the reasons why this algorithm remains in use today.
There is also Divided Euklides algorithm (Extended Euclidean Algorithm) which not only finds GCD of two numbers but also produces linear combinations of the two numbers. That means that this algorithm provides a solution for the equation: GCD (a, b) = ax + bytext {GCD} (a, b) = ax + byGCD (a, b) = ax + by
Where xxx and yyy are integer coefficient that meet the equation above. This algorithm works in numbers theory and cryptography, especially in algorithms like RSA that depend on GCD and modular invers.
Although found over two millennia ago, Euklides algorithm is relevant and used in various modern applications, especially in the field cryptography, Number theory, and computing. Some examples of the application are between us:
Euklides algorithm is a simple but effective method to calculate GCD or FPB of two integers. Although very old-fashioned, these algorithms continue to be used today in various modern applications, especially in cryptography and number theory. Flexibility and efficiency makes it one of the most important algorithms in math and computing.
source: Hardy, G. H., & Wright, E. M. (2008). An interrogation to the Theory of Numbers. Oxford University Press.