Data Structures & AlgorithmsVery hardGATE CS · Product-company placement

An undirected connected graph has edges A–D, A–G, B–E, C–E, C–G, D–H, D–I, F–I, G–H. How many articulation points (cut vertices) and how many bridges does it have?

  1. A. 6 articulation points, 5 bridges
  2. B. 5 articulation points, 6 bridges
  3. C. 5 articulation points, 5 bridges
  4. D. 4 articulation points, 5 bridges

Correct answer: C. 5 articulation points, 5 bridges

Cut vertices: C, D, E, G, I; bridges: B–E, C–E, C–G, D–I, F–I. A bridge's endpoints are cut vertices unless they are leaves, and a vertex joining two cycles is a cut vertex even with no bridge.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic