Quiz Space

Advanced Algorithms · End Term · 31 Aug 2025 · May 2025 term · Set QDB3

Question 20: Consider the following approximation algorithm for the w…

Question 20

+2 marksOne correct option

Consider the following approximation algorithm for the weighted vertex cover problem.

1: Solve the relaxed linear program corresponding to the given problem:

Minimize∑i=1nweight(vi)⋅xiSubject toxi+xj≥1for all edges (vi,vj)∈E0≤xi≤1for 1≤i≤n\begin{aligned} &\text{Minimize} \quad && \textstyle\sum_{i=1}^{n} \mathit{weight}(v_i) \cdot x_i \\ &\text{Subject to} \quad && x_i + x_j \geq 1 \quad \text{for all edges } (v_i, v_j) \in E \\ & && 0 \leq x_i \leq 1 \quad \text{for } 1 \leq i \leq n \end{aligned}

2: C←{vi∈V:xi≥1/2}C \leftarrow \{v_i \in V : x_i \geq 1/2\}

3: return CC

Based on the above data, answer the given subquestions.

  1. A

    We still get a valid solution, and the algorithm remains a 2-approximation.

  2. B

    We still get a valid solution, and the algorithm becomes a (3/2)-approximation.

  3. C

    We may no longer get a valid solution.

Show answer

Correct answer

  • C

    We may no longer get a valid solution.

Question 20 of 21 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M IMPROVEMENT FN EXAM QIA1 31 Aug 2025). It carries 2 marks.

More questions from this paper

  1. Q1In this problem you are given as input a graph T = (V, E) that is a tree (that is, T is undirected, connected, and acyc…
  2. Q2Consider the task of counting how many sequences of length n exist consisting only of numbers 0, 1, and 2 such that eac…
  3. Q3Consider the task of counting how many sequences of length n exist consisting only of numbers 0, 1, and 2 such that eac…
  4. Q4Consider the task of counting how many sequences of length n exist consisting only of numbers 0, 1, and 2 such that eac…
  5. Q5Consider the task of counting how many sequences of length n exist consisting only of numbers 0, 1, and 2 such that eac…
  6. Q6Consider the task of counting how many sequences of length n exist consisting only of numbers 0, 1, and 2 such that eac…
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Choose the correct options:
  10. Q10Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c} Family \mathcal{F} = {S_1 = {a, …
  11. Q11Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c, d} Family \mathcal{F} = \left{S_…
  12. Q12Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c, d} Family \mathcal{F} = \left{S_…
  13. Q13In the MIN-2-SAT problem, we are given a 2-CNF formula \phi and an integer k, and the objective is to decide whether th…
  14. Q14Consider the given statements and answer the subquestions if they are true or false. The worst-case running time and ex…
  15. Q15Consider the given statements and answer the subquestions if they are true or false. An adversary can provide randomize…
  16. Q16Every linear program has a unique optimal solution.
  17. Q17Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  18. Q18Recall that the size of an optimal vertex cover is at most twice the size of a maximum matching of a graph G. Are there…
  19. Q19Consider the following approximation algorithm for the weighted vertex cover problem. 1: Solve the relaxed linear progr…
  20. Q21Figure question