GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An undirected graph has vertices 0–11 and edges 0-1, 1-2, 2-0, 2-3, 3-4, 4-5, 5-3, 5-6, 6-7, 7-8, 8-6, 1-9, 9-10, 10-1, 4-11. Let a be its number of articulation points and b its number of bridges. What is (a, b)?
- A. (6, 3)
- B. (6, 2)
- C. (4, 3)
- D. (7, 3)
Correct answer: A. (6, 3)
The blocks are the triangles {0,1,2}, {3,4,5}, {6,7,8}, {1,9,10} and the bridges 2-3, 5-6, 4-11. Cut vertices are the vertices in two or more blocks: 1, 2, 3, 4, 5, 6 (a = 6). The bridges are exactly the edges on no cycle: b = 3. Missing the pendant bridge 4-11 gives b = 2.
More Algorithms questions
- A flow network has edges s→a 10, s→b 8, a→c 4, a→d 3, b→d 5, b→c 2, a→b 3, c→t 9, d→t 8; its maximum flow value is 14. How many different…
- A network has capacities s→u 100, s→v 50, u→v 1, u→t 50, v→t 100. Ford–Fulkerson may choose ANY augmenting path in the residual graph…
- A bipartite graph has left vertices L0–L8 and right vertices R0–R6, with adjacency L0:{R0}, L1:{R0,R1}, L2:{R0,R1}, L3:{R0,R1}…
- Johnson's algorithm reweights the directed graph with edges A→B 3, A→C 8, B→D −4, C→B 10, D→C −5, D→E 2, E→A 6, C→E 1. The potentials h(v)…
- An activity-on-arc project has events S, A, B, C, D, E, T and activities (duration): S→A 3, S→B 2, A→C 4, B→C 6, A→D 2, C→D 3, C→E 5, D→E…
- Prim's algorithm starts at A on a graph with edges AB 6, AC 1, AD 5, BC 5, BE 3, CD 7, CE 8, CF 4, DF 2, EF 9, FG 10, EG 11, DG 12, AG 13…