𝔖 Bobbio Scriptorium
✦   LIBER   ✦

A new algorithm for linear regular tree pattern matching

✍ Scribed by Priti Shankar; Amitranjan Gantait; A.R. Yuvaraj; Maya Madhavan


Publisher
Elsevier Science
Year
2000
Tongue
English
Weight
129 KB
Volume
242
Category
Article
ISSN
0304-3975

No coin nor oath required. For personal study only.

✦ Synopsis


We consider the problem of linear regular tree pattern matching and describe a new solution based on a bottom up technique. Current bottom up techniques preprocess the patterns and construct a ΓΏnite state tree pattern matching automaton for the purpose. Though matching time is linear in the size of the subject tree, the size of the automaton can be exponential in the sum of the sizes of all patterns. We show here that the problem can be cast as a parsing problem for a context free language, and a solution that uses an extension of the LR parsing technique can be devised. Though the size of the resulting pushdown automaton can be exponential in the pattern size in the worst case, there are problem instances for which exponential gains in succinctness of representation are obtained. The technique has been successfully applied to the problem of generation of an instruction selector in a compiler back end.


πŸ“œ SIMILAR VOLUMES


A new regular grammar pattern matching a
✍ Bruce W. Watson πŸ“‚ Article πŸ“… 2003 πŸ› Elsevier Science 🌐 English βš– 155 KB

This paper presents a Boyer-Moore type algorithm for regular grammar pattern matching, answering a variant of an open problem posed by Aho (Pattern Matching in Strings, Academic Press, New York, 1980, p. 342). The new algorithm handles patterns speciΓΏed by regular (left linear) grammars-a generaliza

A Subquadratic Algorithm for Approximate
✍ S. Wu; U. Manber; E. Myers πŸ“‚ Article πŸ“… 1995 πŸ› Elsevier Science 🌐 English βš– 673 KB

The main result of this paper is an algorithm for approximate matching of a regular expression of size \(m\) in a text of size \(n\) in time \(O\left(n m / \log _{d+2} n\right)\), where \(d\) is the number of allowed errors. This algorithm is the first \(o(m n)\) algorithm for approximate matching t

A simple matching algorithm for regular
✍ Kazuhisa Makino; Takashi Takabatake; Satoru Fujishige πŸ“‚ Article πŸ“… 2002 πŸ› Elsevier Science 🌐 English βš– 62 KB

We consider the perfect matching problem for a βˆ†-regular bipartite graph with n vertices and m edges, i.e., 1 2 nβˆ† = m, and present a new O(m + n log n log βˆ†) algorithm. Cole and Rizzi, respectively, gave algorithms of the same complexity as ours, Schrijver also devised an O(mβˆ†) algorithm, and the b

A linear algorithm for a core of a tree
✍ Christine A Morgan; Peter J Slater πŸ“‚ Article πŸ“… 1980 πŸ› Elsevier Science 🌐 English βš– 565 KB