Graph Algorithms questions

Q45

GATE CS 2024 CS-1Graph AlgorithmsMSQ2 marks
Let GG be a directed graph and TT a depth first search (DFS) spanning tree in GG that is rooted at a vertex vv. Suppose TT is also a breadth first search (BFS) tree in GG, rooted at vv. Which of the following statements is/are TRUE for every such graph GG and tree TT?
More than one option can be correct.
Show answer without attempting

Answer: C

Q60

GATE CS 2024 CS-1Graph AlgorithmsNAT2 marks
The number of edges present in the forest generated by the DFS traversal of an undirected graph GG with 100 vertices is 40. The number of connected components in GG is _________
Show answer without attempting

Answer: 60

Q59

GATE CS 2024 CS-2Graph AlgorithmsNAT2 marks
The number of distinct minimum-weight spanning trees of the following graph is _________
Question figure
Show answer without attempting

Answer: 9

0/30 correct0 marks

Related topics in Algorithms