Data Structures & AlgorithmsHardGATE CS · Codeforces Div 2
Connected undirected graph on vertices A, B, C, D, E, F, G with edges A–D (1), A–E (1), A–F (1), B–E (1), B–F (1), C–D (1), D–F (1), D–G (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.
- A. 1
- B. 2
- C. 4
- D. 6
Correct answer: A. 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.
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 undirected weighted graph on vertices A, B, C, D, E, F with edges A–B (1), A–C (14), A–F (12), B–D (12), C–D (8), C–E (1), E–F…
- Directed acyclic graph on vertices A, B, C, D, E, F, G (every edge goes from a smaller to a larger letter) with weighted edges A→E (8)…
- Complete undirected graph on vertices A to F with symmetric edge weights given row by row (row i, column j = weight of edge between…
- Directed weighted graph on vertices A, B, C, D, E with edges listed in this exact order: C→A (3); E→C (7); B→C (-2); B→D (6); A→B (5); C→E…
- Undirected graph on vertices A, B, C, D, E, F, G with edges A–D (1), A–E (1), A–G (1), B–C (1), B–F (1), B–G (1), D–F (1), D–G (1), E–G…
- Array A = [9, 1, 6, 12, 6, 8]. Over all non-empty contiguous subarrays, what is the maximum value of the XOR of the elements in the…