Data Structures & AlgorithmsHardCodeforces Div 2 · ICPC regional

Connected undirected graph on vertices A, B, C, D, E, F, G, H with edges A–D (1), B–F (1), B–H (1), C–D (1), D–E (1), D–H (1), E–G (1), F–G (1), G–H (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. 2
  2. B. 1
  3. C. 7
  4. D. 3

Correct answer: B. 1

Deleting each vertex and testing the rest gives 1 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