Quiz Space

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

Question 10: Consider the following instance of Set Cover problem: Un…

Question 10

+3 marksOne correct option

Consider the following instance of Set Cover problem:

  • Universe U={a,b,c}\mathcal{U} = \{a, b, c\}
  • Family F={S1={a,b},S2={a},S3={b},S4={c}}\mathcal{F} = \{S_1 = \{a, b\}, S_2 = \{a\}, S_3 = \{b\}, S_4 = \{c\}\}

We build the following DP table for finding the Minimum Set Cover.

Π(X,j)\Pi(X, j) : minimum number of sets from S1,…,SjS_1, \ldots, S_j required to cover XX

jj / XXϕ\phi{a}\{a\}{b}\{b\}{c}\{c\}{a,b}\{a, b\}{a,c}\{a, c\}{b,c}\{b, c\}{a,b,c}\{a, b, c\}
00∞\infty∞\infty∞\infty∞\infty∞\infty∞\infty∞\infty
1011∞\infty1∞\infty∞\infty∞\infty
2011∞\infty1∞\infty∞\infty∞\infty
3011∞\infty1∞\infty∞\infty∞\infty
40111122?

What is the missing entry?

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    3

Show answer

Correct answer

  • C

    2

Question 10 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 3 marks.

This question was also asked in

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. Q11Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c, d} Family \mathcal{F} = \left{S_…
  11. Q12Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c, d} Family \mathcal{F} = \left{S_…
  12. 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…
  13. Q14Consider the given statements and answer the subquestions if they are true or false. The worst-case running time and ex…
  14. Q15Consider the given statements and answer the subquestions if they are true or false. An adversary can provide randomize…
  15. Q16Every linear program has a unique optimal solution.
  16. 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…
  17. 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…
  18. Q19Consider the following approximation algorithm for the weighted vertex cover problem. 1: Solve the relaxed linear progr…
  19. Q20Consider the following approximation algorithm for the weighted vertex cover problem. 1: Solve the relaxed linear progr…
  20. Q21Figure question