magikker / TreeHouse-Private

TreeHouse development.
GNU General Public License v3.0
0 stars 0 forks source link

Compute the NNI distance between two trees #24

Open magikker opened 11 years ago

magikker commented 11 years ago

New function a NNI_dist(tree1, tree2) should return the minimum number of NNI steps between the two trees.

This is the minimum number of nearest neighbour interchange steps that it would take to get from tree1 to tree2. This is interesting because nni is one of the ways that search algorithms navigate tree space in order to find trees. It's the simplest of the major three methods but is still a very hard problem.