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.