This shows you the differences between two versions of the page.
| — | en:programming:algorithm_code [2026/02/19 11:31] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Algorithms and program code ====== | ||
| + | In previous chapters we briefly introduced algorithm construction and the C programming language. | ||
| + | Although these are independent languages, it is important that both are applied when planning and building software and, even more importantly, | ||
| + | Of course, the program code must be derived from the algorithm, and the correctness of the algorithm alone does not automatically guarantee the correctness of the program code. | ||
| + | Common practice is that errors are fixed in the program code, but the graphical algorithm is no longer updated afterward. This is not the right approach, because then the program model and the software code are no longer aligned. Although at first it may seem that time is saved, later, when you need to find fundamental errors in the program or when other people (including the programmer after some time has passed) need to understand the program in general, the time loss is much greater. | ||
| + | |||
| + | The following image shows how the graphical representation of the algorithm (right) is related to the program code (left). | ||
| + | {{ : | ||