Review Session I
CS 466
Wesley Wei Qian March 10th 2020
Review Session I CS 466 Wesley Wei Qian March 10th 2020 Midterm - - PowerPoint PPT Presentation
Review Session I CS 466 Wesley Wei Qian March 10th 2020 Midterm Exam This Thursday! 03/12 class time Different building! Nature History Building Room 2079 Topics Topics we have covered: Molecular Biology
CS 466
Wesley Wei Qian March 10th 2020
Midterm Exam
○ 03/12 class time
○ Nature History Building Room 2079
Topics we have covered:
Molecular Biology
Probability and Statistics
Probability and Statistics
Probability and Statistics
Probability and Statistics
Probability and Statistics
Probability and Statistics
Probability and Statistics
Sequence and Alignment
Sequence and Alignment
Global Alignment Local Alignment
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
DDOGC D-OG-
Sequence and Alignment
* D D O G C *
D
1
O
G
1
Global Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
DDOGC
Sequence and Alignment
* D D O G C * D 1 1 O 2 G 3 1
Local Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C * D 1 1 O 2 G 3 1
Local Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C * D 1 1 O 2 G 3 1
Local Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C * D 1 1 O 2 G 3 1
Local Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
Sequence and Alignment
* D D O G C * D 1 1 O 2 G 3
Local Alignment: DDOGC vs DOG
+1 Match; -1 Mismatch; -2 Gap.
DOG
Sequence and Alignment Complexity?
Sequence and Alignment Complexity?
Sequence and Alignment Scoring function and BLOSUM matrix
rounding factor
Sequence and Alignment Affine Gap Penalty
Pattern Matching
Pattern Matching Naive Approach
Running Time: O(KMN)
Pattern Matching Keyword Tree
Running Time: O(KN + NM)
Pattern Matching
Running Time: O(KN + M)
Aho-Corasick
Pattern Matching
One more example:
http://blog.ivank.net/aho-corasick-algorithm-in-as3.html
Aho-Corasick
Pattern Matching
Fixed patterns with various query string… what if we have a fix string but different query patterns? compile the patterns -> compile the string
A different setting
Pattern Matching
Running time: O(M^2 + N) Build a keyword tree: {abcabx, bcabx, cabx, abx, bx, x}
Suffix Tree for {abcabx}
Pattern Matching
Running time: O(M^2 + N) O(M + N) if do Ukkonen Algo. but no required!
Suffix Tree for {abcabx}