Algorithm 1: An algorithm to compute a parsimonious tree from a minimum spanning tree.
| Data: T1 a minimum spanning tree, with edge set |
| Result: T2 a labeled tree, with edge set |
| ; |
| while do |
| ; |
| ; |
| if |
| ; |
| ; |
| ; |
| else |
| ; |
| ; |
| ; |
| end |
| end |
| Data: T1 a minimum spanning tree, with edge set |
| Result: T2 a labeled tree, with edge set |
| ; |
| while do |
| ; |
| ; |
| if |
| ; |
| ; |
| ; |
| else |
| ; |
| ; |
| ; |
| end |
| end |