Planning a program involves defining its logic. The correct sequence of instruction needed to solve the problem at hand. The term algorithm refers to the logic of a program. It is a step-by-step description of how to arrive at a solution to a given problem. It is defined as a sequence of instruction that when executed in the specified sequence the desired result are obtained.
Programmer design such algorithm to solve complex programming problem. It solve a given problem every instruction particular sequence.