An investigation into the effects of the counting method used on software science measurements

  • Authors:
  • James L. Elshoff

  • Affiliations:
  • General Motors Research Laboratories, Warren, Michigan

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1978

Quantified Score

Hi-index 0.00

Visualization

Abstract

Professor Maurice Halstead of Purdue University first defined a set of properties of algorithms in 1972. The properties are defined in terms of the number of unique operators, unique operands, total operators, and total operands used to express the algorithm. Since 1972, independent experiments have measured various sets of algorithms and have supported Halstead's theories concerning these properties. Also, new properties have been defined and experiments performed to study them.This paper reports a study in which different methods of counting operators and operands are applied to a fixed set of 34 algorithms written in PL/I. Some properties of the algorithms vary significantly depending on the counting method chosen; other properties remain stable. Although no one counting method can be shown to be best, the results do indicate the importance of the counting method to the overall measurement of an algorithm. Moreover, the results provide a reminder of how sensitive some of the measurements are and of how careful researchers must be when drawing conclusions from software science measurements.