Docsity

Shortest Superstring Problem: NP-Hardness and Approximation Algorithms, Exams of Advanced Algorithms

Toggle sidebar
bg1
HW 5: due Thurs, April 28
The shortest superstring problem is the following: Given a fininte alphabet
Σ, and a set of nstrings {s1, s2, . . . , sn}over this alphabet, construct the
shortest string sthat contains each sias a substring.
Example: strings are ATCG, CGT, TAAT, CGC, the string TAATCGCGT
contains all these strings as substrings and is of length 9 – is this shortest
possible??
1. Prove this problem is NP-hard.
2. Give a O(log n) approximation factor algorithm for this problem
3. (Optional-hard): Can you find a constant factor approximation algo-
rithm for this problem?

Partial preview of the text

Download Shortest Superstring Problem: NP-Hardness and Approximation Algorithms and more Exams Advanced Algorithms in PDF only on Docsity!

HW 5: due Thurs, April 28

The shortest superstring problem is the following: Given a fininte alphabet Σ, and a set of n strings {s 1 , s 2 ,... , sn} over this alphabet, construct the shortest string s that contains each si as a substring.

Example: strings are ATCG, CGT, TAAT, CGC, the string TAATCGCGT contains all these strings as substrings and is of length 9 – is this shortest possible??

  1. Prove this problem is NP-hard.
  2. Give a O(log n) approximation factor algorithm for this problem
  3. (Optional-hard): Can you find a constant factor approximation algo- rithm for this problem?