in IS&Software Engineering retagged by
4,336 views
5 votes
5 votes

The Cyclomatic Complexity metric V(G) of the following control flow graph

  1. 3
  2. 4
  3. 5
  4. 6
in IS&Software Engineering retagged by
4.3k views

3 Comments

Do not study this dude, Its out of syllabus.
1
1
these questions coming in isro,,,,and other exams
3
3
Not really. This question is from s/w engineering  and the anzwer is 4. As the no.  Of regions is 4. Three inner and one outer.
1
1

2 Answers

9 votes
9 votes
Best answer
Cyclomatic complexity = e - n + 2 p

= 7 - 5 + 2(1)

= 4

Or cyclomatic complexity is the number of regions enclosed = 4
selected by
by

3 Comments

What is e,n,p?
0
0
e - edge

n - node

P - component
0
0
Yes.
0
0
8 votes
8 votes

Cyclomatic complexity is a software metric (measurement), used to indicate the complexity of a program.Cyclomatic complexity is computed using the control flow graph of the program

The complexity M is then defined as

M = E − N + 2P,

where

E = the number of edges of the graph.
N = the number of nodes of the graph.
P = the number of connected components.
 
Cyclomatic complexity(M) = E − N + 2P,
=7-5+2(1)=4
by

1 comment

But this video from nptel has a different definition. watch at 11:34 sec .

Even this video has same definition.. 

0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true