@fritzsolms

A complexity measure

. Proceedings of the 2nd international conference on Software engineering, page 407--. Los Alamitos, CA, USA, IEEE Computer Society Press, (1976)ACM ID: 807712.

Abstract

This paper describes a graph-theoretic complexity measure and illustrates how it can be used to manage and control program complexity. The paper first explains how the graph theory concepts apply and gives an intuitive explanation of the graph concepts in programming terms. The control graphs of several actual FORTRAN programs are then presented to illustrate the correlation between intuitive complexity and the graph theoretic complexity. Several properties of the graph-theoretic complexity are then proved which show, for example, that complexity is independent of physical size (adding or subtracting functional statements leaves complexity unchanged) and complexity depends only on the decision structure of a program. The issue of using non-structured control flow is also discussed. A characterization of non-structured control graphs is given and a method of measuring the ``structuredness'' of a program is developed. The relationship between structure and reducibility is illustrated with several examples. The last section of the paper deals with a testing methodology used in conjunction with the complexity measure; a testing strategy is defined that dictates that a program can either admit of a certain minimal testing level or the program can be structurally reduced.

Links and resources

Tags

community

  • @tommens
  • @evol
  • @yijunyu
  • @msn
  • @dblp
  • @derek-jones
  • @fritzsolms
  • @sjbutler
  • @kimmens
  • @reinierpost
  • @pdeleenh
  • @gron
  • @ytyoun
@fritzsolms's tags highlighted