Summary of how we improved gcd Algorithm (Chapter 11 Class 9 Maths) - Improving the Algorithm

part 2 - Summary of how we improved gcd Algorithm - Improving the Algorithm - Chapter 11 Class 9 - The World of Algorithms (Ganita Manjari) - Maths Class 9

Remove Ads
Teachoo · Class 9 Explore Class 9

Transcript

Summary of how we improved gcd Algorithm Stage | What we do | What we avoid Original method | Build two divisor lists, then a common-divisor list | — Combine scans | Check each candidate against both inputs in one scan | Two separate scans Find common divisors directly | Store only candidates dividing both inputs | Separate divisor lists and later list comparison Stop at the smaller input | Check only up to min(m, n) | Candidates that cannot be common divisors Remove the list | Store only the greatest common divisor found so far | Storing every common divisor The final method uses less storage and avoids unnecessary stages. However, it still checks every candidate up to the smaller input. This remaining limitation motivates the later algorithms in the chapter.

CA Maninder Singh's photo - Co-founder, Teachoo

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant qualified since 2010 and an educator teaching since 2006. At Teachoo, he draws on his accounting and tax experience to explain Accounts, Income Tax and GST through step-by-step lessons and practical examples.

For an uninterrupted learning experience, students can use Teachoo Black to remove ads and focus better.