GATE CSE 2022 Q58: Directed spanning trees rooted at vertex 5
- Engineering Mathematics
- 2 marks
- NAT
- No negative marking
Question
Let be a directed graph, where is the set of vertices and is the set of directed edges, as defined by the following adjacency matrix .
indicates a directed edge from node to node . A directed spanning tree of , rooted at , is defined as a subgraph of such that the undirected version of is a tree, and contains a directed path from to every other vertex in . The number of such directed spanning trees rooted at vertex 5 is_____________.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 24 (official GATE 2022 final answer key)
Concept used: In a rooted directed spanning tree, every non-root vertex has exactly one incoming edge, and edges only go from higher to lower (or equal) labels.
First step: Vertex can take its incoming tree edge from any of ; multiply the number of choices.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key
More Engineering Mathematics PYQs
- 2026 Session 1 · Q11Pólya urn: equal red and blue after two steps
- 2026 Session 1 · Q124×4 binary matrices with even parity in every row and column
- 2026 Session 1 · Q13Maximum multiplicity of an eigenvalue of an n×n real matrix
- 2026 Session 1 · Q20Matrix with e2 in its null space: determinant and rank
- 2026 Session 1 · Q32Continuity at 0 of c1·e^x − c2·ln(1/x)
- 2026 Session 1 · Q46Extrema and smoothness of (|x|/2 − x)(x − |x|/2)