08 - Computing RNA secondary structure

08 - Computing RNA secondary structure - 1 , . .., n {A, C,...

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

View Full Document Right Arrow Icon
2/13/08 - Computing RNA secondary str. .. RNA: a single-stranded molecule made up of {A, C, G, U} Secondary structure: certain base pairs on same molecule match up Constraints: (i) A pairs only with U C pairs only with G U pairs only with A G pairs only with C (ii) A base pairs 1 other base. (iii) [No hairpin turns] If i pairs with j then |i - j| >= 5 (iv) [No knotting] If (i, j) and (k, l) are paired then NOT i < k < j < l. Sequence β 1 , β 2 , . .. , β n {A, C, G, U} (iii) If " β i pairs with β j } . .. (iv) "If ( β i , β j ) and ( β k , β l ) are paired" . .. 13-1 13
Background image of page 1

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

View Full DocumentRight Arrow Icon
The molecule maximizes the number of matched pairs. Problem: Given a string
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 , . .., n {A, C, G, U} n , Fnd a matching satisfying (i)-(iv) with max # of matched pairs. Strategy: Compute OPT(i, j) for every subsequence i , i+1 , . .., j in order of increasing j - i = k. for k = 1, 2, . .., n - 1 for i = 1, . .., n - k if k 4 OPT(i, i + k) = 0 else j = i + k 13-2 OPT(i, j) = max { OPT(i, j - 1), max i t j - 5, ( t , j ) { (A,U), (C, G), (G,C), (U,A)} {1 + OPT(i + 1, t - 1) + OPT(t + 1, j - 1) } Proof by induction over k. Running time: O(n 2 ) iterations of loop O(n) word per iteration Runtime: O(n 3 ) 13-3...
View Full Document

This note was uploaded on 10/02/2008 for the course CS 482 taught by Professor Kleinberg during the Spring '08 term at Cornell University (Engineering School).

Page1 / 3

08 - Computing RNA secondary structure - 1 , . .., n {A, C,...

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

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