|
TR-268-90
More Efficient Bottom-Up Tree Pattern Matching |
|
| Authors: | Cai, Jin-Yi, Paige, R., Tarjan, Robert E. |
| Date: | May 1990 |
| Pages: | 16 |
| Download Formats: | [PDF] |
Pattern matching in trees is fundamental to a variety of programming language systems. However, progress has been slow in satisfying a pressing need for general purpose pattern matching algorithms that are efficient in both time and space. We offer asymptotic improvements in both time and space to Chase's bottom-up algorithm for pattern preprocessing. Our preprocessing algorithm has the additional advantage of being incremental with respect to pattern additions and deletions. We show how to modify our algorithm using a new decomposition method to obtain a space/time tradeoff. Finally, we trade a log factor in time for a linear space bottom-up pattern matching algorithm that handles a wide subclass of Hoffmann and O'Donnell's Simple Patterns. |
|