๐Ÿ“˜

Algorithm

A step-by-step plan for solving a problem.

๐Ÿ˜Š In simple words

A step-by-step plan for solving a problem.

๐ŸŽ“ Technical definition

A finite, ordered sequence of well-defined instructions that transforms given inputs into the desired output and always terminates.

Pseudocode example
1BEGIN2    TAKE A, B3    SET C = A + B4    DISPLAY C5END

๐ŸŽ Real-world analogy

A recipe: follow the steps in order and you get a cake.

๐Ÿ”— Related concepts

โ† Whole glossary