Quiz Space

Advanced Algorithms · End Term · 24 Dec 2023 · September 2023 term · Set ADI4

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

Question 12

+3 marksOne correct option

Consider the following instance of Set Cover problem:

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

We use dynamic programming to find the minimum number of sets from F\mathcal{F} required to cover U\mathcal{U}. Recall that for every X⊆UX \subseteq \mathcal{U} and every 0≤j≤∣F∣0 \leq j \leq |\mathcal{F}|, our algorithm computes and stores Π(X,j)\Pi(X, j), i.e., minimum number of sets from Fj={S1,…,Sj}\mathcal{F}_j = \{S_1, \ldots, S_j\} required to cover XX.

Consider the following DP table:

{a,b,c,d}\{a, b, c, d\}∞\infty∞\infty∞\infty22
{b,c,d}\{b, c, d\}∞\infty∞\infty∞\infty22
{a,c,d}\{a, c, d\}∞\infty∞\infty222
{a,b,d}\{a, b, d\}∞\infty∞\infty∞\infty22
{a,b,c}\{a, b, c\}∞\infty∞\infty∞\infty22
{c,d}\{c, d\}∞\infty∞\infty222
{b,d}\{b, d\}∞\infty∞\infty∞\infty11
{b,c}\{b, c\}∞\infty∞\infty∞\infty21
{a,d}\{a, d\}∞\infty∞\infty111
{a,c}\{a, c\}∞\infty1111
{a,b}\{a, b\}∞\infty∞\infty∞\infty22
{d}\{d\}∞\infty∞\infty111
{c}\{c\}∞\infty1111
{b}\{b\}∞\infty∞\infty∞\infty11
{a}\{a\}∞\infty1111
Φ\Phi00000
XX / jj01234

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 12 of 24 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) End Term paper sat on 24 Dec 2023, in the September 2023 term (IIT M DEGREE FN EXAM FDB1 24 Dec 2023). It carries 3 marks.

More questions from this paper

  1. Q1In one term of an academic program, we have n days. Students have to earn at least P credits during these n days to rem…
  2. Q2In one term of an academic program, we have n days. Students have to earn at least P credits during these n days to rem…
  3. Q3In one term of an academic program, we have n days. Students have to earn at least P credits during these n days to rem…
  4. Q4In one term of an academic program, we have n days. Students have to earn at least P credits during these n days to rem…
  5. Q5Figure question
  6. Q6Choose the correct options:
  7. Q7Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c} Family \mathcal{F} = {S_1 = {a, …
  8. Q8What is the answer if R = C = N and there are no cut out squares?
  9. Q9What is the answer if R = C = N and all the squares on the topmost row and rightmost column (i.e, a L-shape) are cut ou…
  10. Q10Consider the following bipartite graph: the set A is composed of elements corresponding to every row of the board, whil…
  11. Q11What is the maximum number of edges that the graph constructed in the previous question can have?
  12. Q13Consider the following instance of Set Cover problem: Universe \mathcal{U} = {a, b, c, d} Family \mathcal{F} = \left{S_…
  13. Q14The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalizat…
  14. Q15The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalizat…
  15. Q16The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalizat…
  16. Q17In 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…
  17. Q18Consider the given statements and answer if they are true or false. The worst-case running time and expected running ti…
  18. Q19Consider the given statements and answer if they are true or false.
  19. Q20Every linear program has a unique optimal solution.
  20. Q21Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  21. Q22Consider the algorithm in the previous question. Does the algorithm always output an optimal vertex cover?
  22. Q23Consider the algorithm in the previous question no 22. Does the algorithm always output a 2- approximate vertex cover?
  23. Q24Recall that the size of an optimal vertex cover is at most twice the size of a maximum matching of a graph G. Are there…