1.

What is the total running time of the binary GCD algorithm?(a) O(N)(b) O(N^2)(c) O(log N)(d) O(N log N)The question was asked during an online exam.Question is taken from Number Theory topic in chapter Number Theory of Data Structures & Algorithms II

Answer»

Right choice is (B) O(N^2)

For explanation: Binary GCD algorithm is a sub division of Euclidean algorithm with more FASTER operations. Its running TIME is given by O(N^2).



Discussion

No Comment Found

Related InterviewSolutions