Quiz Space

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

Question 16: Observe that for a given \pi, the length of the correspo…

Question 16

+3 marksOne correct option

Based on the above data answer the given subquestions.

Observe that for a given π\pi, the length of the corresponding superstring s(π)s(\pi), which is obtained by writing the input strings in the order (sπ(1),…,sπ(n))\left(s_{\pi(1)}, \ldots, s_{\pi(n)}\right) and merging adjacent strings, is given by:

∣s(π)∣=∑i=1n∣si∣−∑i=1n−1∣ov⁡(sπ(i),sπ(i+1))∣.|s(\pi)| = \sum_{i=1}^{n} |s_i| - \sum_{i=1}^{n-1} \left|\operatorname{ov}\left(s_{\pi(i)}, s_{\pi(i+1)}\right)\right|.

The compression of π\pi is the sum of the overlaps of adjacent strings in the permutation π\pi. Finding a shortest superstring is equivalent to:

  1. A
  2. B
  3. C
Show answer

Correct answer

  • A

Question 16 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. Q17We define an overlap graph OG(\mathcal{S}) associated with \mathcal{S} as follows: OG(\mathcal{S}) is a complete direct…
  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