Skip to content
Official PYQ · 2021

GATE CS 2021 Set 1 Q41 — Trees

Explain with AI

An articulationarticulation pointpoint in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected components.

Let TT be a DFS\text{DFS} tree obtained by doing DFS\text{DFS} in a connected undirected graph GG.

Which of the following options is/are correct?

Choose one option
View worked solution

Answer: B

Let us analyze the properties of a Depth First Search (DFS) tree TT for a connected undirected graph GG:

  • Option A & B: In a DFS tree of an undirected graph, there are only tree edges and back-edges (no cross-edges). The root of TT is an articulation point if and only if it has 22 or more children in TT. If it has only 11 child, removing the root leaves the single subtree connected. Thus, Option B is correct and Option A is incorrect.
  • Option C: A leaf node in TT has no descendants. Removing a leaf node cannot disconnect any other vertices because the remaining vertices stay connected via the rest of the spanning tree TT. Thus, a leaf can never be an articulation point. Option C is incorrect.
  • Option D: Suppose uu is an articulation point because it has a child subtree C1C_1 with no back-edges to any ancestor of uu. If uu has another child subtree C2C_2 that does have a back-edge to an ancestor xx of uu, then for any descendant yextinC2y ext{ in } C_2, there exists a path from xx to yy (via the back-edge) that completely bypasses uu. Thus, not all paths from xx to yy must pass through uu. Option D is incorrect.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Trees questions