Quiz Space

Advanced Algorithms · Quiz 2 · 1 Dec 2024 · September 2024 term

Question 17: We define an overlap graph OG(\mathcal{S}) associated wi…

Question 17

+3 marksOne correct option

Based on the above data answer the given subquestions.

We define an overlap graph OG(S)OG(\mathcal{S}) associated with S\mathcal{S} as follows: OG(S)OG(\mathcal{S}) is a complete directed graph (V,E)(V, E) (that is, for every s,t∈Vs, t \in V there are edges (s,t)(s, t) and (t,s)(t, s)), where V=SV = \mathcal{S}, and the weight of an edge (s,t)(s, t) is ∣ov⁡(s,t)∣|\operatorname{ov}(s, t)|.

Let us say that an edge (u,v)(u, v) dominates another edge (u′,v′)(u', v'), if they share head or tail (that is, u=u′u = u' or v=v′v = v') and ∣ov⁡(u,v)∣⩾∣ov⁡(u′,v′)∣|\operatorname{ov}(u, v)| \geqslant |\operatorname{ov}(u', v')|.

In terms of the overlap graph, the greedy algorithm goes through a list of all edges in OG(S)OG(\mathcal{S}) in the nonincreasing order of their overlap and includes some of them in a solution. Specifically, the greedy algorithm does not include another edge if and only if

R1. it is dominated by an already chosen edge,

R2. it is not dominated but it would form a cycle.

What is the structure of the set of edges returned by the greedy algorithm?

  1. A
  2. B
  3. C
Show answer

Correct answer

  • B

Question 17 of 26 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 01 Dec 2024). It carries 3 marks.

More questions from this paper

  1. Q1Based on the above data answer the given subquestions.
  2. Q2Consider the following reduction from 3-PARTITION to 2-PARTITION: let {a_1, \ldots, a_{3n}} be the instance of 3-PARTIT…
  3. Q3Consider the following reduction from 3-PARTITION to 2-PARTITION: let {a_1, \ldots, a_{3n}} be the instance of 3-PARTIT…
  4. Q4Based on the above data answer the given subquestions.
  5. Q5We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  6. Q6We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  7. Q7We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  8. Q8We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  9. Q9We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  10. Q10We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  11. Q11We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  12. Q12We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  13. Q13We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  14. Q14We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  15. Q15Based on the above data answer the given subquestions.
  16. Q16Observe that for a given \pi, the length of the corresponding superstring s(\pi), which is obtained by writing the inpu…
  17. Q18Based on the above data answer the given subquestions.
  18. Q19Figure question
  19. Q20Figure question
  20. Q21Figure question
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Figure question
  24. Q25Figure question
  25. Q26Figure question