GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 3

GATE CSE 2014 Set 1 Q3

Discrete Mathematics · Trees & Connectivity · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q3 1 mark · MCQ
Report issue

Trees & Connectivity

Question 3, GATE 2014: For directed G=(V,E), which construction preserves its strongly connected components? A: Keep V and use every ordered pair not in E. B: Keep V and reverse all edges: E₂={(u,v):(v,u)∈E}. C: Keep V and add an edge (u,v) whenever G has a path from u to v of length at most 2. D: Keep E but remove isolated vertices from V. The paper asks for one option.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Our answer: B and C

1. Method and setup. An SCC is an equivalence class under mutual reachability, so compare reachability rather than individual edges. Reversing paths preserves mutual reachability. Also, shortening existing paths into edges cannot introduce reachability that was absent, while retaining all length-one edges preserves old paths.

2. Work through the result and its assumptions. Reversing every edge reverses paths and preserves mutual reachability, so B preserves every SCC. C also preserves them: it includes every original length 1 edge, and every added edge abbreviates an original path of length≤2. Thus reachability in either graph is equivalent. The official single answer B omits the equally valid C. Deleting isolated vertices loses singleton SCCs; complementing edges need not preserve SCCs.

Original paper, page 8 · Answer key