10104

Theory:

The pseudo code of the extended euclid algorithm:

xgcd(a,b):
prevx, x = 1, 0; prevy, y = 0, 1
while (b!=0)
{

q = a/b
x = prevx – q*x;

prevx= x;
y = prevy – q*y;

prevy= y;
a = b;

b= a % b;

}
return a, prevx, prevy

[button color=”red” size=”small” link=”https://www.dropbox.com/s/f44huwxpczagql5/extended%20euclid%20algorithm.pdf?dl=0″ target=”blank” ]Download[/button]

Leave a Reply

Your email address will not be published. Required fields are marked *