Exercises marked with (*) require further reading/search beyond the suggested texts.
2. Find all optimal alignments betweenAAAG
andACG
with the following scoring system: p(a,b) = 1 if a = b, p(a,b) = -1 if a ≠ b, and g = -2.
Answer:
The optimal alignments are:
AAAG
A-CG
AAAG
AC-G
AAAG
-ACG
Using the spreadsheet we can confirm that they are optimal, because their score is -1, and that they are the only ones to reach this score.
© 2015 Joao Meidanis