Dynamic Programing Part A
Dynamic Programing Part A
-2
-2
-2
-2
Step 2 Matrix Filling
Step 2 Matrix Filling
Step 2 Matrix Filling
Step 3 Trace back
Important steps for writing the alignment
• To write the alignment we have to consider the arrows not the values
• we have to write the aligned sequences from left to right
4
T& T is a match so C&C is a match so
the arrow goes the arrow goes
diagonally diagonally
G&G is a match so
the arrow goes
Diagonally again
Now A&T is a
mismatch so
the arrow goes
horizontally
towards the highest
Valued neighbor
Now A&A is a
mismatch again so
the arrow goes
diagonally
Final sequence alignment