linear_space_alignment

linear_space_alignment - University of North Texas...

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

View Full Document Right Arrow Icon
    Biocomputing University of North Texas Linear Space Alignment: Source: www.bioalgorithms.info
Background image of page 1

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

View Full DocumentRight Arrow Icon
  University of North Texas Biocomputing Divide and Conquer Algorithms Divide problem into sub-problems Conquer by solving sub-problems recursively. If the sub-problems are small enough, solve them in brute force fashion Combine the solutions of sub-problems into a solution of the original problem (tricky part)
Background image of page 2
  University of North Texas Biocomputing Sorting Problem Revisited Given: an unsorted array Goal: sort it 5 2 4 7 1 3 2 6 1 2 2 3 4 5 6 7
Background image of page 3

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

View Full DocumentRight Arrow Icon
  University of North Texas Biocomputing Mergesort: Divide Step Step 1 – Divide 5 2 4 7 1 3 2 6 5 2 4 7 1 3 2 6 5 2 4 7 1 3 2 6 5 2 4 7 1 3 2 6 log( n) divisions to split an array of size n into single elements
Background image of page 4
  University of North Texas Biocomputing Mergesort: Conquer Step Conquer (Sort and Merge) 1 2 2 3 4 5 6 7 2 4 5 7 1 2 3 6 2 5 4 7 1 3 2 6 5 2 4 7 1 3 2 6 O( n ) O( n ) O( n ) O( n ) O( n log n ) log n iterations, each iteration takes O (n) time. Total Time:
Background image of page 5

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

View Full DocumentRight Arrow Icon
  University of North Texas Biocomputing Divide and Conquer Approach to LCS         Path (source, sink )    if ( source sink  are in consecutive columns)     output the longest path from  source   to  sink    else      middle    middle vertex between  source sink      Path (source, middle )      Path (middle, sink) The only problem left is how to find this “middle vertex”!
Background image of page 6
  University of North Texas Biocomputing Computing Prefix( i ) prefix ( i ) is the length of the longest path from (0,0) to ( i , m /2) Compute prefix ( i ) by dynamic programming in the left half of the matrix 0 m/2 m store prefix ( i ) column
Background image of page 7

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

View Full DocumentRight Arrow Icon
  University of North Texas Biocomputing Computing Suffix( i ) suffix ( i ) is the length of the longest path from ( i , m /2) to (n,m) suffix ( i ) is the length of the longest path from ( n,m ) to ( i , m /2) with all edges reversed Compute suffix ( i ) by dynamic programming in the right half of the “reversed” matrix 0 m/2 m store suffix ( i ) column
Background image of page 8
  University of North Texas
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.

This note was uploaded on 04/15/2011 for the course BIOL 1132 taught by Professor Gretabolin during the Spring '11 term at North Texas.

Page1 / 36

linear_space_alignment - University of North Texas...

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