GATE Computer ScienceModerateGATE CS (PYQ pattern)
Karger's contraction algorithm is run on a connected multigraph with n = 8 vertices, but it stops when 4 super-vertices remain (instead of 2). What lower bound does the standard analysis give on the probability that no edge of a fixed minimum cut has been contracted?
- A. 1/28
- B. 3/14
- C. 1/14
- D. 1/2
Correct answer: B. 3/14
When i vertices remain the min-cut survives a contraction with probability ≥ 1 − 2/i. Contracting from 8 down to 4: Π_{i=5}^{8} (i − 2)/i = (3·4·5·6)/(5·6·7·8) = (4·3)/(8·7) = 12/56 = 3/14 = C(4,2)/C(8,2). Running to 2 vertices gives 1/28.
More Algorithms questions
- Which of the following statements is/are correct? I. For metric TSP, doubling an MST and shortcutting gives a 2-approximation. II…
- A = [2, 5, 9, 14, 20, 27, 35, 41] and B = [1, 6, 8, 15, 22, 30, 33, 45, 50] are sorted. What is the 10th smallest element of the union of…
- How many non-empty contiguous subarrays of [3, 4, −7, 1, 3, 3, 1, −4, 2, 5, −3, 6] have sum exactly 7?
- How many pairs of positions i < j in the sorted array [1, 3, 4, 6, 7, 9, 11, 14, 15, 19] have a[i] + a[j] ≤ 20?
- What is the minimum weight of a spanning tree that must contain the edge 3-4 (weight 15) in the graph with edges 0-1 (7), 0-3 (5), 1-2…
- Lazy-deletion Dijkstra (a new heap entry is pushed whenever a label improves; stale entries are skipped when popped) runs from A on the…