You are on page 1of 10

Introduction

This presentation demonstrates the Concept of Software metrics different factors used to measure the metrics. Will also cover the different aspects of Halstead Software Science measure

Software Metrics
It is a unit of measurement of software. Software includes
Product
Program Document Reports

Development Process
All phases of SDLC

SM contd.
Software Metrics makes it possible to for a software to
Compare Evaluate Analyzed Quantitatively

Some other factors


Program size Efficiency Reliability Programmer Exp. Complexity

HALSTEAD'S SOFTWARE SCIENCE


This includes the concept of counting the tokens in the program text. This count helps in calculating the measures of
Length Volume Efforts Development time

Contd.
Tokens include all symbols occurring in program including punctuations and keywords Tokens are of two categories:
Operators Operands

Rules of Halsteads
For calculating tokens following is used:
n1: number of unique operators n2 = number of unique operands N1 = total occurrences of operators N2 = total occurrences of operands

Formulas used
Program vocabulary: n = n1 + n2 Program length: N = N1 + N2 Program volume: V = N log2 n

Program level: L = V*/V (V* is the size of the minimal program implementing the algorithm) Program effort: E = V/L or E = V2/V* Program development time: T = E/S (S = number of mental discriminations per second or Stroud number, usually = 18)

Halstead hypothesized that these quantities could be estimated using only n1 and n2 to obtain an estimate of the length, namely N^ = n1 log2 n1 + n2 log2 n2.

You might also like