Algorithm refers to a set of rules/instructions that step-by-step define how a work is to be executed upon in order to get the expected results.
The word Algorithm means “a process or set of rules to be followed in calculations or other problem-solving operations”.
It can be understood by taking an example of cooking a new recipe. To cook a new recipe, one reads the instructions and steps and execute them one by one, in the given sequence. The result thus obtained is the new dish cooked perfectly. Similarly, algorithms help to do a task in programming to get the expected output.
The Algorithm designed are language-independent, i.e. they are just plain instructions that can be implemented in any language, and yet the output will be the same, as expected.