Pattern Matching in Trees
Christoph M. Hoffmann, Michael J. O’Donnell · Journal of the ACM · 1982
ABSTgACT.Tree pattern matching is an interesting special problem which occurs as a crucial step m a number of programmmg tasks, for instance, design of interpreters for nonprocedural programming languages, automatic implementations of abstract data types, code optimization m compilers, symbohc computation, context searching in structure editors, and automatic theorem provmg.As with the sorting problem, the variations in requirements and resources for each application seem to preclude a uniform, umversal solution to the tree-pattern-matching problem.Instead, a collection of well-analyzed techmques, from which specific applications may be selected and adapted, should be sought.Five new techniques for tree pattern matching are presented, analyzed for time and space complexity, and compared with previously known methods.Particularly important are applications where the same patterns are matched against many subjects and where a subject may be modified incrementally Therefore, methods which spend some tune preprocessmg patterns in order to improve the actual matching time are included Categories and SubJect Descriptors' F.2.2 [Analysis of Algorithms and Problem Complexity]' Nonnutactical Algorithms and Problems--pattern matchmg, G 2 2 [Discrete Mathematics]: Graph Theory--trees
Cited by 442 works. doi:10.1145/322290.322295 Open-access PDF
Authors
References
- The Art of Computer Programming
- The Design and Analysis of Computer Algorithms
- A Machine-Oriented Logic Based on the Resolution Principle
- The Art of Computer Programming: Volume 3: Sorting and Searching
- Fast Pattern Matching in Strings
- Efficient string matching
- A fast string searching algorithm
- The art of computer programming. Vol.3: Sorting and searching
- Simple Word Problems in Universal Algebras
- Rapid identification of repeated patterns in strings, trees and arrays