1.

What is the total running time of Euclid’s algorithm?(a) O(N)(b) O(N log M)(c) O(N log N)(d) O(log N +1)I have been asked this question in an interview.My enquiry is from Number Theory in section Number Theory of Data Structures & Algorithms II

Answer»

The correct CHOICE is (a) O(N)

The BEST explanation: The total running time of EUCLID’s algorithm according to Lame’s analysis is found to be O(N).



Discussion

No Comment Found

Related InterviewSolutions