1.

Which algorithm is the most efficient numerical algorithm to obtain lcm?(a) Euler’s Algorithm(b) Euclid’s Algorithm(c) Chebyshev Function(d) Partial Division AlgorithmI had been asked this question in class test.Query is from GCD LCM recursion topic in division Recursion of Data Structures & Algorithms II

Answer»

Right option is (B) Euclid’s Algorithm

The best explanation: The most efficient way of calculating the LCM of a given number is using Euclid’s algorithm which computes the lcm in much lesser time COMPARED to other ALGORITHMS.



Discussion

No Comment Found

Related InterviewSolutions