Next: Improved spliced alignment algorithm
Up: Spliced Alignment
Previous: Network formulation
To solve the problem,
we use dynamic programming.
We start with a few notations:
- A j-prefix of block
is
.
- If Bk contains the position i, the i-prefix of
is
.
- For block
First(Bk) = i and
.
- A Chain
ends
at
,
and it ends before position i, if
.
-
is a set of blocks from
ending before
i, i.e. if
than
.
-
.
The recursive relation of S(i,j,k) is :
The Final score
can therefore be computed in time
complexity of O(nmL2) and in space complexity of O(nmL).
Peer Itsik
2000-12-25