A set of well-defined rules or procedures for solving a problem or providing an output from a specific set of inputs.