Piyush365
  • 0

What about the last algorithm described above? What happens when we look at common divisors starting from min(m, n) and work backwards to 1?

  • 0

We can terminate immediately upon finding the very first common divisor. Since we count down from min(m, n), that first common factor is guaranteed to be the greatest common divisor without further scanning.

Class 9 Chapter 11 The World of Algorithms solutions
Class 9 Maths Ganita Manjari Part 2 Book and Solutions

Share
Leave an answer

Leave an answer

Browse