Professional Documents
Culture Documents
Co1 Session 4
Co1 Session 4
SESSION - 4
AIM OF THE SESSION
INSTRUCTIONAL OBJECTIVES
LEARNING OUTCOMES
2
MCCABE’S CYCLOMATIC COMPLEXITY METRIC
or
modules
V(G)
Since V(G) = 4,
2 there are four paths
3 Path 1: 1,2,3,6,7,8
4
5 6 Path 2: 1,2,3,5,7,8
Path 3: 1,2,4,7,8
Path 4: 1,2,4,7,2,4,...7,8
7
Finally, we derive test
cases to exercise these
8
paths.
WHAT IS THE COMPLEXITY?
public void howComplex() {
int i=20;
while (i<10) {
System.out.printf("i is %d", i);
if (i%2 == 0) {
System.out.println("even");
} else {
System.out.println("odd");
}
}
}
WHAT IS THE COMPLEXITY V(G)?
public void howComplex() {
int i=20;
while (i<10) {
System.out.printf("i is %d", i);
if (i%2 == 0) {
System.out.println("even");
} else {
System.out.println("odd");
}
}
}
Reference Books:
TEXT BOOKS:
Reference Book
Software Reliability Measurement, Prediction, Application, John D. Musa, Anthony Iannino,
Kazuhira Okumoto,(1987 )
WEB REFERNCES/MOOCS:
https://www.javatpoint.com/software-engineering-software-reliability
https://thechief.io/c/blameless/heres-your-complete-definition-software-reliability/
https://www.codingninjas.com/codestudio/library/software-reliability-measurement-techniques
THANK YOU