Table 6.1 illustrates a simple FORTRAN routine and the associated values of N1,N2,n1 and n2
Halstead defines several quantities using these numbers. For example , program length N is defined as N1+N2; (N1+N2=50 in Table 6.1)
Halstead's estimator of program length is :
-------------------------------------------------------
2) Halstead's Software Metrics Halstead [12] proposed a set of software metrics for measuring the algorithmic complexity by counting operators and operands from software codes. Let n 1 = number of distinct operators, n 2 = number of distinct operands, N 1 = total number of operator occurrences, and N 2 = total number of operand occurrences. Based on the above notations, the definition of Halstead’s measures can be summarized as displayed in TABLE II