The relationship between two important problems in tree pattern matching, the largest common subtree and the smallest common supertree of two trees, is established by means of simple constructions, which allow one to obtain the largest common subtree from the smallest common supertree, and vice versa. These constructions are given for the problems of isomorphic, homeomorphic, topological, and minor embeddings. They can be implemented by a straightforward extension of any algorithm that solves one of the two problems, and the extension only takes time linear in the size of the trees.
CitationRosselló, F., Valiente, G. "An algebraic view of the relation between largest common subtrees and smallest common supertrees". 2004.
All rights reserved. This work is protected by the corresponding intellectual and industrial property rights. Without prejudice to any existing legal exemptions, reproduction, distribution, public communication or transformation of this work are prohibited without permission of the copyright holder. If you wish to make any use of the work not provided for in the law, please contact: firstname.lastname@example.org