Algorithm
An unambiguous step-by-step procedure that solves a problem.
Sorting a list, finding the shortest path, compressing an image — all algorithms. Measured by correctness and efficiency (see Big-O). "Algorithm design" is an entire academic discipline; Donald Knuth's books are the classic.