Introduction to Python Programming – Algorithms

You can learn about Introduction to Programming Using Python Programs with Outputs helped you to understand the language better.

Introduction to Python Programming – Algorithms


A set of instructions that describes the steps to be followed to carry out an activity is called an algorithm or procedure for solving a problem. If the algorithm is written in the computer programming language, then such a set of instructions is called a program. The task of writing the computer program involves going through several stages. So, programming requires more than just writing programs. That means it requires writing algorithms, as well as testing the program for all types of errors.

  • The algorithm is a stepwise presentation of the program in simple English.

Characteristics of Algorithm

(a) Language independent.
(b) Simple, complete, unambiguous, step-by-step program flow.
(c) No standard format or syntax required.
(d) Helpful to understand problems and plan out solutions.

Developing or Writing the Algorithms

The process of developing an algorithm (to solve a specific problem) is a trial-and-error process that may need numerous attempts. Programmers will make some initial attempts at a solution and review it to test its correctness. The errors they discover will usually lead to insertions, deletions, or modifications in the existing algorithm. It may even lead to scrapping the old one and creating a new.

  • Euclid’s algorithm is used to find the Greatest Common Divisor (GCD) of two given integer values. GCD is also known as the Greatest Common Factor (GCF) or Highest Common Factor (HCF).

Leave a Reply

Your email address will not be published.