All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · September 2022

Statement I: Vertex cover has a polynomial-time 2-approximation algorithm. Statement II: TSP-tour is a polynomial-time 3-approximation algorithm for the travelling salesman problem with the triangle inequality. Which is correct?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. Statement I true and Statement II false

Explanation

APPROX-VERTEX-COVER is a 2-approximation. APPROX-TSP-TOUR (MST-based) with the triangle inequality is a 2-approximation, not 3.

More Data Structures and Algorithms questions