recategorized by
10,994 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.3k
views
1 answers
2 votes
go_editor asked Jul 27, 2016
2,322 views
The compiler converts all operands upto the type of the largest operand is calledType PromotionType EvaluationType ConversionType Declaration
2.2k
views
2 answers
3 votes
go_editor asked Jul 29, 2016
2,153 views
Possible thread states in Windows 2000 operating system include:Ready, running and waitingReady, standby, running, waiting, transition and ... waiting, transition and terminatedStandby, running, waiting, transition and terminated