Today I have two sequences,
s1 = CCGGGTTACCA
s2 = GGAGTTCA
The Mismatch Score is -1, the Gap Score is -2.
The Optimal Sequence Alignment has two answers (miniumn penalty is -8).
ans1 = G - G A G T T - C - A
C C G G G T T A C C A
ans2 = - G G A G T T - C - A
C C G G G T T A C C A
ans3 = G - G A G T T - - C A
C C G G G T T A C C A
ans4 = - G G A G T T - - C A
C C G G G T T A C C A
If any algorithm can calculate the number of Optimal Sequence Alignment (it will return "4") ?
Or what can I do to solve this problem?
Thanks
My score system is on the picture.
I do the Needleman-Wunsch algorithm (dynamic program) to complete the table.
Finally, I give up to only find the number of Optimal Sequence Alignment.
I trackback to find all the possible answers and insert the set, so the the size of set is my answer.