Pradeep Shw
Pradeep Shw
TEXTILE TECHNOLOGY,SERAMPORE
• NAME OF THE TOPIC :- Euclid’s Algorithm
• Continuous Assessment 1 (CA1): Technical Presentation
• NAME:- PRADEEP SHAW
• UNIVERSITY ROLL NO.: 11000223022
• REGISTRATION NO: 231100110112
• STREAM :- INFORMATION TECHNOLOGY
• SUBJECT NAME:-Discrete Mathematics
• SUBJECT CODE: PCC-CS401
• ACADEMIC YEAR :- 2024-25
• RESPONSIBLE TEACHER:- SUMAN CHATTARJEE
CONCEPT OF GCD OF TWO NUMBERS
The Greatest Common Divisor(GCD) of two integers is defined as
follows:
An integer c is called the GCD(a,b) (read as the greatest
common divisor of integers a and b) if the following 2
conditions hold:
1) c | a & c | b
2) For any common divisor d of a and b, d | c.
Note :- Ensures that the divisor c is the greatest of all the
common divisors of a and b.
TO FIND GCD OF TWO NUMBERS
• To find DCD of two integers a &b i.e, GCD(a,b) , one way is that we
could prime factorize each integer, and from the prime
factorization, see which factors are common between the two
integers.
• Example :-
12 = 2×2×3 & 28 = 2×2×7
So , GCD(28,12) = 2×2 = 4.
rk-1 = qk+1rk .
980 = 78 × 12 + 44
78 = 44 × 1 + 34
44 = 34 × 1 + 10
34 = 10 × 3 + 4
10 = 4 × 2 + 2
4=2×2+0
We can conclude that the GCD of 980 and 78 is 2.
Conclusion
• Euclid’s algorithm is a highly efficient and fundamental method
for computing the Greatest Common Divisor (GCD) of large
integers. Its recursive and iterative approaches ensure fast
computations, even for very large numbers, making it widely
used in modern applications such as cryptography, number
theory, and computer science. The algorithm's simplicity and
effectiveness highlight the power of mathematical reasoning in
problem-solving, demonstrating how ancient mathematical
principles continue to play a crucial role in contemporary
computational techniques.
References
• I made this PPT using
1 . Class notes (Taught by Suman Chatterjee Sir)
2. https://www.scribd.com/document/82275860/Euclid
3. Discrete Mathematics vol-4 (Author:- Pal & Das ).