next up previous
Next: Improved spliced alignment algorithm Up: Spliced Alignment Previous: Network formulation

Spliced alignment algorithm

To solve the problem, we use dynamic programming. We start with a few notations: The recursive relation of S(i,j,k) is :

$ S(i,j,k) = \max
\cases{
S(i,j-1,k) + (-,t_j) & if $i \geq {\rm First}(B_k)$...
...
S({\rm Last}(B_l),j,l) + (g_i, -) & if $i = {\rm First}(B_k)$\space \cr
}
$

The Final score $\max \limits _{B_k \in \mathcal{B}}
S({\rm Last}(B_k),m,k)$ can therefore be computed in time complexity of O(nmL2) and in space complexity of O(nmL).

Peer Itsik
2000-12-25