recategorized by
10,834 views
3 votes
3 votes

Given a flow graph with 10 nodes, 13 edges and one connected components, the number of regions and the number of predicate (decision) nodes in the flow graph will be

  1. 4, 5
  2. 5, 4
  3. 3, 1
  4. 13, 8
recategorized by

1 Answer

5 votes
5 votes

Predicate (decision) nodes are those nodes which has out degree atleast 2.

Region =13-10+2 = 5  [i.e. edges - vertex  + (p+1)] since p= 1]

predicate nodes(P)= 

= region = P+1 = 5

 P = 4

so (B) is ans.

Answer:

Related questions

2 votes
2 votes
1 answer
1
go_editor asked Jul 27, 2016
2,234 views
The compiler converts all operands upto the type of the largest operand is calledType PromotionType EvaluationType ConversionType Declaration
3 votes
3 votes
2 answers
2