Greatest Common Divisor

Let a1,,ama_1, \ldots, a_m be given nonzero integers. Then gg is called the greatest common divisor (GCD) of a1,,ama_1, \ldots, a_m if and only if it is the largest integer that divides all a1,,ama_1, \ldots, a_m.

Parameters

  • nn: sum of number of bits among the integers

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 4 of 4 algorithms

See more
Sthele, Zimmermann2006O(nlog2nloglogn)O(n \log^2 n \log \log n)O(n)O(n)
Binary GCD algorithm1967O(n2)O(n^2)O(n)O(n)
Lehmer's GCD algorithm1940O(n2)O(n^2)O(n)O(n)
Euclid's algorithm-300O(n2)O(n^2)O(n)O(n)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table