Lecture 11
Learning objectives
After this class, you should be able to:
- Given two sequences of letters, their similarity matrix, and the gap penalty, determine the best global alignment for the two sequences using the Needleman-Wunsch algorithm.
- Analyze the time complexity of the above algorithm.
- Given a similar problem, give an algorithm, based on dynamic programming, to solve it, and analyze its time complexity.
Reading assignment
- Needleman-Wunsch algorithm slides.
Exercises and review questions
- Questions on current lecture's material
- (Post your answer on the discussion board. You need not show the score and traceback matrices there.) Give an example of two amino-acid sequences of length at least 4 and compute their best sequence alignment with the BLOSUM62 substitution matrix (for similarity) using the Needleman-Wunsch algorithm.
- Instead of filling the score matrix by rows, can we fill it by columns? (That is, fill column
i
before filling columni+1
.)- Questions on next lecture's material
- The Needleman-Wunsch algorithm computes the scores for prefixes. Can you solve the same problem by computing the suffixes? Give the recurrence for that.