Algorithm
An algorithm is a set of instructions that can be used to solve a problem. Algorithms can be classified into two categories: deterministic and probabilistic. Deterministic algorithms always give the same output for the same input. Probabilistic algorithms produce different outputs based on the input given.