A tree-edit-distance algorithm for comparing simple, closed shapes
Simple fast algorithms for the editing distance between trees and related problems