LEARNING PROGRAMMING USING STRUCTURED BLOCK DIAGRAMS AND DESIGN TEMPLATES
Kostyrko Vasyl S., А. В. Костенко, Mykhaylo I. Plesha · Collection of Scientific Publications NUS · 2023
Despite the general belief in the advantages of structural programming and top-down programming technologies, traditional block diagrams continue to be used to describe algorithms [1, 2].The purpose of the article is to overcome contradictions between the algorithmic and programmatic levels of process representation, which is especially noticeable in programming teaching.Scientific novelty.Modern programming languages are based on structured statements of conditionals, loops, switches, etc., replacing direct transitions.However, the outdated formalism of flowcharts continues to be used to describe algorithms, which led to dangerous direct transitions (related to goto statements) when moving to programs and prevented the use of such advanced technologies as top-down programming and program verification.Perhaps this has its explanation in the obviousness of the construction of conventional flowcharts, teaching traditions, etc.However, such methods of describing algorithms as UML-diagrams were not accepted as a formalism for writing algorithms and teaching programming.In this work, several templates are proposed that allow expanding the construction of block diagrams and making them suitable for adequate description of structured programs.Among them, compositions of complete and incomplete branching, loops with precondition and postcondition, loops on a sequence, as well as a switchs are considered.Several technologies for structuring programs (transition from conventional to structured flowcharts) are described.One of the technologies named introduction of additional arithmetic variables can be applied automatically.The computational equivalence of block diagrams structured in this way to the initial ones is proven, in the sense that they generate the same computational process.The proof is based on the concept of an illuminated flowchart.Conclusion: the use of structured flowcharts in teaching programming demonstrated the perspective of this approach.This actualizes the task of developing appropriate graphical tools, as well as APIs for generating programs in popular programming languages.
Cited by 0 works. doi:10.15589/znp2023.1(490).23 Open-access PDF