Euclids Algorithm iş a veri good cha.pptx

balebenzemacristiano 9 views 35 slides May 13, 2025
Slide 1
Slide 1 of 35
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35

About This Presentation

İti


Slide Content

Euclid’s Algorithm Euclid’s Algorithm is an efficient process used to determine the highest common factor of two whole numbers. The step by step process is documented in Euclid’s “Elements”, written around 300BC. The algorithm is still in use today!

Euclid’s Algorithm Start with two lengths ...

Euclid’s Algorithm We want to divide both lengths into smaller pieces of equal length, and leave no remainder.

Euclid’s Algorithm The difference between their lengths will also be divisible by this common length.

Euclid’s Algorithm The difference between their lengths will also be divisible by this common length.

Euclid’s Algorithm The difference between their lengths will also be divisible by this common length.

Euclid’s Algorithm The revised problem is simpler. Now start the process again ...

Euclid’s Algorithm The difference between the lengths will also be divisible by the same quantity.

Euclid’s Algorithm The difference is now zero.

Euclid’s Algorithm This is the largest length that fits into both the original lengths.

Euclid’s Algorithm This is the largest length that fits into both the original lengths.

Euclid’s Algorithm Let’s try another example ...

Euclid’s Algorithm Start with two lengths ...

Euclid’s Algorithm In this example, we can duplicate the shorter length first.

Euclid’s Algorithm In this example, we can duplicate the shorter length first.

Euclid’s Algorithm Now check the difference (remainder)

Euclid’s Algorithm Now check the difference (remainder)

Euclid’s Algorithm Repeat the process.

Euclid’s Algorithm Repeat the process.

Euclid’s Algorithm Repeat the process.

Euclid’s Algorithm Find the difference.

Euclid’s Algorithm Find the difference.

Euclid’s Algorithm Find the difference.

Euclid’s Algorithm No difference ... algorithm or process stops.

Euclid’s Algorithm Now try with numbers. 200 72

Euclid’s Algorithm How many times does 72 divide 200? 72 200 2 x

Euclid’s Algorithm The remainder has the same highest common factor as 200 and 72. 72 200 2 x 56

Euclid’s Algorithm Repeat the algorithm ... 72 56

Euclid’s Algorithm 56 divides 72 just once...with a remainder of 16 72 56 16

Euclid’s Algorithm Repeat the algorithm. 56 16

Euclid’s Algorithm Repeat the algorithm. 56 16 3 x

Euclid’s Algorithm Repeat the algorithm. 56 16 3 x 8

Euclid’s Algorithm 8 divides 16 twice ... 16 8 2 x There is no remainder so the algorithm is complete.

Euclid’s Algorithm 8 is the highest common factor of 200 and 72. 8 200 72

Euclid’s Algorithm 8 is the highest common factor of 200 and 72. 8 200 72
Tags