The Closest Substring problem with small distances
D´ aniel Marx
dmarx@informatik.hu-berlin.de
June 10, 2005
The Closest Substring problem with small distances – p.1/28
The Closest Substring problem with small distances D aniel Marx - - PowerPoint PPT Presentation
The Closest Substring problem with small distances D aniel Marx dmarx@informatik.hu-berlin.de June 10, 2005 The Closest Substring problem with small distances p.1/28 The Closest String problem C LOSEST S TRING Strings s 1 , . . . , s k
The Closest Substring problem with small distances – p.1/28
i=1 d(s, si)
The Closest Substring problem with small distances – p.2/28
i of si for every i
i=1 d(s, s′ i)
i for every i.
The Closest Substring problem with small distances – p.3/28
The Closest Substring problem with small distances – p.4/28
The Closest Substring problem with small distances – p.5/28
The Closest Substring problem with small distances – p.5/28
i of si for every i
i) ≤ d for every i
The Closest Substring problem with small distances – p.6/28
The Closest Substring problem with small distances – p.7/28
The Closest Substring problem with small distances – p.7/28
The Closest Substring problem with small distances – p.8/28
The Closest Substring problem with small distances – p.8/28
The Closest Substring problem with small distances – p.9/28
The Closest Substring problem with small distances – p.9/28
1 d+1, then a (1 + ǫ)-approximation algorithm can
The Closest Substring problem with small distances – p.10/28
The Closest Substring problem with small distances – p.11/28
i=1 d(s, s′ i) is as small as
i) ≤ d for every i).
The Closest Substring problem with small distances – p.12/28
i=1 d(s, s′ i) is as small as
i) ≤ d for every i).
The Closest Substring problem with small distances – p.12/28
The Closest Substring problem with small distances – p.13/28
The Closest Substring problem with small distances – p.13/28
1, . . . , s′ k) be a minimal solution. We show that {s′ 1, . . . , s′ k}
1} has at most d bad positions.
i ⇒ no bad position
The Closest Substring problem with small distances – p.14/28
i that disagree on at least half of the bad positions,
i=1 d(s, s′ i) smaller.
The Closest Substring problem with small distances – p.15/28
i 1 1 1 0 0 0 1 1 1
i that disagree on at least half of the bad positions,
i=1 d(s, s′ i) smaller.
The Closest Substring problem with small distances – p.15/28
i 1 1 1 0 0 0 1 1 1
i that disagree on at least half of the bad positions,
i=1 d(s, s′ i) smaller.
i differs from s on at most d positions, the O(log d) strings will
The Closest Substring problem with small distances – p.15/28
The Closest Substring problem with small distances – p.16/28
The Closest Substring problem with small distances – p.16/28
1 2 1 2 1 2
The Closest Substring problem with small distances – p.16/28
The Closest Substring problem with small distances – p.17/28
The Closest Substring problem with small distances – p.17/28
1 4 1 4 1 2 1 2
The Closest Substring problem with small distances – p.17/28
1 4 1 4 1 2 1 2
1
1.5
1.5
2
The Closest Substring problem with small distances – p.17/28
A A B D C B D C
The Closest Substring problem with small distances – p.18/28
A A B D C B D C
The Closest Substring problem with small distances – p.18/28
A A B D C B D C
The Closest Substring problem with small distances – p.18/28
The Closest Substring problem with small distances – p.19/28
1
1
1 ) ≤ ̺∗(H1), the list Li cannot be too large.
The Closest Substring problem with small distances – p.19/28
The Closest Substring problem with small distances – p.20/28
i of si for every i
i) ≤ d for every i
The Closest Substring problem with small distances – p.21/28
1 (≤ n possibilities).
1 on
1 on positions P .
The Closest Substring problem with small distances – p.22/28
1
The Closest Substring problem with small distances – p.23/28
1 on positions P .
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
5 1 0 0 1 1 1 0 0 0 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
5 1 0 0 1 1 1 0 0 0 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
5 1 0 0 1 1 1 0 0 0 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
5 1 0 0 1 1 1 0 0 0 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
5 1 0 0 1 1 1 0 0 0 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
The Closest Substring problem with small distances – p.24/28
1 on positions P .
1 and s differ.
1 0 0 0 0 0 0 0 0 0 0
2 0 1 1 1 1 0 0 1 0 0
3 0 1 0 0 0 1 1 0 0 0
4 0 0 1 1 0 1 0 0 1 0
The Closest Substring problem with small distances – p.24/28
The Closest Substring problem with small distances – p.25/28
i is
The Closest Substring problem with small distances – p.25/28
The Closest Substring problem with small distances – p.26/28
The Closest Substring problem with small distances – p.27/28
The Closest Substring problem with small distances – p.28/28