An algorithm is a step by step procedure to solve a problem. The process of solving a problem becomes simpler and easier with the help of algorithm. It is better to write algorithm before writing the actual program.
Algorithms are written in a language that is similar to simple English called pseudo code. There is not standard to write pseudo code. It is used to specify program logic in an English like manner that is independent of any particular programming language.Pseudo code simplifies program development by separating it into two main parts.
In this part, the logic of the program is designed. We specify different steps required to solve the problem and the sequence of these steps.
In this part, the algorithm is converted into a program. The steps of algorithm are translated into instructions of any programming language. The use of pseudo code allows the programmer to focus on the planning of the program. After the planning is final, it can be written in any programming language.