computer science a level gcd on ti-84 graphing calculator

The Euclidean Algorithm an ancient Greek method for finding the greatest common divisor of two numbers. In spite of its age, it is still of great importance in modern mathematics and computing, for example in encryption algorithms such as RSA.

There is a great video from James Tanton explaining the algorithm here.

Below is TI-Basic implementation of the algorithm.

You can download the 8XP (TI-Basic) file here.

There is a more efficient version which uses division instead of subtraction, but this version is generally easier to follow. It takes a while for most people to really understand how particular algorithms work, so be patient with yourself and try tracing the algorithm using specific examples – e.g. what are the values for A, B & C when you try to find GCD(24, 18)?

Let me know how you get on in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}