TY - GEN
T1 - Adaptive pattern matching
AU - Sekar, R. C.
AU - Ramesh, R.
AU - Ramakrishna, I. V.
N1 - Publisher Copyright:
© Springer-Verlag Berlin Heidelberg 1992.
PY - 1992
Y1 - 1992
N2 - Pattern matching is an important operation used in many applications such as functional programming, rewriting and rule-based expert systems. By preprocessing the patterns into a DFA-like automaton, we can rapidly select the matching pattern(s) in a single scan of the relevant portions of the input term. This automaton is typically based on left-to-right traversal (of the patterns) or its variants. By adapting the traversal order to suit the set of input patterns, it is possible to considerably reduce the space and matching time requirements of the automaton. The design of such adaptive automata is the focus of this paper. In this context we study several important problems that have remained open even for automata based on left-to-right traversals. Such problems include upper and lower bounds on space complexity, construction of optimal dug automata and impact of typing in pattern matching. An interesting consequence of our results is that lazy pattern matching in typed systems (such as ML) is computationaily hard whereas it can be done efficiently in untyped systems.
AB - Pattern matching is an important operation used in many applications such as functional programming, rewriting and rule-based expert systems. By preprocessing the patterns into a DFA-like automaton, we can rapidly select the matching pattern(s) in a single scan of the relevant portions of the input term. This automaton is typically based on left-to-right traversal (of the patterns) or its variants. By adapting the traversal order to suit the set of input patterns, it is possible to considerably reduce the space and matching time requirements of the automaton. The design of such adaptive automata is the focus of this paper. In this context we study several important problems that have remained open even for automata based on left-to-right traversals. Such problems include upper and lower bounds on space complexity, construction of optimal dug automata and impact of typing in pattern matching. An interesting consequence of our results is that lazy pattern matching in typed systems (such as ML) is computationaily hard whereas it can be done efficiently in untyped systems.
UR - https://www.scopus.com/pages/publications/84916588112
U2 - 10.1007/3-540-55719-9_78
DO - 10.1007/3-540-55719-9_78
M3 - Conference contribution
AN - SCOPUS:84916588112
SN - 9783540557197
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 247
EP - 260
BT - Automata, Languages and Programming - 19th International Colloquium, Proceedings
A2 - Kuich, Werner
PB - Springer Verlag
T2 - 19th International Colloquium on Automata, Languages, and Programming, ICALP 1992
Y2 - 13 July 1992 through 17 July 1992
ER -