Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Enumeration of structured flowcharts
Bender E., Butler J. Journal of the ACM32 (3):537-548,1985.Type:Article
Date Reviewed: Feb 1 1987

This paper features a result just begging to be applied to further research on the bias in programmer styles. The authors provide a means of measuring programmer bias in their choice of control structures by examining the sequency of BJm flowcharts. BJm flowcharts are charts which allow IF-THEN-ELSE, SEQUENCE, and DO-WHILE with up to m midloop exits. A flowchart can be considered as a selection of different types of nodes from a pool containing all types of nodes. This paper determines the asymptotic value for the number of possible flowcharts for a given number of nodes ( n ) by using generating functions. For large BJm charts, the average number of nodes of various types are calculated. The authors note that allowing arbitrary midloop exits only increases the fraction of DO-WHILE-type nodes by ten percent.

Finally, the authors calculate the average sequency (the number of IF-THEN-ELSE and DO-WHILE-WITH- m-EXITS charts concatenated to form the final chart). The authors note the average sequency lies between 2.4 and 2.5 for n → ∞ and m → ∞ The authors observe that programmers tend to produce programs with much higher sequency. They informally suggest that either the problems that we choose to solve are inherently sequential or that IF-THEN-ELSE and DO-WHILE constructs are inadequate to overcome our sequential organizational tendencies.

There are many alternative possible explanations. One is that we have no “natural” sequential organizational tendency but that, in the languages that we use, the sequence concept is more effectively implemented than the IF-THEN-ELSE or DO-WHILE concepts so the language pushes us to use the sequence concept rather than a basic preference by programmers.

These and other conjectures explaining the difference between empirically observed behavior of programmers and “expected” behavior should provide some interesting research topics.

Reviewer:  M. Whitelaw Review #: CR109775
Bookmark and Share
 
Flow Charts (D.2.2 ... )
 
 
Combinatorics (G.2.1 )
 
Would you recommend this review?
yes
no
Other reviews under "Flow Charts": Date
Diagramming techniques for analysts and programmers
Martin J. (ed), McClure C., Prentice-Hall, Inc., Upper Saddle River, NJ, 1985. Type: Book (9789780132087940)
Jul 1 1985
An investigation of the utility of flowcharts during computer program debugging
Gilmore D., Smith H. International Journal of Man-Machine Studies 20(4): 357-372, 1984. Type: Article
Feb 1 1985
Structured programming logic: a flowcharting approach
Jones J., Prentice-Hall, Inc., Upper Saddle River, NJ, 1986. Type: Book (9789780138549510)
Dec 1 1986
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy