Nonlinear pattern matching in trees
- 1 April 1992
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 39 (2) , 295-316
- https://doi.org/10.1145/128749.128752
Abstract
Tree pattern matching is a fundamental operation that is used in a number of programming tasks such as mechanical theorem proving, term rewriting, symbolic computation, and nonprocedural programming languages. In this paper, we present new sequential algorithms for nonlinear pattern matching in trees. Our algorithm improves upon know tree pattern matching algorithms in important aspects such as time performance, ease of integration with several reduction strategies and ability to avoid unnecessary computation steps on match attempts that fail. The expected time complexity of our algorithm is linear in the sum of the sizes of the two trees.Keywords
This publication has 5 references indexed in Scilit:
- Patterns and pattern-matching in trees: An analysisInformation and Control, 1983
- Algebraic SimplificationPublished by Springer Nature ,1982
- Pattern Matching in TreesJournal of the ACM, 1982
- Variations on the Common Subexpression ProblemJournal of the ACM, 1980
- Efficient string matchingCommunications of the ACM, 1975