algorithm

A set of rules for solving a problem in a finite number of steps.