GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 41

GATE CSE 2021 Set 1 Q41

Algorithms · Graph Algorithms · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q41 2 marks · MSQ
Report issue

Graph Algorithms

Question 41, GATE 2021: For a DFS tree T of a connected undirected graph G, select all true statements. A its root can never be an articulation point; B its root is an articulation point iff it has at least two DFS children; C a DFS leaf can be an articulation point; D if u is an articulation point, x is its ancestor and y its descendant in T, every graph path x→y must pass through u.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B

The DFS root is an articulation point exactly when it has at least two DFS children. Distinct child subtrees have no connecting edge in an undirected DFS, whereas one child subtree remains connected after deleting the root. This proves B and disproves A. A DFS leaf cannot disconnect the remaining DFS tree when removed, so C is false. D is too strong: use edges x-u, u-y, y-x, u-z and DFS order x, u, y, z. Vertex u is an articulation point because its removal isolates z, but the edge x-y avoids u even though x is its ancestor and y its descendant.

For a nonroot vertex u, the actual test is whether some DFS child v has low[v]≥discovery[u], meaning that child's subtree lacks a back-edge to a strict ancestor of u. It does not assert that every descendant is trapped. The counterexample in the main derivation separates a trapped branch z from a branch y that can reach ancestor x by a back-edge. For the root, two distinct child subtrees cannot connect except through the root, or DFS would have explored them as one subtree.

Original paper, page 34 · Answer key