𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Efficient automata-driven pattern-matching for equational programs

✍ Scribed by Nadia Nedjah; Colin D. Walter; Stephen E. Eldridge


Publisher
John Wiley and Sons
Year
1999
Tongue
English
Weight
210 KB
Volume
29
Category
Article
ISSN
0038-0644

No coin nor oath required. For personal study only.

✦ Synopsis


We propose a practical technique to compile left-to-right pattern-matching of prioritised overlapping function definitions in equational languages to a matching automaton from which efficient code can be derived. First, a matching table is constructed using a compilation method similar to the technique that YACC employs to generate parsing tables. The matching table obtained allows for the pattern-matching process to be performed without any backtracking. Then, the known information about right sides of the equations is inserted in the matching table in order to speed-up the pattern-matching process. Most of the discussion assumes that the processed pattern set is left-linear, the non-linear case being handled by an additional pass following the matching stage.


πŸ“œ SIMILAR VOLUMES


Waiting time and complexity for matching
✍ M. Crochemore; V.T. Stefanov πŸ“‚ Article πŸ“… 2003 πŸ› Elsevier Science 🌐 English βš– 105 KB

The paper shows how to compute exactly expectations, standard deviations, and cumulative probabilities of the searching times of string-matching algorithms based on the use of automata. This is derived from a methodology based on viewing the underlying Markov chains as exponential families and apply