What is an algorithm? An algorithm is a procedure to accomplish a specific task. It is the idea behind any computer program.