Space-Saving Strategies for Computing Δ-points Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University,

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science.
Advertisements

Sequence Alignment Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Heaviest Segments in a Number Sequence Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.
Minimum Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Technical Specification / Schedule Department of Computer Science and Engineering Michigan State University Spring 2007 Team : CSE 498, Collaborative Design.
Mental Math Computation. Multiply Mentally 84 × 25 What strategy did you use? Why did we choose 84 × 25 instead of 85 × 25?
Foxconn Tries to Move Past the iPhone Kun-Mao Chao Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University,
Counting Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
computer
Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.
8.5 – Using Properties of Logarithms. Product Property:
Laws of Logarithms 5.6. Laws of Logarithms O If M and N are positive real numbers and b is a positive number such that b  1, then O 1. log b MN = log.
Selected Videos for Biomedical Informatics Kun-Mao Chao ( 趙坤茂 ) National Taiwan University
Multiple Sequence Alignment Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan WWW:
Algorithms for Biological Sequence Analysis Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University,
Apple Raises $17 Billion in Record Debt Sale Kun-Mao Chao Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan.
Eye-Tracking Tech Kun-Mao Chao Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan A note.
Heaviest Segments in a Number Sequence Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.
Algorithms for the Maximum Subarray Problem Based on Matrix Multiplication Authours : Hisao Tamaki & Takeshi Tokuyama Speaker : Rung-Ren Lin.
Introduction to Computer Science Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan ( 台大資訊工程系.
Interesting Sequences Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan Date: October.
Dynamic Programming Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Never-ending stories Kun-Mao Chao ( 趙坤茂 ) Dept. of Computer Science and Information Engineering National Taiwan University, Taiwan
The Theory of Computation Kun-Mao Chao ( 趙坤茂 ) National Taiwan University
We want to add here all the Eleven schools that are functional. Next slide shows how it would look when we click on School of Studies.
Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Space-Saving Strategies for Analyzing Biomolecular Sequences Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan.
Hacked A.P. Twitter Kun-Mao Chao Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan A note.
The Imitation Game Kun-Mao Chao Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan A note.
On the R ange M aximum-Sum S egment Q uery Problem Kuan-Yu Chen and Kun-Mao Chao Department of Computer Science and Information Engineering, National Taiwan.
Data Structures and Analysis (COMP 410)
Homology Search Tools Kun-Mao Chao (趙坤茂)
Online Courses A note given in BCC class on May 10, 2016
Sequence Alignment Kun-Mao Chao (趙坤茂)
Homology Search Tools Kun-Mao Chao (趙坤茂)
A note given in BCC class on March 15, 2016
Solve: 1. 4<
Minimum Spanning Trees
Shortest-Paths Trees Kun-Mao Chao (趙坤茂)
Heaviest Segments in a Number Sequence
The Largest Known Prime Number
A Quick Note on Useful Algorithmic Strategies
Бази от данни и СУБД Основни понятия инж. Ангел Ст. Ангелов.
Data Structures and Analysis (COMP 410)
A Note on Useful Algorithmic Strategies
A Note on Useful Algorithmic Strategies
A Note on Useful Algorithmic Strategies
Graphic Organisers Blank graphic organisers. These contain text boxes that can be filled by teachers who wish to share examples / ideas with other teachers.
The Theory of Computation
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Analyzing Biomolecular Sequences
Multiple Sequence Alignment
Facebook’s WhatsApp Purchase
Minimum Spanning Trees
Properties of Logarithmic Functions
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Analyzing Biomolecular Sequences
Trees Kun-Mao Chao (趙坤茂)
Space-Saving Strategies for Computing Δ-points
Homology Search Tools Kun-Mao Chao (趙坤茂)
Trees Kun-Mao Chao (趙坤茂)
Գագաթի որոնում (Peak Finder)
Minimum Spanning Trees
Multiple Sequence Alignment
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Computing Δ-points
Dynamic Programming Kun-Mao Chao (趙坤茂)
Presentation transcript:

Space-Saving Strategies for Computing Δ-points Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan WWW:

2 Δ-points S - (i, j): the best score of a path from (0, 0) to (i, j). S + (i, j): the best score of a path from (i, j) to (m, n). Δ-points: S - (i, j) + S + ( i, j) >= Δ S - S +

3 Method 1: O(MN) time; O(MN) space S - S + M N

4 Method 2: O(M 2 N) time; O(N) space S - S + Each row takes O(MN) time. In total, O(M) x O(MN) = O(M 2 N) M N

5 Method 3: O(MN) time; O(N) space S - S + M N

6 Method 4: O(MN log M) time; O(N log M) space S - S + M N

7 Method 5: O(MN log min {M, N}) time; O(M+N) space M N

8 Method 6: O(MN log log min {M, N}) time; O(M+N) space M N 1/2 2 1/2 3 1/2 5 1/2 9 1/2 5 1/2 10 1/2 19 Real Size

9 Method 7: O(1/ε MN) time; O(1/ε M ε N) space Here we use ε= 1/2 to illustrate the idea. S - S + M N M 1/2 Solve each M 1/2 N problem

10 Method 8: O(1/εMN) time; O(1/ε M 1+ε + N) space Here we use ε= 1/2 to illustrate the idea. M NM2M3M S - S + M M M 1/2 Solve each M 1/2 M problem O(N)O(N)

11 Methods Method 1: O(MN) time; O(MN) space Method 2: O(M 2 N) time; O(M) space Method 3: O(MN) time; O(M) space Method 4: O(MN log M) time; O(N log M) space Method 5: O(MN log min {M, N}) time; O(M+N) space Method 6: O(MN log log min {M, N}) time; O(M+N) space Method 7: O(1/εMN) time; O(1/ ε M ε N) space Method 8: O(1/εMN) time; O(1/ε M 1+ε + N) space

12 Bonus points O(MN) time; O(M+N) space o(MN log log min {M, N}) time; O(M+N) space O(1/εMN) time; o(1/ε M 1+ε +N) space