>  Term: Euclid's algorithm
Euclid's algorithm

An algorithm to compute the greatest common divisor of two positive integers. It is Euclid(a,b)(if (b=0) then return a; else return Euclid(b, a mod b);). The run time complexity is O((log a)(log b)) bit operations.

0 0

작성자

  • GeorgeV
  •  (Gold) 1123 포인트
  • 100% positive feedback
© 2024 CSOFT International, Ltd.