Algorithm is a methodical step by step procedure that guarantees solving a problem. It is a specification and set of rules how to solve a class of problems. As a methodological step the algorithm includes instructions how a particular
task should be carried. It must give the correct answer and be suitable for every case.