An algorithm is a method for solving a problem. Algorithms are used for calculations, data processing, and usually where there is a finite sequence of instructions. Search engines use algorithms to rate sites/pages.