01 Graphs 6
01 Graphs 6
Ans :D
4. Suppose you have a game with 5 coins in a row and each coin can be heads or
tails. What number of vertices might you expect to find in the state graph?
a. A. 7
b. B. 10
c. C. 25
d. D. 32
Ans : B
(a) If few nodes are associated with a Di-Graph, array based implementation is more
useful than linked list implementation.
(b) If the graph contains n nodes, a total of n2 locations must be used in array based
implementation.
(c) If the graph is not weighted, the entire graph can de described using the Adjacency
matrix.
(d) Wars hall’s Algorithm increases the efficiency of finding the transitive closure.
(e) An example of a real life situation that can be modeled by a graph is the Air path
System.
Ans) B, C, D, E
b. The In _degree of a node n is the number of arcs which have n as the head.
Ans) B, C, E