dpkt - Dynamic Programming Optimal substructure property....

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Dynamic Programming Optimal substructure property. Characterizing the solution. Recurrence. Bottom up computation. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sequence alignment Let X = h x 1 ,x 2 ,...,x m i and Y = h y 1 ,y 2 ,...,y n i be two sequences of characters from a finite alphabet Σ. Consider the index sets: { 1 , 2 , ··· ,m } and { 1 , 2 , ··· ,n } . A matching is a collection of ordered pairs from these two sets such that for any two pairs ( i,j ) and ( i 0 ,j 0 ) in the matching, we have i 6 = i 0 and j 6 = j 0 . An alignment is a matching in which there are no crossing pairs: for any two pairs ( i,j ) and ( i 0 ,j 0 ) in the matching, if i < i 0 then j < j 0 . With every alignment associate a cost as follows: For each position of X or Y that is not matched there is a gap cost of δ . For each ( i,j ) in the alignment there is a mismatch cost of α X i Y j . Assume that α pp = 0 for all characters from the alphabet Σ. The cost of the alignment is the sum of the gap costs and the mismatch costs. Problem: Given two sequences X and Y find an alignment of minimum cost. 2
Background image of page 2
Sequence alignment: Characterization of a solution Let X 1 ..i = h x 1 , ··· ,x i i and Y 1 ..j = h y 1 , ··· ,y j i for 1 i m and 1 j n . Let opt ( i,j ) denote the minimum cost of an alignment of X 1 ..i with Y 1 ..j . First we need the following fact: Fact: In any alignment of X 1 ..i with Y 1 ..j , if the character x i is not matched with the character y j then either x i or y j has no matching in the alignment. Let
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

dpkt - Dynamic Programming Optimal substructure property....

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online