An algorithm is a sequence of defined instructions used to solve a specific problem or task. Algorithms are usually created for usage in computers, where their task is to perform a sequence of computations that will lead to the desired result. An algorithm should be unambiguously defined, reflecting that they are the formal way to perform computations.