Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45e4645

Browse files
authored
Update extended-euclid-algorithm.md
Link to the iterative euclidean algorithm implementation links to the implementation heading
1 parent dfbbe2b commit 45e4645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/extended-euclid-algorithm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int gcd(int a, int b, int& x, int& y) {
9393
}
9494
```
9595

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.
9797

9898
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):
9999

0 commit comments

Comments
 (0)