SIAM Journal on Computing · 1995 · 202 citations · 14 references
ComputingComputer ScienceAlgorithmsCombinatoricsDatabasesData Structure AlgorithmsGraph AlgorithmsDeletion AlgorithmsExponential Time ComplexityMatching AlgorithmsPolynomial Time ComplexityPolynomial-time AlgorithmsPolynomial-time ReductionsTree AlgorithmsTree-graph
The following tree-matching problem is considered: Given labeled trees P and T, can P be obtained from T by deleting nodes? Deleting a node u entails removing all edges incident to u and, if u has a parent v, replacing the edge from v to u by edges from v to the children of u. The problem is motivated by the study of query languages for structured text databases. Simple solutions to this problem require exponential time. For ordered trees an algorithm is presented that requires $O(|P||T|)$ time and space. The corresponding problem for unordered trees is also considered and a proof of its NP-completeness is given. An algorithm is presented for the unordered problem. This algorithm works in $O(|P||T|)$ time if the out-degrees of the nodes in P are bounded by a constant, and in polynomial time if they are $O(\log |T|)$.
14
Graph minors. II. Algorithmic aspects of tree-width
Neil Robertson, Paul Seymour · Journal of Algorithms · 1986 · 1.5K citations
A linear space algorithm for computing maximal common subsequences
D. S. Hirschberg · Communications of the ACM · 1975 · 1.1K citations · Full text
The Tree-to-Tree Correction Problem
Kuo‐Chung Tai · Journal of the ACM · 1979 · 863 citations · Full text