Data Structures & AlgorithmsHardICPC regional · GATE CS
Connected simple undirected graph on vertices 0 to 6 with edges: 1–3, 2–3, 3–4, 0–5, 1–2, 5–6, 0–3. How many articulation points (vertices whose removal disconnects the graph) does it have?
- A. 4
- B. 1
- C. 2
- D. 3
Correct answer: D. 3
Removing each vertex and checking whether the rest stays connected finds 3 cut vertices. The bridge count (4), the leaf count (2) and the cycle rank (1) are the traps.
Practise more Trees, Graphs, Recursion and Dynamic Programming questionsTrees, Graphs, Recursion and Dynamic Programming: notes and key points
More Trees, Graphs, Recursion and Dynamic Programming questions
- Connected simple undirected graph on vertices 0 to 5 with edges: 3–4, 1–5, 0–5, 3–5, 0–2, 1–4, 2–5, 4–5, 0–4, 1–3, 2–4. What is the…
- Connected simple undirected graph on vertices 0 to 6 with edges: 1–6, 5–6, 2–3, 0–2, 4–5, 2–6, 3–5. What is the minimum number of new…
- Connected simple undirected graph on vertices 0 to 6 with edges: 2–4, 0–1, 1–6, 5–6, 0–3, 3–4, 1–5, 2–3, 0–6, 2–5, 4–5. What is the…
- Connected simple undirected graph on vertices 0 to 7 with edges: 2–6, 4–6, 2–3, 0–4, 4–7, 3–7, 3–4, 1–7, 4–5. What is the minimum number…
- Connected simple undirected graph on vertices 0 to 7 with edges: 4–7, 2–4, 4–5, 2–3, 1–5, 6–7, 5–7, 0–6. What is the minimum number of new…
- Connected simple undirected graph on vertices 0 to 7 with edges: 0–4, 0–3, 2–5, 2–7, 1–4, 2–3, 4–6, 3–7, 4–5, 1–3, 0–1, 0–5, 0–7, 3–4…