Problem I: Euclid '$ algorithm (or the Euclidean algorithm) is an algorithm that computes the greatest common divisor denoted by gcd, of two integers_ Below are the original versions of Euclid s algorithm that uses repeated subtraction and another one that uses the remainder.
int gcd sub (int
int b)
int ged rem (int a, int b)
if (!a)
int t;
return b;
while (b)
while (b)
if (a
b)
b;
b;
b
8 b;
else
t;
b = b
a;
return a;
return a;
Trace each of the above algorithm using specific values for a and b- 2.0 Compare both algorithms_