Abstract
Matching forms a bottle-neck in most implementations of rewrite systems. Bottom-up matching is a very fast form of matching. This paper presents a new approach to bottom-up matching that replaces match-sets by their unifiers. In this way it is possible to define a subsumption ordering on the states. A new algorithm is presented that uses the subsumption graph to compute the bottom-up tables. Its time complexity per table entry is O(rank × wd) where rank is the maximum arity of a function symbol and wd is the maximum number of immediate predecessors in the subsumption graph.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
David Chase. An improvement to bottom-up tree pattern matching. In Proceedings Fourteenth Annual ACM Symposium on Principles of Programming Languages, pages 168–177, January 1987.
J. Cai, R. Paige, and R. Tarjan. More efficient bottom-up tree pattern matching. In CAAP '90, pages 72–86. Springer LNCS 431, 1990.
Christoph M. Hoffmann and Michael J. O'Donnel. Pattern matching in trees. Journal of the ACM, 29(1):68–95, January 1982.
Paul Walton Purdom and Cynthia A. Brown. Fast many-to-one matching algorithms. In Proceedings Rewriting Techniques and Applications. Springer LNCS 202, 1985.
Humphrey Robert Walters. On Equal Terms: Implementing Algebraic Specifications. PhD thesis, University of Amsterdam, 1991.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1993 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Lippe, E. (1993). Generating tables for bottom-up matching. In: Kirchner, C. (eds) Rewriting Techniques and Applications. RTA 1993. Lecture Notes in Computer Science, vol 690. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-21551-7_21
Download citation
DOI: https://doi.org/10.1007/978-3-662-21551-7_21
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-56868-1
Online ISBN: 978-3-662-21551-7
eBook Packages: Springer Book Archive