A Complexity Measure

  • Authors:
  • T. J. McCabe

  • Affiliations:
  • Department of Defense, National Security Agency

  • Venue:
  • IEEE Transactions on Software Engineering
  • Year:
  • 1976

Quantified Score

Hi-index 0.03

Visualization

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.