arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.00907cs.SC
收藏

带序列变量的非线性关联交换多对一模式匹配

Non-linear Associative-Commutative Many-to-One Pattern Matching with Sequence Variables

Manuel Krebber

摘要:

模式匹配是一种强大的工具,它是许多函数式程序设计语言以及诸如Mathematica的计算机代数系统的一部分。在现有的系统中,Mathematica提供了最具表现力的模式匹配。不幸的是,没有一个开源替代方案具有可比的模式匹配功能。值得注意的是,这些功能包括对关联和/或交换函数符号和序列变量的支持。虽然这些特征单独是以前研究的主题,但尚未对它们的综合组合进行研究。此外,在许多应用中,一组固定的模式被重复地与不同的主题相匹配。这种多对一的匹配可以通过利用模式之间的相似性来加速。识别网络是多对一匹配的最先进解决方案。本文提出了一种支持全特征集的广义判别网。所有算法都已作为Python的开源库实现。在对真实世界示例的实验中,已经观察到多对一匹配比一对一匹配显著加速。

英文摘要:

Pattern matching is a powerful tool which is part of many functional programming languages as well as computer algebra systems such as Mathematica. Among the existing systems, Mathematica offers the most expressive pattern matching. Unfortunately, no open source alternative has comparable pattern matching capabilities. Notably, these features include support for associative and/or commutative function symbols and sequence variables. While those features have individually been subject of previous research, their comprehensive combination has not yet been investigated. Furthermore, in many applications, a fixed set of patterns is matched repeatedly against different subjects. This many-to-one matching can be sped up by exploiting similarities between patterns. Discrimination nets are the state-of-the-art solution for many-to-one matching. In this thesis, a generalized discrimination net which supports the full feature set is presented. All algorithms have been implemented as an open-source library for Python. In experiments on real world examples, significant speedups of many-to-one over one-to-one matching have been observed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑