Programs with Minimal Goto Statements

An algorithm is presented which produces a program with the minimum number of goto statements. We can apply the algorithm not only to an arbitrary loop free flowgraph but also to the class of “gate flowgraph” in which all entries and exits are particular for every cycle of the flowgraph. The algorithm has an O ( n ) time bound where n is the number of nodes in the flowgraph. Every flowgraph can be trivially transformed into a gate flowgraph.

[1]  A. Bonato,et al.  Graphs and Hypergraphs , 2022 .

[2]  Claude Berge,et al.  Graphs and Hypergraphs , 2021, Clustering.

[3]  Frank Harary,et al.  Graph Theory , 2016 .

[4]  Takumi Kasai,et al.  Translatability of Flowcharts into While Programs , 1974, J. Comput. Syst. Sci..

[5]  Jeffrey D. Ullman,et al.  Characterizations of Reducible Flow Graphs , 1974, JACM.

[6]  Jeffrey D. Ullman,et al.  Flow Graph Reducibility , 1972, SIAM J. Comput..