Nonlinear pattern matching in trees

  • Authors:
  • R. Ramesh;I. V. Ramakrishnan

  • Affiliations:
  • University of Texas at Dallas, Richardson, Texas;State University of New York at Stony Brook, Stony Brook, New York

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1992

Quantified Score

Hi-index 0.01

Visualization

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.