July 13, 2012, midnight by Rosalind Team
Topics: String Algorithms
Motifs Are Rarely Contiguous
A subsequence of a string is a collection of symbols contained in order (though not necessarily contiguously) in the string (e.g., ACG is a subsequence of TATGCTAAGATC). The indices of a subsequence are the positions in the string at which the symbols of the subsequence appear; thus, the indices of ACG in TATGCTAAGATC can be represented by (2, 5, 9).
As a substring can have multiple locations, a subsequence can have multiple collections of indices, and the same index can be reused in more than one appearance of the subsequence; for example, ACG is a subsequence of AACCGGTT in 8 different ways.
Given: Two DNA strings
Return: One collection of indices of
>Rosalind_14 ACGTACGTGACG >Rosalind_18 GTA
3 8 10
Extra Information