The Hierarchy of Program Control Structures

Abstract
The structural hierarchy of programs is presented in this paper. It is defined on the basis of a composition of control structures. It is shown that there is an infinite hierarchy ϕ12,… ϕn,… so that the control structures in ϕn cannot be expressed as a superposition of control structures in ∪k−1n−1ϕk unless we use new variables or GOTO statements. ϕ1 contains D-structures (Ref.7), ϕ2 contains cycles with two exits, ϕ3 is partly covered by Adams' (Ref.1) proposal. Three characterisations of ϕn are introduced and their hierarchy is inspected. From the hierarchy new control structures convenient for implementation are deduced. Our results show some limits of GOTO-less programming and indicate some reasons why GOTO statement has returned into programming languages.

This publication has 0 references indexed in Scilit: