 # What is algorithm? What are the rules for writing algorithm? What are the benefits of algorithm?

## Algorithm

Algorithm means step-by-step problem solving. That is, to break a problem into several steps and solve each step in turn to solve the entire problem.

The word Algorithm is derived from the name of Al Kharizomi, an Arab mathematician. He explains the term algorithm in his mathematics book as follows:

An algorithm is a special procedure for solving a particular problem.

Al Kharizomi

In other words, Algorithm is a logical step-by-step process for solving a problem by computer. That is, an algorithm is a sequential recording of the steps from the beginning to the end of program writing and execution. Algorithms play a very important role in programming to solve any problem with the help of computer.

## Rules for writing Algorithm

1. The algorithm will be straightforward.
2. Each step should be clear so that it is easy to understand.
3. The problem must be solved in a finite number of steps.
4. The algorithm must be widely applicable.

## Benefits of Algorithm

1. Easily understand the purpose of the program.
2. Easily diagnose program errors.
3. Program flow is understood.
4. Complex programs can be easily written.
5. Assists in program modification and enhancement.

Scroll to Top