An algorithm is a set of instructions for solving a problem. The instructions are precise and unambiguous, meaning that the steps must be followed in the order given. Algorithms can be used to solve mathematical problems or to find the most efficient way to accomplish something. The word "algorithm" was first used by mathematician John von Neumann, who defined it as "the science of effective methods."