GATE Computer ScienceVery hardGATE CS

An undirected graph has vertices 0 to 13 and edges 0-1, 1-2, 2-0, 2-3, 3-4, 4-5, 5-3, 5-6, 6-7, 7-8, 8-6, 1-9, 9-10, 10-11, 11-9, 4-12, 12-13. Let A be the number of articulation points and B the number of bridges. What is A + B?

  1. A. 12
  2. B. 11
  3. C. 14
  4. D. 13

Correct answer: D. 13

The triangles are {0,1,2}, {3,4,5}, {6,7,8} and {9,10,11}. Articulation points are 1, 2, 3, 4, 5, 6, 9 and 12 (A = 8); bridges are 2-3, 5-6, 1-9, 4-12 and 12-13 (B = 5), so A + B = 13. Vertex 12 is an articulation point because removing it detaches 13.

More Algorithms questions

Exams that ask this topic