From m-w.com: an algorithm is: broadly, a step-by-step procedure for solving a problem or accomplishing some end especially by a computer

The theory of algorithms deals with the study of characteristics of algorithms such as efficiency in terms of time and space.