Euclid’s algorithm
Euclid’s algorithm for efficiently computing the greatest common divisor of two integers.
PseudoCode:
Eucilid(a, b)
if b == 0
return a
else return Eucilid(b, a mod b)
}
PseudoCode:
Eucilid(a, b)
if b == 0
return a
else return Eucilid(b, a mod b)
}
Reprint policy