GATE CS 2022 | Question 58
Algorithms › Graph Algorithms · NAT · 2 marks · Answer: 24
- Question 58Algorithmsnat2 marksDirected graph , , for . A directed spanning tree rooted at has a directed path from to every vertex. The number of such directed spanning trees rooted at vertex 5 is __________.
Answer: 24
Solution
Answer: 24 The adjacency matrix has for (a lower-triangular reachability). A directed spanning tree rooted at vertex 5 must have a path from 5 to every other vertex; counting the valid arborescences rooted at 5 in this DAG-like structure gives 24.
More GATE PYQ on Graph Algorithms
All GATE CS Algorithms PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →