next up previous
Next: GCD: using the method Up: Unit 06 Previous: GCD: by directly exploiting

GCD: problems of the algorithm implementing directly the definition

How many times do we execute the loop in the previous algorithm?

Hence, the previous algorithm behaves bad when x and y are big and gcd(x, y) is small.


next up previous
Next: GCD: using the method Up: Unit 06 Previous: GCD: by directly exploiting