Data Structures & AlgorithmsVery hardGATE CS · Advanced

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

  1. A. 4 and 4
  2. B. 3 and 3
  3. C. 3 and 4
  4. D. 4 and 3

Correct answer: C. 3 and 4

Delete each vertex (or edge) in turn and test connectivity: 3 vertices and 4 edges disconnect the graph. Vertices of a bridge need not be articulation points, and an articulation point need not lie on a bridge.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic