Home / Engineering / Design and Analysis of Algorithms / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) 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 algorithm
Correct answer : Option (B) - euclid’s algorithm

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.

Share

Discusssion

Login to discuss.