Data Structures & AlgorithmsHardGATE CS · ICPC regional

Connected undirected graph on vertices A, B, C, D, E, F with edges A–C (1), A–D (1), A–E (1), A–F (1), B–D (1), E–F (1) (weights ignored). How many articulation points (cut vertices) does it have? A cut vertex is one whose removal, with its incident edges, leaves the remaining vertices disconnected.

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

Correct answer: C. 2

Deleting each vertex and testing the rest gives 2 cut vertices. Bridges are a different count (the edge version) and degree heuristics are not sufficient.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic