0 11

BIT303 · 0 · 5 marks

Write an algorithm for Extended Euclidean Algorithm. Illustrate the algorithm for a=84 and b=320.

Write an algorithm for Extended Euclidean Algorithm. Illustrate the algorithm for a=84 and b=320. [5]

Information SecurityChapter 2: Cryptographic FoundationsExtended Euclidean algorithmNumerical: Extended Euclidean Algorithm
  • $a = 84$ - $b = 320$ - Goal: find $\gcd(a,b)$ and integers $x, y$ such that $ax + by = \gcd(a,b)$. --- The Extended Euclidean Algorithm computes $\gcd(a,b)$ along with coefficients $x, y$ satisfying: $$ax + by = \gcd(a,b)$$ The returned triple $(d, x, y)$ satisfies $ax + by = d = \gcd(a,b)$. --...