An algorithm is a finite sequence of precise step-by-step instructions.