Dynamic Programing

Dynamic Programing Dynamic Programing

biochemistry.utoronto.ca
from biochemistry.utoronto.ca More from this publisher
03.01.2015 Views

Needleman-Wunsch Algorithm for any gap penalty models Does affine gap model work with simple Needleman-Wunsch Algorithm we just saw w1 ... wj ... wm v1 : vi 0 + (j) gap +(j-1)gap + (i-1) gaps +s(vi, wj) +gap +gap +(i) gaps : vn Optimal alignment score

Needleman-Wunsch Algorithm for any gap penalty models Does affine gap model work with simple Needleman-Wunsch Algorithm we just saw w1 ... wj ... wm v1 : vi 0 + (j) gap +(j-1)gap + (i-1) gaps +s(vi, wj) +gap +gap +(i) gaps : vn Optimal alignment score NW (i, j) = max # NW (i ! 1, j ! 1) + s(v i ,w j ) % $ [NW (i ! n gap , j) + w(n gap1 )] 1"ngap1 "i % &% [NW (i, j ! n gap2 ) + w(n gap2 )] 1"ngap 2 " j match/mismatch delete insert

Needleman-Wunsch Algorithm<br />

for any gap penalty models<br />

Does affine gap model work with simple Needleman-Wunsch Algorithm we just saw<br />

w1 ... wj ... wm<br />

v1<br />

:<br />

vi<br />

0<br />

+ (j) gap<br />

+(j-1)gap<br />

+ (i-1)<br />

gaps<br />

+s(vi, wj) +gap<br />

+gap<br />

+(i)<br />

gaps<br />

:<br />

vn<br />

Optimal<br />

alignment<br />

score

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

Saved successfully!

Ooh no, something went wrong!