In Halstead’s Software Science, program length ($N$) is calculated using total operators ($N_1$) and total operands ($N_2$) as:
A$N = N_1 imes N_2$
B$N = N_1 + N_2$
C$N = log_2(N_1 + N_2)$
D$N = N_1 / N_2$
Explanation
Halstead defines total program length as the simple sum of total operator count $N_1$ and operand count $N_2$.

No Comments