You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/algebra/extended-euclid-algorithm.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ int gcd(int a, int b, int& x, int& y) {
93
93
}
94
94
```
95
95
96
-
If you look closely at the variables`a1` and`b1`, you can notice that they take exactly the same values as in the iterative version of the normal[Euclidean algorithm](euclid-algorithm.md). So the algorithm will at least compute the correct GCD.
96
+
If you look closely at the variables`a1` and`b1`, you can notice that they take exactly the same values as in the iterative version of the normal[Euclidean algorithm](euclid-algorithm.md#implementation). So the algorithm will at least compute the correct GCD.
97
97
98
98
To see why the algorithm computes the correct coefficients, consider that the following invariants hold at any given time (before the while loop begins and at the end of each iteration):