Algorithm, systematic procedure that produces—in a finite number of steps—the answer to a question or the solution of a problem. The name derives from the Latin translation, Algoritmi de numero Indorum, of a treatise by the 9th-century mathematician al-Khwarizmi.