02.08.2013 Views

Algorithms on Sequences

Algorithms on Sequences

Algorithms on Sequences

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Needleman & Wunsh’s algorithm (4)<br />

• The score S N,M is calculated from the<br />

recurrence equati<strong>on</strong> :<br />

S I,J-1 - Gap<br />

S I,J = Max S I-1,J-1 + Sub (X I ,Y J )<br />

S I-1,J - Gap<br />

Needleman & Wunsh’s algorithm (5)<br />

T<br />

A<br />

G<br />

A<br />

C<br />

T<br />

T A G C T A<br />

i,j<br />

S I,J-1 - Gap<br />

S I,J = Max S I-1,J-1 + Sub (XI ,YJ )<br />

S I-1,J - Gap<br />

Complexity :<br />

filling a matrix of size N x M<br />

Result : S N,M

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!