Binary GCD algorithm (Greatest Common Divisor Greatest Common Divisor)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(n^{2})$

Space Complexity

$O(n)$ bits

(Store only the current values being iterated on)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM? words size O(1)

Year

1967

Reference

https://arxiv.org/abs/0910.0095