1.

If gcd (a, b) is defined by the expression, d=a*p + b*q where d, p, q are positive integers and a, b is both not zero, then what is the expression called?(a) Bezout’s Identity(b) Multiplicative Identity(c) Sum of Product(d) Product of SumI got this question in an online quiz.The question is from GCD LCM Recursion, topic in chapter Recursion of Data Structures & Algorithms II

Answer»

Right choice is (a) Bezout’s Identity

Explanation: If gcd (a, b) is DEFINED by the expression, d=a*p + b*q where d, p, q are positive INTEGERS and a, b is both not ZERO, then the expression is called Bezout’s Identity and p, q can be calculated by EXTENDED form of Euclidean algorithm.



Discussion

No Comment Found

Related InterviewSolutions