An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees
Francesc Rossello,Gabriel Valiente
DOI: https://doi.org/10.48550/arXiv.cs/0604108
2006-04-27
Abstract:The relationship between two important problems in tree pattern matching, the largest common subtree and the smallest common supertree problems, is established by means of simple constructions, which allow one to obtain a largest common subtree of two trees from a smallest common supertree of them, and vice versa. These constructions are the same for isomorphic, homeomorphic, topological, and minor embeddings, they take only time linear in the size of the trees, and they turn out to have a clear algebraic meaning.
Data Structures and Algorithms,Discrete Mathematics,Category Theory