Skip to main content
An Entropy-Based Measure of Software Complexity
IEEE Transactions on Software Engineering (2002)
  • Warren Harrison, Portland State University

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)

Publication Date
August, 2002
Citation Information
Warren Harrison. "An Entropy-Based Measure of Software Complexity" IEEE Transactions on Software Engineering Vol. 18 Iss. 11 (2002)
Available at: