Graph Algorithms questions

Q30

GATE CS 2018 CSGraph AlgorithmsMCQ2 marks−2/3 if wrong
Let GG be a simple undirected graph. Let TDT_D be a depth first search tree of GG. Let TBT_B be a breadth first search tree of GG. Consider the following statements.

(I) No edge of GG is a cross edge with respect to TDT_D. (A cross edge in GG is between two nodes neither of which is an ancestor of the other in TDT_D.)
(II) For every edge (u,v)(u, v) of GG, if uu is at depth ii and vv is at depth jj in TBT_B, then ∣i−j∣=1|i - j| = 1.

Which of the statements above must necessarily be true?
Show answer without attempting

Answer: A

Q47

GATE CS 2018 CSGraph AlgorithmsNAT2 marks
Consider the following undirected graph G:

Choose a value for xx that will maximize the number of minimum weight spanning trees (MWSTs) of G. The number of MWSTs of G for this value of xx is ______.
Question figure
Show answer without attempting

Answer: 4

0/20 correct0 marks

Related topics in Algorithms