1.

According to Gabriel lame, how many steps does Euclid’s algorithm require to solve a problem?(a) Less than five times the number of digits(b) More than five times the number of digits(c) Less than two times the number of digits(d) More than two times the number of digitsI got this question in unit test.My doubt stems from Number Theory in chapter Number Theory of Data Structures & Algorithms II

Answer»

Right option is (a) Less than five times the number of digits

Best explanation: The EUCLID’s algorithm requires less than five times the number of digits. It runs by DIVIDING two NUMBERS. It stops when a remainder ZERO is reached.



Discussion

No Comment Found

Related InterviewSolutions