Algorithm

Algorithm – A step-by-step set of instructions or rules designed to perform a specific task or solve a problem.  A pattern in programming that lets the computer which step to perform next based on previous actions.