An Entropy-Based Measure of Software Complexity

  • Authors:
  • Warren Harrison

  • Affiliations:
  • -

  • Venue:
  • IEEE Transactions on Software Engineering - Special issue on software measurement principles, techniques, and environments
  • Year:
  • 1992

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is proposed that the complexity of a program is inversely proportional to the average information content of its operators. An empirical probability distribution of the operators occurring in a program is constructed, and the classical entropy calculation is applied. The performance of the resulting metric is assessed in the analysis of two commercial applications totaling well over 130000 lines of code. The results indicate that the new metric does a good job of associating modules with their error spans (averaging number of tokens between error occurrences).