blog/2019/05/10/constructing-trees-from-a-distance-matrix #5
Replies: 2 comments 3 replies
|
Great post Guilherme! I was reading the Bioinformatics Algorithms book and I was thinking about one of the "Exercise Breaks" written in that book that reads: "The proposed algorithm computes LIMBLENGTH(j) in O(n^2) time (for an n x n distance matrix). Design an algorithm that computes LIMBLENGTH(j) in O(n) time" As you mention in you post, the running time for limblength is O(n^2) which I thought too is the best that can be done. Wondering if you have any thoughts on the problem above? From my point of view O(n^2) comparisons are always needed since we need to compute all combinations of i and k. |
3 replies
|
major edits: Added contribution, converted to Latex |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
blog/2019/05/10/constructing-trees-from-a-distance-matrix
NP-Incompleteness:
https://www.kuniga.me/blog/2019/05/10/constructing-trees-from-a-distance-matrix.html
All reactions