login

Subtree Isomorphism in O(n5/2)

Annals of discrete mathematicsPublished 1 January 1978
David W. Matula
Citations103

Abstract

The problem of determining if the tree S (unrooted) on n, vertices is isomorphic to any subtree of the tree T on n,t≥ns vertices is shown to be solvable in O(nt3/2ns) steps. The method involves the solution of an (nt,-1) by 2(nt,-1) array of maximum bipartite matching problems where some of these subproblems are solved in groups. Recognition of isomorphic subproblems yields a compacted data structure reducing practical storage requirements with no increase in the order of time complexity.

Keywords

Computer Science