GATE Computer ScienceHardGATE CS (PYQ pattern)
Which of the following statements is/are correct? I. For metric TSP, doubling an MST and shortcutting gives a 2-approximation. II. Christofides' algorithm gives a 3/2-approximation for metric TSP. III. Unless P = NP, general (non-metric) TSP has no polynomial-time constant-factor approximation. IV. Polynomial-time algorithms with approximation ratio 1.5 for Vertex Cover are known.
- A. I, II and III only
- B. I and II only
- C. II and III only
- D. I, II, III and IV
Correct answer: A. I, II and III only
I and II are classical, and III follows from the NP-hardness of Hamiltonian cycle (a gap reduction). IV is false: the known polynomial-time ratio for Vertex Cover is 2 − o(1), and a better constant would be a major result.
More Algorithms questions
- 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…
- A directed graph has edges 0→1 (3), 1→2 (2), 2→0 (4), 1→3 (1), 3→4 (5), 4→1 (−1), 2→4 (6), 4→0 (2), 3→0 (1). What is the minimum mean…