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

同时有限自动机:一种高效的正则表达式匹配数据并行模型

Simultaneous Finite Automata: An Efficient Data-Parallel Model for Regular Expression Matching

Ryoma Sin'ya, Kiminori Matsuzaki, Masataka Sassa

摘要:

自动机在广泛的计算领域中扮演着重要的角色,而多核的发展要求其高效的并行实现。虽然在理论上我们知道我们可以通过模拟转换来并行地执行有限自动机的计算,但是由于模拟,其实现具有很大的开销。在本文中,我们提出了一个新的自动机称为同时有限自动机(SFA)的有效并行计算的自动机。其关键思想是扩展自动机,使其包含转换的模拟。由于SFA本身具有良好的并行性,我们可以很容易地开发一个并行实现没有开销。我们已经实现了一个基于SFA的正则表达式匹配器,在典型的情况下,它已经实现了10倍以上的加速在双六核CPU的环境。

英文摘要:

Automata play important roles in wide area of computing and the growth of multicores calls for their efficient parallel implementation. Though it is known in theory that we can perform the computation of a finite automaton in parallel by simulating transitions, its implementation has a large overhead due to the simulation. In this paper we propose a new automaton called simultaneous finite automaton (SFA) for efficient parallel computation of an automaton. The key idea is to extend an automaton so that it involves the simulation of transitions. Since an SFA itself has a good property of parallelism, we can develop easily a parallel implementation without overheads. We have implemented a regular expression matcher based on SFA, and it has achieved over 10-times speedups on an environment with dual hexa-core CPUs in a typical case.

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

↑