Algorithm 3: A modified agglomerative hierarchical clustering.
| Data: n points |
| Result: A parsimonious tree T for |
| ; |
| ; |
| ; |
| ; |
| while do |
| for ; |
| ; |
| ; |
| ; |
| ; |
| if is a leaf then |
| ; |
| else |
| ; |
| end |
| if is a leaf then |
| ; |
| else |
| ; |
| end |
| ; |
| ; |
| end |
| Data: n points |
| Result: A parsimonious tree T for |
| ; |
| ; |
| ; |
| ; |
| while do |
| for ; |
| ; |
| ; |
| ; |
| ; |
| if is a leaf then |
| ; |
| else |
| ; |
| end |
| if is a leaf then |
| ; |
| else |
| ; |
| end |
| ; |
| ; |
| end |