A procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation; broadly : a step-by-step procedure for solving a problem or accomplishing some end especially by a computer a search algorithm.
Source: Merriam-Webster https://www.merriam-webster.com/dictionary