Halstead Program Volume

From Maisqual Wiki

Jump to: navigation, search

Contents


Definition

According to Halstead, Program Volume V corresponds to the minimum number of bits required for program coding.

V = N * log2(n)

where

For each occurrence of N operator or operand which appears in the program, a number v of bits are required to specify it such that n = 2v, thus v = log2(n). The above formula is deduced from this.


See also

Glossary:

Metrics:

Personal tools