Explanation of algorithms
An explanation of an algorithm is a set of mathematical, logical, and sequential steps needed to solve a problem. The explanation of Khorezmiyat was named after the scholar Abu Jaafar Muhammad ibn Musa al-Khwarizmi, who invented it in the ninth century AD. Explanation of Algorithms The word spread in Latin and European languages is «algorithm» and originally its meaning was limited to explaining algorithms of only three structures: sequence, selection and repetition.
Sequence: The explanation of an algorithm is a set of sequential instructions, these instructions may be either simple or of the following two types.
Choice: Some problems cannot be solved by a simple algorithmic explanation of the instructions. You may need to test some conditions and look at the test result. If the result is correct, it follows a path containing sequential instructions, and if it is false, it follows a different path of instructions. This method is what is called decision-making or selection.
Repetition: When solving some problems, the same sequence of steps must be repeated a number of times. This is called repetition.
It has been proven that no additional formulations are required. The use of these three combinations makes it easier to understand the algorithm and detect errors in it and change it.