linspace - Space-Efcient Alignment CMSC 858S Space Usage...

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

View Full Document Right Arrow Icon
Space-EfFcient Alignment CMSC 858S
Background image of page 1

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

View Full DocumentRight Arrow Icon
Space Usage O(n 2 ) is pretty low space usage, but for a 10 Gb genome, you’d need a huge amount of memory. Can we use less? Hirschberg’s algorithm
Background image of page 2
Remember the meaning of a cell 0 1 2 3 4 5 6 7 8 9 10 11 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 x y C A G T T G C A A A A G G T A T G A A T C Best alignment between prefx x[1. .5] and prefx y[1. .5]
Background image of page 3

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

View Full DocumentRight Arrow Icon
Linear Space for Alignment Scores If you are only interested in the cost or score of an alignment, you need to use only O(n) space. How?
Background image of page 4
Linear Space for Alignment Scores If you are only interested in the cost or score of an alignment, you need to use only O(n) space. How? 0 1 2 3 4 5 6 7 8 9 10 11 12 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 When Flling in an entry (gray box) we only look at the current and previous rows. Only need to keep those two rows in memory.
Background image of page 5

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

View Full DocumentRight Arrow Icon
We can do more. .. Given 2 strings X and Y, we can, in linear space and O(nm) time, compute the cost of aligning. .. every preFx of X with Y X with every preFx of Y a particular preFx of X with every preFx of Y a particular sufFx of X with every sufFx of Y How can we do that?
Background image of page 6
Best Alignment Between Prefx oF X and Y 0 1 2 3 4 5 6 7 8 9 10 11 9 8 7 6 5 4 3 2 1 0 9g 8g 7g 6g 5g 4g 3g 2g 1g 0 1g 2g 3g 4g 5g 6g 7g 8g 9g 10g 11g 12g x y C A G T T G C A A A A G G T A T G A A T C Score of an optimal alignment between Y and a preFx of X
Background image of page 7

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

View Full DocumentRight Arrow Icon
Fill in the matrix by columns. .. 0 1 2 3 4 5 6 7 8 9 10 11 9 8 7 6 5 4 3 2 1 0 9g 8g 7g 6g 5g 4g 3g 2g 1g 0 1g 2g 3g 4g 5g 6g 7g 8g 9g 10g 11g 12g x y C A G T T G C A A A A G G T A T G A A T C What is this column?
Background image of page 8
Fill in the matrix by columns. .. 0 1 2 3 4 5 6 7 8 9 10 11 9 8 7 6 5 4 3 2 1 0 9g 8g 7g 6g 5g 4g 3g 2g 1g 0 1g 2g 3g 4g 5g 6g 7g 8g 9g 10g 11g 12g x y C A G T T G C A A A A G G T A T G A A T C What is this column?
Background image of page 9

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

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

Page1 / 24

linspace - Space-Efcient Alignment CMSC 858S Space Usage...

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

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