next up previous
Next: Scoring Metrics Up: Multiple Alignment Previous: Multiple Alignment

Dynamic Programming Solution

The best multiple alignment of r sequences is calculated using an r-dimensional hyper-cube D, defining 4#4 to be the best score for aligning the prefixes of lengths 5#5 of the sequences 6#6, respectively.
We define

7#7


And we calculate

8#8


where 9#9 is the cost function. The size of the hyper-cube is 10#10, where nj is the length of xj, where computation of each of each entry consider 2r -1 others.
If 11#11, the space complexity is of O(nr) and the time complexity is of O(2r nr).

Peer Itsik
2000-12-06