CS3000: Algorithms & Data Jonathan Ullman
Lecture 8:
- Dynamic Programming: RNA Folding, Practice
CS3000: Algorithms & Data Jonathan Ullman Lecture 8: Dynamic - - PowerPoint PPT Presentation
CS3000: Algorithms & Data Jonathan Ullman Lecture 8: Dynamic Programming: RNA Folding, Practice Feb 3, 2020 RNA Folding DNA DNA is a string of four bases {A,C,G,T} Two complementary strands of DNA stick together and form a
B are compatible bases
OPPQROSPT N OPT 𝑗, 𝑢 − 1 + OPT 𝑢 + 1, 𝑘 − 1
@ 5Y> = @ @Z> W
Notation … means … Think… E.g. f(n)=O(n) ∃𝑑 > 0, 𝑜c > 0, ∀𝑜 ≥ 𝑜c: 0 ≤ 𝑔 𝑜 ≤ 𝑑(𝑜) At most “≤” 100n2 = O(n3) f(n)=W(g(n)) ∃𝑑 > 0, 𝑜c > 0, ∀𝑜 ≥ 𝑜c: 0 ≤ 𝑑 𝑜 ≤ 𝑔(𝑜) At least “≥” 2n = W(n100) f(n)=Q(g(n)) 𝑔 𝑜 = 𝑃 𝑜 and 𝑔 𝑜 = 𝛻( 𝑜 ) Equals “=” log(n!) = Q(n log n) f(n)=o(g(n)) ∀𝑑 > 0, ∃𝑜c > 0, ∀𝑜 ≥ 𝑜c: 0 ≤ 𝑔 𝑜 < 𝑑(𝑜) Less than “<” n2 = o(2n) f(n)=w(g(n)) ∀𝑑 > 0, ∃𝑜c > 0, ∀𝑜 ≥ 𝑜c: 0 ≤ 𝑑 𝑜 < 𝑔(𝑜) Greater than “>” n2 = w(log n)
m 𝑜 = 𝑃 𝑜r
5 = 𝑃 𝑔 5Z>
@ 5Y>
> = 𝑃 and 𝑔 W = 𝑃 .
> + 𝑔 W = 𝑃 .