Author: Prilly Oktoviany
In general, an algorithm is to be understood as a finite sequence of unambiguously defined instructions – the scientist then speaks of well-defined instructions – with the help of which a specific task is completed or a specific problem is solved. Let's take the example of the navigation device, it has the task of finding the shortest or fastest route. The software in the navigation device has to solve this clearly defined task by using an algorithm, for example the established Dijkstra algorithm.
The IPO Principle as a Basis
Basically, an algorithm works according to the IPO principle: Input, Processing, Output. The first figure illustrates this scheme, which converts the input in the processing step into an output in a finite number of individual steps. In the process, the algorithm is given the required quantities or objects via the input. The output is then generated when the final state is reached after a finite number of steps. The IPO principle can also be illustrated by the previous cooking example: The ingredients represent the input, the mixing and cooking of the ingredients according to the recipe represents the processing step and the finished dish represents the output.